diff --git a/fibonacci.css b/css/fibonacci.css
similarity index 100%
rename from fibonacci.css
rename to css/fibonacci.css
diff --git a/reset.css b/css/reset.css
similarity index 100%
rename from reset.css
rename to css/reset.css
diff --git a/css/screen.css b/css/screen.css
new file mode 100644
index 0000000..f9a8c9f
--- /dev/null
+++ b/css/screen.css
@@ -0,0 +1,142 @@
+body{
+ background-image: -o-linear-gradient(45deg, #1A658D 0%, #6CBFDA 100%);
+ background-image: -moz-linear-gradient(45deg, #1A658D 0%, #6CBFDA 100%);
+ background-image: -webkit-linear-gradient(45deg, #1A658D 0%, #6CBFDA 100%);
+ background-image: -ms-linear-gradient(45deg, #1A658D 0%, #6CBFDA 100%);
+ background-image: linear-gradient(135deg, #1A658D 0%, #6CBFDA 100%);
+ background-attachment: fixed;
+ text-align: center;
+}
+
+h1, h2, span{
+ font-family: Avenir;
+ color: hsla(200,100%,90%,1);
+ text-align: center;
+ font-size: 2.5em;
+ margin-top: 50px;
+}
+h2{
+ font-size: 1.6em;
+ font-weight: normal;
+ margin-top: 0px;
+}
+span{
+ font-size: 1em;
+ margin: 13px;
+}
+
+#codeExportTextarea, #container{
+ width: 800px;
+ height: 600px;
+ position: absolute;
+ left: 50%;
+ margin-left: -400px;
+ top: 150px;
+}
+
+#codeExportTextarea{
+ box-sizing: border-box;
+ resize: none;
+ border: none;
+ background-color: hsla(200,100%,1%,0.4);
+ padding: 50px;
+ font-family: Courier;
+ font-size: 16px;
+ color: hsla(200,100%,90%,1);
+ display: none;
+ outline: none;
+}
+
+#triggerHTMLCode, #triggerCSSCode, #triggerInfo{
+ margin: 0 auto;
+ margin-top: 675px;
+ padding: 0 25px 0 25px;
+ margin-bottom: 10px;
+ opacity: 0.6
+}
+
+#splitControls img{
+ margin: 15px 5px;
+ opacity: 0.7
+}
+
+#optionsModal{
+ box-sizing: border-box;
+ width: 150px;
+ position: absolute;
+ z-index: 99999;
+ border: 1px solid hsla(100, 100%, 100%, 0.6);
+ box-shadow: 0 0 10px rgba(0,0,0,0.3);
+ padding: 10px;
+ border-radius: 10px;
+ background-color: hsla(100, 100%, 100%, 0.5);
+ margin: 15px
+}
+
+::-webkit-input-placeholder { color:hsla(200,100%,90%,1); }
+::-moz-placeholder { color:hsla(200,100%,90%,1); } /* firefox 19+ */
+:-ms-input-placeholder { color:hsla(200,100%,90%,1); } /* ie */
+input:-moz-placeholder { color:hsla(200,100%,90%,1); }
+
+#optionsModal input{
+ width: 110px;
+ height: 30px;
+ -webkit-appearance: none;
+ appearance: none;
+ border: none;
+ border-bottom: 2px solid hsla(200,100%,90%,1);
+ border-right: 2px solid hsla(200,100%,90%,1);
+ padding-right: 5px;
+ background: none;
+ margin-top: 10px;
+ font-family: Avenir;
+ color: hsla(200,100%,10%,1);
+ font-size: 1em;
+ text-align: right;
+ outline: none;
+}
+
+#optionsModal button{
+ float: right;
+ margin: 5px;
+ font-family: Avenir;
+ font-size: 1.05em;
+ font-weight: bold;
+ color: hsla(200,100%,100%,0.8);
+ text-shadow: 0 -1px hsla(200,100%,0%,0.3);
+ padding: 5px 15px;
+ -webkit-appearance: none;
+ appearance: none;
+ border: none;
+ box-shadow: 0 0 0 1px hsla(100,100%,100%,0.2) inset, 0 0 0 1px hsla(200,100%,0%,0.1);
+ border-radius: 5px;
+ background-image: -o-linear-gradient(0deg, #1A658D 0%, #6CBFDA 100%);
+ background-image: -moz-linear-gradient(0deg, #1A658D 0%, #6CBFDA 100%);
+ background-image: -webkit-linear-gradient(0deg, #1A658D 0%, #6CBFDA 100%);
+ background-image: -ms-linear-gradient(0deg, #1A658D 0%, #6CBFDA 100%);
+ background-image: linear-gradient(0deg, #1A658D 0%, #6CBFDA 100%);
+}
+
+section{
+ outline: 1px solid hsla(200,100%,90%,0.2);
+ background-color: hsla(200,100%,1%,0.1);
+}
+
+footer{
+ box-sizing: border-box;
+ text-align: center;
+ margin-top: 50px;
+ width: 100%;
+ height: 40px;
+ padding: 15px;
+ background-color: hsla(200,100%,90%,0.3);
+ outline: 1px solid hsla(200,100%,90%,0.6);
+ font-family: Avenir;
+ color: hsla(200,100%,100%,0.8);
+}
+
+footer a{
+ font-weight: bold;
+ color: hsla(200,100%,100%,1);
+ text-decoration: none;
+}
\ No newline at end of file
diff --git a/CSSFile.png b/img/CSSFile.png
similarity index 100%
rename from CSSFile.png
rename to img/CSSFile.png
diff --git a/HTMLFile.png b/img/HTMLFile.png
similarity index 100%
rename from HTMLFile.png
rename to img/HTMLFile.png
diff --git a/addhorizontal.png b/img/addhorizontal.png
similarity index 100%
rename from addhorizontal.png
rename to img/addhorizontal.png
diff --git a/addvertical.png b/img/addvertical.png
similarity index 100%
rename from addvertical.png
rename to img/addvertical.png
diff --git a/expand.png b/img/expand.png
similarity index 100%
rename from expand.png
rename to img/expand.png
diff --git a/info.png b/img/info.png
similarity index 100%
rename from info.png
rename to img/info.png
diff --git a/options.png b/img/options.png
similarity index 100%
rename from options.png
rename to img/options.png
diff --git a/remove.png b/img/remove.png
similarity index 100%
rename from remove.png
rename to img/remove.png
diff --git a/shrink.png b/img/shrink.png
similarity index 100%
rename from shrink.png
rename to img/shrink.png
diff --git a/splithorizontal.png b/img/splithorizontal.png
similarity index 100%
rename from splithorizontal.png
rename to img/splithorizontal.png
diff --git a/splitvertical.png b/img/splitvertical.png
similarity index 100%
rename from splitvertical.png
rename to img/splitvertical.png
diff --git a/trash.png b/img/trash.png
similarity index 100%
rename from trash.png
rename to img/trash.png
diff --git a/index.html b/index.html
index cca0dca..08e4116 100644
--- a/index.html
+++ b/index.html
@@ -1,18 +1,18 @@
-
-
-
+
+
+
Fibonacci
Flexbox Composer
-
-
-
+
+
+
Export HTML
Export CSS
@@ -22,7 +22,7 @@ Flexbox Composer
A project by Max Steenbergen
-
-
+
+
\ No newline at end of file
diff --git a/fibonacci.js b/js/fibonacci.js
similarity index 88%
rename from fibonacci.js
rename to js/fibonacci.js
index aae59c6..b067d1f 100644
--- a/fibonacci.js
+++ b/js/fibonacci.js
@@ -23,7 +23,7 @@ $(document).ready( function(){
else {
$( 'img' ).css( 'opacity', 0.6)
$(this).css( 'opacity', 1)
- $.get( 'fibonacci.css' ).then(function(cssCode, status, xhr){
+ $.get( 'css/fibonacci.css' ).then(function(cssCode, status, xhr){
var overrides = ''
for (var i = Object.keys(CSSOverrides).length - 1; i >= 0; i--) {
overrides += '#' + Object.keys(CSSOverrides)[i] + '{ ' + CSSOverrides[Object.keys(CSSOverrides)[i]] + '}\n'
@@ -58,17 +58,17 @@ $(document).ready( function(){
var parent = $(srcSection).parent()
if( $( '#splitControls' ).length == 0 && $( '#optionsModal' ).length == 0){
$( srcSection ).append( '' )
- $( '#splitControls' ).append( '
' )
- $( '#splitControls' ).append( '
' )
+ $( '#splitControls' ).append( '
' )
+ $( '#splitControls' ).append( '
' )
if( parent.hasClass( 'columnParent' ))
- $( '#splitControls' ).append( '
' )
+ $( '#splitControls' ).append( '
' )
if( parent.hasClass( 'rowParent' ))
- $( '#splitControls' ).append( '
' )
+ $( '#splitControls' ).append( '
' )
if ( srcSection.id != 'container' )
- $( '#splitControls' ).append( '
' )
+ $( '#splitControls' ).append( '
' )
}
}
@@ -145,9 +145,9 @@ $(document).ready( function(){
var parentDimension = grandParent.parent().hasClass( 'columnParent' ) ? 'height' : 'width'
- $( '#optionsModal' ).append( '
')
- .append( '
')
- .append( '
' )
+ $( '#optionsModal' ).append( '
')
+ .append( '
')
+ .append( '
' )
.append( '
' )
.append( '
')
diff --git a/jquery.js b/js/jquery.js
similarity index 100%
rename from jquery.js
rename to js/jquery.js
diff --git a/screen.css b/screen.css
index 4715505..f9a8c9f 100644
--- a/screen.css
+++ b/screen.css
@@ -63,7 +63,6 @@ span{
#optionsModal{
box-sizing: border-box;
width: 150px;
- //height: 240px;
position: absolute;
z-index: 99999;
border: 1px solid hsla(100, 100%, 100%, 0.6);
diff --git a/velocity.js b/velocity.js
deleted file mode 100644
index 188558e..0000000
--- a/velocity.js
+++ /dev/null
@@ -1,7 +0,0 @@
-/*!
-* Velocity.js: Accelerated JavaScript animation.
-* @version 0.0.9
-* @docs http://velocityjs.org
-* @license Copyright 2014 Julian Shapiro. MIT License: http://en.wikipedia.org/wiki/MIT_License
-*/
-!function(a,b,c,d){function e(a){for(var b=-1,c=a?a.length:0,d=[];++b
e;++e){var f=i(d,a,c);if(0===f)return d;var g=h(d,a,c)-b;d-=g/f}return d}if(4!==arguments.length)return!1;for(var k=0;4>k;++k)if("number"!=typeof arguments[k]||isNaN(arguments[k])||!isFinite(arguments[k]))return!1;a=Math.min(a,1),c=Math.min(c,1),a=Math.max(a,0),c=Math.max(c,0);var l=function(e){return a===b&&c===d?e:h(j(e),b,d)};return l}function i(a){if(a)for(var b=(new Date).getTime(),c=0,e=o.State.calls.length;e>c;c++)if(o.State.calls[c]){var f=o.State.calls[c],g=f[0],h=f[2],l=f[3];l||(l=o.State.calls[c][3]=b-16);for(var q=Math.min((b-l)/h.duration,1),r=0,s=g.length;s>r;r++){var t=g[r],u=t.element;if(n.data(u,k)){var v=!1;h.display&&"none"!==h.display&&(p.setPropertyValue(u,"display",h.display),o.State.calls[c][2].display=!1);for(var w in t)if("element"!==w){var x,y=t[w],z="string"==typeof y.easing?o.Easings[y.easing]:y.easing;if(x=1===q?y.endValue:y.startValue+(y.endValue-y.startValue)*z(q),y.currentValue=x,p.Hooks.registered[w]){var A=p.Hooks.getRoot(w),B=n.data(u,k).rootPropertyValueCache[A];B&&(y.rootPropertyValue=B)}var C=p.setPropertyValue(u,w,y.currentValue+(0===parseFloat(x)?"":y.unitType),y.rootPropertyValue,y.scrollContainer);p.Hooks.registered[w]&&(n.data(u,k).rootPropertyValueCache[A]=p.Normalizations.registered[A]?p.Normalizations.registered[A]("extract",null,C[1]):C[1]),"transform"===C[0]&&(v=!0)}h.mobileHA&&n.data(u,k).transformCache.translate3d===d&&(n.data(u,k).transformCache.translate3d="(0, 0, 0)",v=!0),v&&p.flushTransformCache(u)}}1===q&&j(c)}o.State.isTicking&&m(i)}function j(a){for(var b=o.State.calls[a][0],c=o.State.calls[a][1],e=o.State.calls[a][2],f=!1,g=0,h=b.length;h>g;g++){var i=b[g].element;if("none"!==e.display||e.loop||p.setPropertyValue(i,"display",e.display),n.queue(i)[1]!==d&&/\.velocityQueueEntryFlag/i.test(n.queue(i)[1])||n.data(i,k)&&(n.data(i,k).isAnimating=!1,n.data(i,k).rootPropertyValueCache={},e.mobileHA&&!o.State.isGingerbread&&(delete n.data(i,k).transformCache.translate3d,p.flushTransformCache(i))),g===h-1&&!e.loop&&e.complete){var j=c.jquery?c.get():c;e.complete.call(j,j)}e.queue!==!1&&n.dequeue(i,e.queue)}o.State.calls[a]=!1;for(var l=0,m=o.State.calls.length;m>l;l++)if(o.State.calls[l]!==!1){f=!0;break}f===!1&&(o.State.isTicking=!1,delete o.State.calls,o.State.calls=[])}var k="velocity",l=function(){if(c.documentMode)return c.documentMode;for(var a=7;a>4;a--){var b=c.createElement("div");if(b.innerHTML="",b.getElementsByTagName("span").length)return b=null,a}return d}(),m=b.requestAnimationFrame||function(){var a=0;return b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame||function(b){var c,d=(new Date).getTime();return c=Math.max(0,16-(d-a)),a=d+c,setTimeout(function(){b(d+c)},c)}}();if(7>=l){if(b.jQuery)return void(b.jQuery.fn.velocity=b.jQuery.fn.animate);throw new Error("For IE<=7, Velocity falls back to jQuery, which must first be loaded.")}if(8===l&&!b.jQuery)throw new Error("For IE8, Velocity requires jQuery to be loaded.");if(a.Velocity!==d&&!a.Velocity.Utilities)throw new Error("Velocity's namespace is occupied. Aborting.");var n=b.jQuery||a.Velocity.Utilities,o=a.Velocity=a.velocity=n.extend(a.Velocity||{},{State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),prefixElement:c.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Sequences:{},Easings:{},defaults:{queue:"",duration:400,easing:"swing",complete:null,display:null,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},animate:function(){},debug:!1});b.pageYOffset!==d?(o.State.scrollAnchor=b,o.State.scrollPropertyLeft="pageXOffset",o.State.scrollPropertyTop="pageYOffset"):(o.State.scrollAnchor=c.documentElement||c.body.parentNode||c.body,o.State.scrollPropertyLeft="scrollLeft",o.State.scrollPropertyTop="scrollTop"),function(){var a={};n.each(["Quad","Cubic","Quart","Quint","Expo"],function(b,c){a[c]=function(a){return Math.pow(a,b+2)}}),n.extend(a,{Sine:function(a){return 1-Math.cos(a*Math.PI/2)},Circ:function(a){return 1-Math.sqrt(1-a*a)},Elastic:function(a){return 0===a||1===a?a:-Math.pow(2,8*(a-1))*Math.sin((80*(a-1)-7.5)*Math.PI/15)},Back:function(a){return a*a*(3*a-2)},Bounce:function(a){for(var b,c=4;a<((b=Math.pow(2,--c))-1)/11;);return 1/Math.pow(4,3-c)-7.5625*Math.pow((3*b-2)/22-a,2)}}),n.each(a,function(a,b){o.Easings["easeIn"+a]=b,o.Easings["easeOut"+a]=function(a){return 1-b(1-a)},o.Easings["easeInOut"+a]=function(a){return.5>a?b(2*a)/2:1-b(-2*a+2)/2}}),o.Easings.linear=function(a){return a},o.Easings.swing=function(a){return.5-Math.cos(a*Math.PI)/2},o.Easings.ease=h(.25,.1,.25,1),o.Easings["ease-in"]=h(.42,0,1,1),o.Easings["ease-out"]=h(0,0,.58,1),o.Easings["ease-in-out"]=h(.42,0,.58,1),o.Easings.spring=function(a){return 1-Math.cos(4.5*a*Math.PI)*Math.exp(6*-a)}}();var p=o.CSS={RegEx:{valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Hooks:{templates:{color:["Red Green Blue Alpha","255 255 255 1"],backgroundColor:["Red Green Blue Alpha","255 255 255 1"],borderColor:["Red Green Blue Alpha","255 255 255 1"],outlineColor:["Red Green Blue Alpha","255 255 255 1"],textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0%"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){var a,b,c;if(l)for(a in p.Hooks.templates){b=p.Hooks.templates[a],c=b[0].split(" ");var d=b[1].match(p.RegEx.valueSplit);"Color"===c[0]&&(c.push(c.shift()),d.push(d.shift()),p.Hooks.templates[a]=[c.join(" "),d.join(" ")])}for(a in p.Hooks.templates){b=p.Hooks.templates[a],c=b[0].split(" ");for(var e in c){var f=a+c[e],g=e;p.Hooks.registered[f]=[a,g]}}},getRoot:function(a){var b=p.Hooks.registered[a];return b?b[0]:a},cleanRootPropertyValue:function(a,b){return p.RegEx.valueUnwrap.test(b)&&(b=b.match(p.Hooks.RegEx.valueUnwrap)[1]),p.Values.isCSSNullValue(b)&&(b=p.Hooks.templates[a][1]),b},extractValue:function(a,b){var c=p.Hooks.registered[a];if(c){var d=c[0],e=c[1];return b=p.Hooks.cleanRootPropertyValue(d,b),b.toString().match(p.RegEx.valueSplit)[e]}return b},injectValue:function(a,b,c){var d=p.Hooks.registered[a];if(d){var e,f,g=d[0],h=d[1];return c=p.Hooks.cleanRootPropertyValue(g,c),e=c.toString().match(p.RegEx.valueSplit),e[h]=b,f=e.join(" ")}return c}},Normalizations:{registered:{clip:function(a,b,c){switch(a){case"name":return"clip";case"extract":var d;return p.RegEx.wrappedValueAlreadyExtracted.test(c)?d=c:(d=c.toString().match(p.RegEx.valueUnwrap),d&&(d=d[1].replace(/,(\s+)?/g," "))),d;case"inject":return"rect("+c+")"}},opacity:function(a,b,c){if(8>=l)switch(a){case"name":return"filter";case"extract":var d=c.toString().match(/alpha\(opacity=(.*)\)/i);return c=d?d[1]/100:1;case"inject":return b.style.zoom=1,parseFloat(c)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(c),10)+")"}else switch(a){case"name":return"opacity";case"extract":return c;case"inject":return c}}},register:function(){function a(a){var b,c=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,d=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i;return a=a.replace(c,function(a,b,c,d){return b+b+c+c+d+d}),b=d.exec(a),b?"rgb("+(parseInt(b[1],16)+" "+parseInt(b[2],16)+" "+parseInt(b[3],16))+")":"rgb(0 0 0)"}var b=["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"];9>=l||(b=b.concat(["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]));for(var c=0,e=b.length;e>c;c++)!function(){var a=b[c];p.Normalizations.registered[a]=function(b,c,e){switch(b){case"name":return"transform";case"extract":return n.data(c,k).transformCache[a]===d?/^scale/i.test(a)?1:0:n.data(c,k).transformCache[a].replace(/[()]/g,"");case"inject":var f=!1;switch(a.substr(0,a.length-1)){case"translate":f=!/(%|px|em|rem|\d)$/i.test(e);break;case"scale":f=!/(\d)$/i.test(e);break;case"skew":f=!/(deg|\d)$/i.test(e);break;case"rotate":f=!/(deg|\d)$/i.test(e)}return f||(n.data(c,k).transformCache[a]="("+e+")"),n.data(c,k).transformCache[a]}}}();for(var f=["color","backgroundColor","borderColor","outlineColor"],c=0,g=f.length;g>c;c++)!function(){var b=f[c];p.Normalizations.registered[b]=function(c,e,f){switch(c){case"name":return b;case"extract":var g;if(p.RegEx.wrappedValueAlreadyExtracted.test(f))g=f;else{var h,i={aqua:"rgb(0, 255, 255);",black:"rgb(0, 0, 0)",blue:"rgb(0, 0, 255)",fuchsia:"rgb(255, 0, 255)",gray:"rgb(128, 128, 128)",green:"rgb(0, 128, 0)",lime:"rgb(0, 255, 0)",maroon:"rgb(128, 0, 0)",navy:"rgb(0, 0, 128)",olive:"rgb(128, 128, 0)",purple:"rgb(128, 0, 128)",red:"rgb(255, 0, 0)",silver:"rgb(192, 192, 192)",teal:"rgb(0, 128, 128)",white:"rgb(255, 255, 255)",yellow:"rgb(255, 255, 0)"};/^[A-z]+$/i.test(f)?h=i[f]!==d?i[f]:i.black:/^#([A-f\d]{3}){1,2}$/i.test(f)?h=a(f):/^rgba?\(/i.test(f)||(h=i.black),g=(h||f).toString().match(p.RegEx.valueUnwrap)[1].replace(/,(\s+)?/g," ")}return 8>=l||3!==g.split(" ").length||(g+=" 1"),g;case"inject":return 8>=l?4===f.split(" ").length&&(f=f.split(/\s+/).slice(0,3).join(" ")):3===f.split(" ").length&&(f+=" 1"),(8>=l?"rgb":"rgba")+"("+f.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(a){return a.replace(/-(\w)/g,function(a,b){return b.toUpperCase()})},prefixCheck:function(a){if(o.State.prefixMatches[a])return[o.State.prefixMatches[a],!0];for(var b=["","Webkit","Moz","ms","O"],c=0,d=b.length;d>c;c++){var e;if(e=0===c?a:b[c]+a.replace(/^\w/,function(a){return a.toUpperCase()}),"string"==typeof o.State.prefixElement.style[e])return o.State.prefixMatches[a]=e,[e,!0]}return[a,!1]}},Values:{isCSSNullValue:function(a){return 0==a||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(a)},getUnitType:function(a){return/^(rotate|skew)/i.test(a)?"deg":/(^(scale|scaleX|scaleY|scaleZ|opacity|alpha|fillOpacity|flexGrow|flexHeight|zIndex|fontWeight)$)|color/i.test(a)?"":"px"},getDisplayType:function(a){var b=a.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(b)?"inline":/^(li)$/i.test(b)?"list-item":"block"}},getPropertyValue:function(a,c,e,f){function g(a,c){var e=0;if(8>=l)e=n.css(a,c);else{if(!f){if("height"===c&&"border-box"!==p.getPropertyValue(a,"boxSizing").toString().toLowerCase())return a.offsetHeight-(parseFloat(p.getPropertyValue(a,"borderTopWidth"))||0)-(parseFloat(p.getPropertyValue(a,"borderBottomWidth"))||0)-(parseFloat(p.getPropertyValue(a,"paddingTop"))||0)-(parseFloat(p.getPropertyValue(a,"paddingBottom"))||0);if("width"===c&&"border-box"!==p.getPropertyValue(a,"boxSizing").toString().toLowerCase())return a.offsetWidth-(parseFloat(p.getPropertyValue(a,"borderLeftWidth"))||0)-(parseFloat(p.getPropertyValue(a,"borderRightWidth"))||0)-(parseFloat(p.getPropertyValue(a,"paddingLeft"))||0)-(parseFloat(p.getPropertyValue(a,"paddingRight"))||0)}var h;h=n.data(a,k)===d?b.getComputedStyle(a,null):n.data(a,k).computedStyle?n.data(a,k).computedStyle:n.data(a,k).computedStyle=b.getComputedStyle(a,null),l&&"borderColor"===c&&(c="borderTopColor"),e=9===l&&"filter"===c?h.getPropertyValue(c):h[c],(""===e||null===e)&&(e=a.style[c])}if("auto"===e&&/^(top|right|bottom|left)$/i.test(c)){var i=g(a,"position");("fixed"===i||"absolute"===i&&/top|left/i.test(c))&&(e=n(a).position()[c]+"px")}return e}var h;if(p.Hooks.registered[c]){var i=c,j=p.Hooks.getRoot(i);e===d&&(e=p.getPropertyValue(a,p.Names.prefixCheck(j)[0])),p.Normalizations.registered[j]&&(e=p.Normalizations.registered[j]("extract",a,e)),h=p.Hooks.extractValue(i,e)}else if(p.Normalizations.registered[c]){var m,q;m=p.Normalizations.registered[c]("name",a),"transform"!==m&&(q=g(a,p.Names.prefixCheck(m)[0]),p.Values.isCSSNullValue(q)&&p.Hooks.templates[c]&&(q=p.Hooks.templates[c][1])),h=p.Normalizations.registered[c]("extract",a,q)}return/^[\d-]/.test(h)||(h=g(a,p.Names.prefixCheck(c)[0])),p.Values.isCSSNullValue(h)&&(h=0),o.debug>=2&&console.log("Get "+c+": "+h),h},setPropertyValue:function(a,c,d,e,f){var g=c;if("scroll"===c)f.container?f.container["scroll"+f.direction]=d:"Left"===f.direction?b.scrollTo(d,f.alternateValue):b.scrollTo(f.alternateValue,d);else if(p.Normalizations.registered[c]&&"transform"===p.Normalizations.registered[c]("name",a))p.Normalizations.registered[c]("inject",a,d),g="transform",d=n.data(a,k).transformCache[c];else{if(p.Hooks.registered[c]){var h=c,i=p.Hooks.getRoot(c);e=e||p.getPropertyValue(a,i),d=p.Hooks.injectValue(h,d,e),c=i}if(p.Normalizations.registered[c]&&(d=p.Normalizations.registered[c]("inject",a,d),c=p.Normalizations.registered[c]("name",a)),g=p.Names.prefixCheck(c)[0],8>=l)try{a.style[g]=d}catch(j){console.log("Error setting ["+g+"] to ["+d+"]")}else a.style[g]=d;o.debug>=2&&console.log("Set "+c+" ("+g+"): "+d)}return[g,d]},flushTransformCache:function(a){var b,c,d,e="";for(b in n.data(a,k).transformCache)c=n.data(a,k).transformCache[b],"transformPerspective"!==b?(9===l&&"rotateZ"===b&&(b="rotate"),e+=b+c+" "):d=c;d&&(e="perspective"+d+" "+e),p.setPropertyValue(a,"transform",e)}};p.Hooks.register(),p.Normalizations.register(),o.animate=function(){function a(a){var b=a;return"string"==typeof a?o.Easings[a]||(b=!1):b=g(a)?h.apply(null,a):!1,b===!1&&(b=o.Easings[o.defaults.easing]?o.defaults.easing:"swing"),b}function j(){function b(){function b(b){var c=d,e=d,i=d;return g(b)?(c=b[0],!g(b[1])&&/^[\d-]/.test(b[1])||f(b[1])?i=b[1]:("string"==typeof b[1]||g(b[1]))&&(e=a(b[1]),b[2]&&(i=b[2]))):c=b,e=e||j.easing,f(c)&&(c=c.call(h,u,t)),f(i)&&(i=i.call(h,u,t)),[c||0,e,i]}function v(a,b){var c,d;return d=(b||0).toString().toLowerCase().replace(/[%A-z]+$/,function(a){return c=a,""}),c||(c=p.Values.getUnitType(a)),[d,c]}function w(){var a={parent:h.parentNode,position:p.getPropertyValue(h,"position"),fontSize:p.getPropertyValue(h,"fontSize")},b=a.position===y.lastPosition&&a.parent===y.lastParent,d=a.fontSize===y.lastFontSize&&a.parent===y.lastParent;y.lastParent=a.parent,y.lastPosition=a.position,y.lastFontSize=a.fontSize,null===y.remToPxRatio&&(y.remToPxRatio=parseFloat(p.getPropertyValue(c.body,"fontSize"))||16);var e={overflowX:null,overflowY:null,boxSizing:null,width:null,minWidth:null,maxWidth:null,height:null,minHeight:null,maxHeight:null,paddingLeft:null},f={},g=10;if(f.remToPxRatio=y.remToPxRatio,l)var i=/^auto$/i.test(h.currentStyle.width),j=/^auto$/i.test(h.currentStyle.height);b&&d||(e.overflowX=p.getPropertyValue(h,"overflowX"),e.overflowY=p.getPropertyValue(h,"overflowY"),e.boxSizing=p.getPropertyValue(h,"boxSizing"),e.width=p.getPropertyValue(h,"width",null,!0),e.minWidth=p.getPropertyValue(h,"minWidth"),e.maxWidth=p.getPropertyValue(h,"maxWidth")||"none",e.height=p.getPropertyValue(h,"height",null,!0),e.minHeight=p.getPropertyValue(h,"minHeight"),e.maxHeight=p.getPropertyValue(h,"maxHeight")||"none",e.paddingLeft=p.getPropertyValue(h,"paddingLeft")),b?(f.percentToPxRatioWidth=y.lastPercentToPxWidth,f.percentToPxRatioHeight=y.lastPercentToPxHeight):(p.setPropertyValue(h,"overflowX","hidden"),p.setPropertyValue(h,"overflowY","hidden"),p.setPropertyValue(h,"boxSizing","content-box"),p.setPropertyValue(h,"width",g+"%"),p.setPropertyValue(h,"minWidth",g+"%"),p.setPropertyValue(h,"maxWidth",g+"%"),p.setPropertyValue(h,"height",g+"%"),p.setPropertyValue(h,"minHeight",g+"%"),p.setPropertyValue(h,"maxHeight",g+"%")),d?f.emToPxRatio=y.lastEmToPx:p.setPropertyValue(h,"paddingLeft",g+"em"),b||(f.percentToPxRatioWidth=y.lastPercentToPxWidth=(parseFloat(p.getPropertyValue(h,"width",null,!0))||1)/g,f.percentToPxRatioHeight=y.lastPercentToPxHeight=(parseFloat(p.getPropertyValue(h,"height",null,!0))||1)/g),d||(f.emToPxRatio=y.lastEmToPx=(parseFloat(p.getPropertyValue(h,"paddingLeft"))||1)/g);for(var k in e)null!==e[k]&&p.setPropertyValue(h,k,e[k]);return l?(i&&p.setPropertyValue(h,"width","auto"),j&&p.setPropertyValue(h,"height","auto")):(p.setPropertyValue(h,"height","auto"),e.height!==p.getPropertyValue(h,"height",null,!0)&&p.setPropertyValue(h,"height",e.height),p.setPropertyValue(h,"width","auto"),e.width!==p.getPropertyValue(h,"width",null,!0)&&p.setPropertyValue(h,"width",e.width)),o.debug>=1&&console.log("Unit ratios: "+JSON.stringify(f),h),f}if(0===u&&s&&f(s.begin)){var A=q.jquery?q.get():q;s.begin.call(A,A)}if("scroll"===x){var B,C,D,E=/^x$/i.test(j.axis)?"Left":"Top",F=parseFloat(j.offset)||0;j.container?j.container.jquery||j.container.nodeType?(j.container=j.container[0]||j.container,B=j.container["scroll"+E],D=B+n(h).position()[E.toLowerCase()]+F):j.container=null:(B=o.State.scrollAnchor[o.State["scrollProperty"+E]],C=o.State.scrollAnchor[o.State["scrollProperty"+("Left"===E?"Top":"Left")]],D=n(h).offset()[E.toLowerCase()]+F),m={scroll:{rootPropertyValue:!1,startValue:B,currentValue:B,endValue:D,unitType:"",easing:j.easing,scrollContainer:{container:j.container,direction:E,alternateValue:C}},element:h}}else if("reverse"===x){if(!n.data(h,k).tweensContainer)return void n.dequeue(h,j.queue);"none"===n.data(h,k).opts.display&&(n.data(h,k).opts.display="block"),n.data(h,k).opts.loop=!1,n.data(h,k).opts.begin=null,n.data(h,k).opts.complete=null,j=n.extend({},n.data(h,k).opts,s);var G=n.extend(!0,{},n.data(h,k).tweensContainer);for(var H in G)if("element"!==H){var I=G[H].startValue;G[H].startValue=G[H].currentValue=G[H].endValue,G[H].endValue=I,s&&(G[H].easing=j.easing)}m=G}else if("start"===x){var G;n.data(h,k).tweensContainer&&n.data(h,k).isAnimating===!0&&(G=n.data(h,k).tweensContainer);for(var J in r){var K=b(r[J]),L=K[0],M=K[1],N=K[2];J=p.Names.camelCase(J);var O=p.Hooks.getRoot(J),P=!1;if(p.Names.prefixCheck(O)[1]!==!1||p.Normalizations.registered[O]!==d){j.display&&"none"!==j.display&&/opacity|filter/.test(J)&&!N&&0!==L&&(N=0),j._cacheValues&&G&&G[J]?(N===d&&(N=G[J].endValue+G[J].unitType),P=n.data(h,k).rootPropertyValueCache[O]):p.Hooks.registered[J]?N===d?(P=p.getPropertyValue(h,O),N=p.getPropertyValue(h,J,P)):P=p.Hooks.templates[O][1]:N===d&&(N=p.getPropertyValue(h,J));var Q,R,S,T;Q=v(J,N),N=Q[0],S=Q[1],Q=v(J,L),L=Q[0].replace(/^([+-\/*])=/,function(a,b){return T=b,""}),R=Q[1],N=parseFloat(N)||0,L=parseFloat(L)||0;var U;if("%"===R&&(/^(fontSize|lineHeight)$/.test(J)?(L/=100,R="em"):/^scale/.test(J)?(L/=100,R=""):/(Red|Green|Blue)$/i.test(J)&&(L=L/100*255,R="")),/[\/*]/.test(T))R=S;else if(S!==R&&0!==N)if(0===L)R=S;else{U=U||w();var V=/margin|padding|left|right|width|text|word|letter/i.test(J)||/X$/.test(J)?"x":"y";switch(S){case"%":N*="x"===V?U.percentToPxRatioWidth:U.percentToPxRatioHeight;break;case"em":N*=U.emToPxRatio;break;case"rem":N*=U.remToPxRatio;break;case"px":}switch(R){case"%":N*=1/("x"===V?U.percentToPxRatioWidth:U.percentToPxRatioHeight);break;case"em":N*=1/U.emToPxRatio;break;case"rem":N*=1/U.remToPxRatio;break;case"px":}}switch(T){case"+":L=N+L;break;case"-":L=N-L;break;case"*":L=N*L;break;case"/":L=N/L}m[J]={rootPropertyValue:P,startValue:N,currentValue:N,endValue:L,unitType:R,easing:M},o.debug&&console.log("tweensContainer ("+J+"): "+JSON.stringify(m[J]),h)}else o.debug&&console.log("Skipping ["+O+"] due to a lack of browser support.")}m.element=h}m.element&&(z.push(m),n.data(h,k).tweensContainer=m,n.data(h,k).opts=j,n.data(h,k).isAnimating=!0,u===t-1?(o.State.calls.length>1e4&&(o.State.calls=e(o.State.calls)),o.State.calls.push([z,q,j]),o.State.isTicking===!1&&(o.State.isTicking=!0,i())):u++)}var h=this,j=n.extend({},o.defaults,s),m={};if("stop"===x)return n.queue(h,"string"==typeof s?s:"",[]),!0;switch(n.data(h,k)===d&&n.data(h,k,{isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}}),j.duration.toString().toLowerCase()){case"fast":j.duration=200;break;case"normal":j.duration=400;break;case"slow":j.duration=600;break;default:j.duration=parseFloat(j.duration)||parseFloat(o.defaults.duration)||400}j.easing=a(j.easing),/^\d/.test(j.delay)&&n.queue(h,j.queue,function(a){o.velocityQueueEntryFlag=!0,setTimeout(a,parseFloat(j.delay))}),j.display&&(j.display=j.display.toString().toLowerCase()),j.mobileHA=j.mobileHA&&o.State.isMobile,j.queue===!1?b():n.queue(h,j.queue,function(a){o.velocityQueueEntryFlag=!0,b(a)}),""!==j.queue&&"fx"!==j.queue||"inprogress"===n.queue(h)[0]||n.dequeue(h)}var m,q,r,s;this.jquery||b.Zepto&&b.Zepto.zepto.isZ(this)?(m=!0,q=this,r=arguments[0],s=arguments[1]):(m=!1,q=arguments[0].jquery?arguments[0].get():arguments[0],r=arguments[1],s=arguments[2]);var t=q.length||1,u=0;if("stop"!==r&&!n.isPlainObject(s)){var v=m?1:2;s={};for(var w=v;wD;D++){var E={delay:C.delay};C.complete&&D===B-1&&(E.complete=C.complete),m?q.velocity("reverse",E):o.animate(q,"reverse",E)}return q};var q=b.jQuery||b.Zepto;q&&(q.fn.velocity=o.animate,q.fn.velocity.defaults=o.defaults),n.each(["Down","Up"],function(a,b){o.Sequences["slide"+b]=function(a,c){var d=n.extend({},c),e={height:null,marginTop:null,marginBottom:null,paddingTop:null,paddingBottom:null,overflow:null,overflowY:null},f=d.begin,g=d.complete;d.display="Down"===b?d.display||"block":d.display||"none",d.begin=function(){if("Down"===b){e.overflow=[o.CSS.getPropertyValue(a,"overflow"),0],e.overflowY=[o.CSS.getPropertyValue(a,"overflowY"),0],a.style.overflow="hidden",a.style.overflowY="hidden",a.style.height="auto",a.style.display="block";for(var c in e)/^overflow/.test(c)||(e[c]=[o.CSS.getPropertyValue(a,c),0]);a.style.display="none"}else{for(var c in e)e[c]=[0,o.CSS.getPropertyValue(a,c)];a.style.overflow="hidden",a.style.overflowY="hidden"}f&&f.call(a,a)},d.complete=function(a){for(var c in e)a.style[c]=e[c]["Down"===b?0:1];g&&g.call(a,a)},o.animate(a,e,d)}}),n.each(["In","Out"],function(a,b){o.Sequences["fade"+b]=function(a,c,d,e){var f=n.extend({},c),g={opacity:"In"===b?1:0};d!==e-1&&(f.complete=f.begin=null),f.display||(f.display="In"===b?o.CSS.Values.getDisplayType(a):"none"),o.animate(this,g,f)}})}(window.jQuery||window.Zepto||window,window,document);
\ No newline at end of file