Permalink
Browse files

Initial commit: first version of lory

  • Loading branch information...
1 parent 75e99f4 commit c61460a88a3293f9a277044801616f58190feb6f Maximilian Heinz committed Mar 15, 2015
View
@@ -0,0 +1,12 @@
+# This file is for unifying the coding style for different editors and IDEs
+# editorconfig.org
+
+root = true
+
+[*]
+indent_style = space
+indent_size = 4
+end_of_line = lf
+charset = utf-8
+trim_trailing_whitespace = true
+insert_final_newline = true
View
@@ -0,0 +1,9 @@
+*.sublime-workspace
+*.sublime-project
+
+build/
+node_modules/
+npm-debug.log
+
+.AppleDouble/
+.DS_Store
View
@@ -0,0 +1,74 @@
+{
+ // Enforcing options - When set to true, these options will make JSHint produce more warnings about your code.
+
+ "bitwise": true, // This option prohibits the use of bitwise operators such as ^ (XOR), | (OR) and others.
+ "camelcase": true, // This option allows you to force all variable names to use either camelCase style or UPPER_CASE with underscores.
+ "curly": true, // This option requires you to always put curly braces around blocks in loops and conditionals.
+ "eqeqeq": true, // This option prohibits the use of == and != in favor of === and !==.
+ "es3": false, // This option tells JSHint that your code needs to adhere to ECMAScript 3 specification.
+ "forin": true, // This option requires all for in loops to filter object's items.
+ "freeze": true, // This option prohibits overwriting prototypes of native objects such as Array, Date and so on.
+ "immed": true, // This option prohibits the use of immediate function invocations without wrapping them in parentheses.
+ "indent": 4, // This option sets a specific tab width for your code.
+ "latedef": true, // This option prohibits the use of a variable before it was defined.
+ "newcap": true, // This option requires you to capitalize names of constructor functions.
+ "noarg": true, // This option prohibits the use of arguments.caller and arguments.callee.
+ "noempty": true, // This option warns when you have an empty block in your code.
+ "nonbsp": true, // This option warns about "non-breaking whitespace" characters.
+ "nonew": true, // This option prohibits the use of constructor functions for side-effects.
+ "plusplus": true, // This option prohibits the use of unary increment and decrement operators.
+ "quotmark": true, // This option enforces the consistency of quotation marks used throughout your code.
+ "undef": true, // This option prohibits the use of explicitly undeclared variables.
+ "unused": true, // This option warns when you define and never use your variables.
+ "strict": true, // This option requires all functions to run in ECMAScript 5's strict mode.
+ "maxparams": false, // This option lets you set the max number of formal parameters allowed per function.
+ "maxdepth": false, // This option lets you control how nested do you want your blocks to be.
+ "maxstatements": false, // This option lets you set the max number of statements allowed per function.
+ "maxcomplexity": false, // This option lets you control cyclomatic complexity throughout your code.
+ "maxlen": false, // This option lets you set the maximum length of a line.
+
+ // Relaxing options - When set to true, these options will make JSHint produce less warnings about your code.
+
+ "asi": false, // This option suppresses warnings about missing semicolons.
+ "boss": false, // This option suppresses warnings about the use of assignments in cases where comparisons are expected.
+ "debug": false, // This option suppresses warnings about the debugger statements in your code.
+ "eqnull": true, // This option suppresses warnings about == null comparisons.
+ "esnext": true, // This option tells JSHint that your code uses ECMAScript 6 specific syntax.
+ "evil": false, // This option suppresses warnings about the use of eval.
+ "expr": false, // This option suppresses warnings about the use of expressions where normally you would expect to see assignments or function calls.
+ "funcscope": false, // This option suppresses warnings about declaring variables inside of control structures while accessing them later from the outside.
+ "globalstrict": false, // This option suppresses warnings about the use of global strict mode.
+ "iterator": false, // This option suppresses warnings about the __iterator__ property.
+ "lastsemic": false, // This option suppresses warnings about missing semicolons, but only when the semicolon is omitted for the last statement in a one-line block.
+ "laxbreak": false, // This option suppresses most of the warnings about possibly unsafe line breakings in your code.
+ "laxcomma": false, // This option suppresses warnings about comma-first coding style.
+ "loopfunc": false, // This option suppresses warnings about functions inside of loops.
+ "maxerr": 50, // This option allows you to set the maximum amount of warnings JSHint will produce before giving up.
+ "moz": false, // This option tells JSHint that your code uses Mozilla JavaScript extensions.
+ "multistr": false, // This option suppresses warnings about multi-line strings.
+ "notypeof": false, // This option suppresses warnings about invalid typeof operator values.
+ "proto": false, // This option suppresses warnings about the __proto__ property.
+ "scripturl": false, // This option suppresses warnings about the use of script-targeted URLs—such as `javascript:...`.
+ "shadow": false, // This option suppresses warnings about variable shadowing i.e. declaring a variable that had been already declared somewhere in the outer scope.
+ "sub": false, // This option suppresses warnings about using [] notation when it can be expressed in dot notation.
+ "supernew": false, // This option suppresses warnings about "weird" constructions like `new function () { ... }` and `new Object;`.
+ "validthis": false, // This option suppresses warnings about possible strict violations when the code is running in strict mode and you use this in a non-constructor function.
+ "noyield": false, // This option suppresses warnings about generator functions with no yield statement in them.
+
+ // Environments - These options let JSHint know about some pre-defined global variables.
+
+ "browser": true, // This option defines globals exposed by modern browsers.
+ "couch": false, // This option defines globals exposed by CouchDB.
+ "devel": false, // This option defines globals that are usually used for logging poor-man's debugging: console, alert, etc.
+ "dojo": false, // This option defines globals exposed by the Dojo Toolkit.
+ "jquery": false, // This option defines globals exposed by the jQuery JavaScript library.
+ "mootools": false, // This option defines globals exposed by the MooTools JavaScript framework.
+ "node": true, // This option defines globals available when your code is running inside of the Node runtime environment.
+ "nonstandard": false, // This option defines non-standard but widely adopted globals such as escape and unescape.
+ "phantom": false, // This option defines globals available when your core is running inside of the PhantomJS runtime environment.
+ "prototypejs": false, // This option defines globals exposed by the Prototype JavaScript framework.
+ "rhino": false, // This option defines globals available when your code is running inside of the Rhino runtime environment.
+ "worker": false, // This option defines globals available when your code is running inside of a Web Worker.
+ "wsh": false, // This option defines globals available when your code is running as a script for the Windows Script Host.
+ "yui": false // This option defines globals exposed by the YUI JavaScript framework.
+}
View
@@ -0,0 +1,74 @@
+{
+ // Enforcing options - When set to true, these options will make JSHint produce more warnings about your code.
+
+ "bitwise": true, // This option prohibits the use of bitwise operators such as ^ (XOR), | (OR) and others.
+ "camelcase": true, // This option allows you to force all variable names to use either camelCase style or UPPER_CASE with underscores.
+ "curly": true, // This option requires you to always put curly braces around blocks in loops and conditionals.
+ "eqeqeq": true, // This option prohibits the use of == and != in favor of === and !==.
+ "es3": false, // This option tells JSHint that your code needs to adhere to ECMAScript 3 specification.
+ "forin": true, // This option requires all for in loops to filter object's items.
+ "freeze": true, // This option prohibits overwriting prototypes of native objects such as Array, Date and so on.
+ "immed": true, // This option prohibits the use of immediate function invocations without wrapping them in parentheses.
+ "indent": 4, // This option sets a specific tab width for your code.
+ "latedef": true, // This option prohibits the use of a variable before it was defined.
+ "newcap": true, // This option requires you to capitalize names of constructor functions.
+ "noarg": true, // This option prohibits the use of arguments.caller and arguments.callee.
+ "noempty": true, // This option warns when you have an empty block in your code.
+ "nonbsp": true, // This option warns about "non-breaking whitespace" characters.
+ "nonew": true, // This option prohibits the use of constructor functions for side-effects.
+ "plusplus": true, // This option prohibits the use of unary increment and decrement operators.
+ "quotmark": true, // This option enforces the consistency of quotation marks used throughout your code.
+ "undef": true, // This option prohibits the use of explicitly undeclared variables.
+ "unused": true, // This option warns when you define and never use your variables.
+ "strict": true, // This option requires all functions to run in ECMAScript 5's strict mode.
+ "maxparams": false, // This option lets you set the max number of formal parameters allowed per function.
+ "maxdepth": false, // This option lets you control how nested do you want your blocks to be.
+ "maxstatements": false, // This option lets you set the max number of statements allowed per function.
+ "maxcomplexity": false, // This option lets you control cyclomatic complexity throughout your code.
+ "maxlen": false, // This option lets you set the maximum length of a line.
+
+ // Relaxing options - When set to true, these options will make JSHint produce less warnings about your code.
+
+ "asi": false, // This option suppresses warnings about missing semicolons.
+ "boss": false, // This option suppresses warnings about the use of assignments in cases where comparisons are expected.
+ "debug": false, // This option suppresses warnings about the debugger statements in your code.
+ "eqnull": true, // This option suppresses warnings about == null comparisons.
+ "esnext": true, // This option tells JSHint that your code uses ECMAScript 6 specific syntax.
+ "evil": false, // This option suppresses warnings about the use of eval.
+ "expr": false, // This option suppresses warnings about the use of expressions where normally you would expect to see assignments or function calls.
+ "funcscope": false, // This option suppresses warnings about declaring variables inside of control structures while accessing them later from the outside.
+ "globalstrict": false, // This option suppresses warnings about the use of global strict mode.
+ "iterator": false, // This option suppresses warnings about the __iterator__ property.
+ "lastsemic": false, // This option suppresses warnings about missing semicolons, but only when the semicolon is omitted for the last statement in a one-line block.
+ "laxbreak": false, // This option suppresses most of the warnings about possibly unsafe line breakings in your code.
+ "laxcomma": false, // This option suppresses warnings about comma-first coding style.
+ "loopfunc": false, // This option suppresses warnings about functions inside of loops.
+ "maxerr": 50, // This option allows you to set the maximum amount of warnings JSHint will produce before giving up.
+ "moz": false, // This option tells JSHint that your code uses Mozilla JavaScript extensions.
+ "multistr": false, // This option suppresses warnings about multi-line strings.
+ "notypeof": false, // This option suppresses warnings about invalid typeof operator values.
+ "proto": false, // This option suppresses warnings about the __proto__ property.
+ "scripturl": false, // This option suppresses warnings about the use of script-targeted URLs—such as `javascript:...`.
+ "shadow": false, // This option suppresses warnings about variable shadowing i.e. declaring a variable that had been already declared somewhere in the outer scope.
+ "sub": false, // This option suppresses warnings about using [] notation when it can be expressed in dot notation.
+ "supernew": false, // This option suppresses warnings about "weird" constructions like `new function () { ... }` and `new Object;`.
+ "validthis": false, // This option suppresses warnings about possible strict violations when the code is running in strict mode and you use this in a non-constructor function.
+ "noyield": false, // This option suppresses warnings about generator functions with no yield statement in them.
+
+ // Environments - These options let JSHint know about some pre-defined global variables.
+
+ "browser": true, // This option defines globals exposed by modern browsers.
+ "couch": false, // This option defines globals exposed by CouchDB.
+ "devel": false, // This option defines globals that are usually used for logging poor-man's debugging: console, alert, etc.
+ "dojo": false, // This option defines globals exposed by the Dojo Toolkit.
+ "jquery": false, // This option defines globals exposed by the jQuery JavaScript library.
+ "mootools": false, // This option defines globals exposed by the MooTools JavaScript framework.
+ "node": true, // This option defines globals available when your code is running inside of the Node runtime environment.
+ "nonstandard": false, // This option defines non-standard but widely adopted globals such as escape and unescape.
+ "phantom": false, // This option defines globals available when your core is running inside of the PhantomJS runtime environment.
+ "prototypejs": false, // This option defines globals exposed by the Prototype JavaScript framework.
+ "rhino": false, // This option defines globals available when your code is running inside of the Rhino runtime environment.
+ "worker": false, // This option defines globals available when your code is running inside of a Web Worker.
+ "wsh": false, // This option defines globals available when your code is running as a script for the Windows Script Host.
+ "yui": false // This option defines globals exposed by the YUI JavaScript framework.
+}
View
@@ -0,0 +1,7 @@
+language: node_js
+node_js:
+ - "0.10"
+script: "node_modules/.bin/grunt travis"
+branches:
+ only:
+ - master
View
@@ -2,21 +2,19 @@ The MIT License (MIT)
Copyright (c) 2015 Maximilian Heinz
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
View
@@ -0,0 +1,161 @@
+*,
+*:before,
+*:after {
+ -moz-box-sizing:border-box;
+ -webkit-box-sizing:border-box;
+ box-sizing:border-box;
+}
+
+* {
+ margin:0px;
+ padding:0px;
+ border:0px;
+ font-family: 'Source Sans Pro', sans-serif;
+ background:none;
+ -webkit-user-select: none;
+ -khtml-user-select: none;
+ -moz-user-select: -moz-none;
+ -o-user-select: none;
+ user-select: none;
+ -webkit-text-size-adjust:100%;
+}
+
+body {
+ background: #ECECEC;
+}
+
+h1, h2, h3, h4, h5, h6, p {
+ text-align: center;
+ font-weight: 300;
+ color: #2E435A;
+}
+
+h2 {
+ font-size: 20px;
+}
+
+.ribbon {
+ display: block;
+ background-color: #EB5F5A;
+}
+
+.ribbon a {
+ display: block;
+ padding: 10px 0;
+ color: #fff;
+ font-weight: 700;
+ text-align: center;
+ text-decoration: none;
+ text-transform: uppercase;
+}
+
+.slider {
+ position: relative;
+ overflow: hidden;
+ margin: 20px;
+}
+
+.frame {
+ position: relative;
+ z-index: 1;
+ width: 280px;
+ margin: 0 auto;
+ font-size: 0;
+ line-height: 0;
+ overflow: hidden;
+ white-space: nowrap;
+}
+
+li {
+ position: relative;
+ display: inline-block;
+ z-index: 2;
+ height: 130px;
+ text-align: center;
+ font-size: 15px;
+ line-height: 30px;
+ background: #2E435A;
+ color: #fff;
+}
+
+.prev, .next {
+ position: absolute;
+ top: 50%;
+ margin-top: -25px;
+ display: block;
+ cursor: pointer;
+}
+
+.next {
+ right: 0;
+}
+
+.prev {
+ left: 0;
+}
+
+.slides {
+ display: inline-block;
+}
+
+.content {
+ padding: 40px 0;
+}
+
+.simple li {
+ width: 280px;
+}
+
+.variablewidth li {
+ width: 280px;
+}
+
+.multipleelements li, .multislides li {
+ width: 55px;
+}
+
+@media screen and (min-width: 640px ) {
+ .examplecode {
+ width: 580px;
+ margin: 0 auto;
+ }
+
+ .frame {
+ width: 580px;
+ }
+
+ .simple li {
+ width: 580px;
+ }
+
+ .variablewidth li {
+ width: 280px;
+ }
+
+ .multipleelements li, .multislides li {
+ width: 130px;
+ }
+}
+
+@media screen and (min-width: 980px ) {
+ .examplecode {
+ width: 880px;
+ margin: 0 auto;
+ }
+
+ .frame {
+ width: 880px;
+ }
+
+ .simple li {
+ width: 880px;
+ }
+
+ .variablewidth li {
+ width: 280px;
+ }
+
+ .multipleelements li, .multislides li {
+ width: 205px;
+ }
+}
Oops, something went wrong.

0 comments on commit c61460a

Please sign in to comment.