Skip to content

Instantly share code, notes, and snippets.

@AbelToy
Created February 7, 2015 15:25
Show Gist options
  • Save AbelToy/ef790bdb8ef61af867f9 to your computer and use it in GitHub Desktop.
Save AbelToy/ef790bdb8ef61af867f9 to your computer and use it in GitHub Desktop.
Rekcahdam Javascript
/*
Directive by HTML5 UP
html5up.net | @n33co
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
*/
(function($) {
skel.init({
reset: 'full',
breakpoints: {
global: { range: '*', href: 'https://googledrive.com/host/0B7N2XzieDnfpQUgyU05CN05hRlk', containers: '51em', grid: { gutters: 30 } },
wide: { range: '-1680', href: 'https://googledrive.com/host/0B7N2XzieDnfpN1Y5VDBlNWtNTDA' },
normal: { range: '-1280', href: 'https://googledrive.com/host/0B7N2XzieDnfpckRfMHgwb0FCRkk', containers: '48em' },
narrow: { range: '-980', href: 'https://googledrive.com/host/0B7N2XzieDnfpZ0ljY2U2TlFqeFE', containers: '95%', grid: { gutters: 30 } },
narrower: { range: '-840', href: 'https://googledrive.com/host/0B7N2XzieDnfpbVQ3QXZJQWFheTQ', containers: '95%!', grid: { zoom: 2, gutters: 20 } },
mobile: { range: '-736', href: 'https://googledrive.com/host/0B7N2XzieDnfpU0hnY0ZaUnIxZEk', containers: '90%!', grid: { gutters: 20 }, viewport: { scalable: false } },
mobilep: { range: '-480', href: 'https://googledrive.com/host/0B7N2XzieDnfpYXU2V2dwVGJjNkk', containers: '100%!', grid: { zoom: 3 } }
}
});
$(function() {
var $window = $(window),
$body = $('body'),
$nav = $('nav'), $nav_a = $nav.find('a');
// Disable animations/transitions until the page has loaded.
$body.addClass('is-loading');
$window.on('load', function() {
$body.removeClass('is-loading');
});
// Set up nav items
$nav_a.scrolly();
// Forms (IE<10).
var $form = $('form');
if ($form.length > 0) {
$form.find('.form-button-submit')
.on('click', function() {
$(this).parents('form').submit();
return false;
});
if (skel.vars.IEVersion < 10) {
$.fn.n33_formerize=function(){var _fakes=new Array(),_form = $(this);_form.find('input[type=text],textarea').each(function() { var e = $(this); if (e.val() == '' || e.val() == e.attr('placeholder')) { e.addClass('formerize-placeholder'); e.val(e.attr('placeholder')); } }).blur(function() { var e = $(this); if (e.attr('name').match(/_fakeformerizefield$/)) return; if (e.val() == '') { e.addClass('formerize-placeholder'); e.val(e.attr('placeholder')); } }).focus(function() { var e = $(this); if (e.attr('name').match(/_fakeformerizefield$/)) return; if (e.val() == e.attr('placeholder')) { e.removeClass('formerize-placeholder'); e.val(''); } }); _form.find('input[type=password]').each(function() { var e = $(this); var x = $($('<div>').append(e.clone()).remove().html().replace(/type="password"/i, 'type="text"').replace(/type=password/i, 'type=text')); if (e.attr('id') != '') x.attr('id', e.attr('id') + '_fakeformerizefield'); if (e.attr('name') != '') x.attr('name', e.attr('name') + '_fakeformerizefield'); x.addClass('formerize-placeholder').val(x.attr('placeholder')).insertAfter(e); if (e.val() == '') e.hide(); else x.hide(); e.blur(function(event) { event.preventDefault(); var e = $(this); var x = e.parent().find('input[name=' + e.attr('name') + '_fakeformerizefield]'); if (e.val() == '') { e.hide(); x.show(); } }); x.focus(function(event) { event.preventDefault(); var x = $(this); var e = x.parent().find('input[name=' + x.attr('name').replace('_fakeformerizefield', '') + ']'); x.hide(); e.show().focus(); }); x.keypress(function(event) { event.preventDefault(); x.val(''); }); }); _form.submit(function() { $(this).find('input[type=text],input[type=password],textarea').each(function(event) { var e = $(this); if (e.attr('name').match(/_fakeformerizefield$/)) e.attr('name', ''); if (e.val() == e.attr('placeholder')) { e.removeClass('formerize-placeholder'); e.val(''); } }); }).bind("reset", function(event) { event.preventDefault(); $(this).find('select').val($('option:first').val()); $(this).find('input,textarea').each(function() { var e = $(this); var x; e.removeClass('formerize-placeholder'); switch (this.type) { case 'submit': case 'reset': break; case 'password': e.val(e.attr('defaultValue')); x = e.parent().find('input[name=' + e.attr('name') + '_fakeformerizefield]'); if (e.val() == '') { e.hide(); x.show(); } else { e.show(); x.hide(); } break; case 'checkbox': case 'radio': e.attr('checked', e.attr('defaultValue')); break; case 'text': case 'textarea': e.val(e.attr('defaultValue')); if (e.val() == '') { e.addClass('formerize-placeholder'); e.val(e.attr('placeholder')); } break; default: e.val(e.attr('defaultValue')); break; } }); window.setTimeout(function() { for (x in _fakes) _fakes[x].trigger('formerize_sync'); }, 10); }); return _form; };
$form.n33_formerize();
}
}
});
})(jQuery);
/* jquery.scrolly v0.1 | (c) n33 | n33.co @n33co | MIT */
(function(e){var t="click.scrolly";e.fn.scrolly=function(r,i){var s=e(this);return r||(r=1e3),i||(i=0),s.off(t).on(t,function(t){var n,s,o,u=e(this),a=u.attr("href");a.charAt(0)=="#"&&a.length>1&&(n=e(a)).length>0&&(s=n.offset().top,u.hasClass("scrolly-centered")?o=s-(e(window).height()-n.outerHeight())/2:(o=Math.max(s,0),i&&(typeof i=="function"?o-=i():o-=i)),t.preventDefault(),e("body,html").stop().animate({scrollTop:o},r,"swing"))}),s}})(jQuery);
/* skel.js v2.0.0 | (c) n33 | getskel.com | MIT licensed */
var skel=function(){var e="config",t="breakpoints",n="iterate",r="stateId",i="getElementsByClassName",s="elements",o="stateElements",u="getElementsByTagName",a=!1,f="length",l=" 0 0 ",c=null,h="viewport",p="getCachedElement",d="cacheNewElement",v="config_breakpoint",m="gutters",g="insertBefore",y="vars",b="}",w="newInline",E=!0,S="parentNode",x="locations",T="orientationChange",N="createElement",C="deviceType",k="className",L="substring",A="object",O="isArray",M="match",_="cache",D="replace",P="head",H="newElement",B="indexOf",j="+*,",F="_skel_isReversed",I="extend",q="push",R="matchesMedia",U="grid",z="containers",W="onorientationchange",X="maxGridZoom",V="lock",$="defaults",J="DOMReady",K="getComputedStyle",Q="addEventListener",G="^head",Y="{display:none!important}",Z="registerLocation",et="parseMeasurement",tt="events",nt="IEVersion",rt="placeholder",it="documentElement",st="attachElements",ot="plugins",ut="attachElement",at="DOMContentLoaded",ft="text/css",lt="device-height",ct="states",ht="device-width",pt="initial-scale=1",dt="_skel_attach",vt="removeEventListener",mt="previousSibling",gt="resize",yt="attached",bt="collapse",wt="normalize",Et="media",St="location",xt="(min-width: ",Tt="change",Nt="applyRowTransforms",Ct="split",kt="html",Lt="forceDefaultState",At="_skel_placeholder",Ot="firstChild",Mt="max-height",_t="min-height",Dt="querySelectorAll",Pt="max-width",Ht="min-width",Bt="prototype",jt="innerHTML",Ft="nextSibling",It="domready",qt="hasOwnProperty",Rt="readyState",Ut="href",zt="height=",Wt=".\\3$1 ",Xt="priority",Vt="isStatic",$t="zoom",Jt="onresize",Kt="android",Qt={breakpoints:[],breakpointList:[],cache:{elements:{},states:{},stateElements:{}},config:{breakpoints:{"*":{href:a,media:""}},containers:1140,defaultState:c,events:{},grid:{zoom:1,collapse:a,gutters:[40,0]},lock:{path:a,permanent:E},plugins:{},pollOnce:a,preload:a,reset:wt,RTL:a,viewport:{width:ht,height:lt,scalable:E}},css:{bm:"*,*:before,*:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}",n:"html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}",r:"html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}table{border-collapse:collapse;border-spacing:0}body{-webkit-text-size-adjust:none}",gc:function(e){return".\\31 2u"+e+",.\\31 2u\\24"+e+"{width:100%;clear:none}"+".\\31 1u"+e+",.\\31 1u\\24"+e+"{width:91.6666666667%;clear:none}"+".\\31 0u"+e+",.\\31 0u\\24"+e+"{width:83.3333333333%;clear:none}"+".\\39 u"+e+",.\\39 u\\24"+e+"{width:75%;clear:none}"+".\\38 u"+e+",.\\38 u\\24"+e+"{width:66.6666666667%;clear:none}"+".\\37 u"+e+",.\\37 u\\24"+e+"{width:58.3333333333%;clear:none}"+".\\36 u"+e+",.\\36 u\\24"+e+"{width:50%;clear:none}"+".\\35 u"+e+",.\\35 u\\24"+e+"{width:41.6666666667%;clear:none}"+".\\34 u"+e+",.\\34 u\\24"+e+"{width:33.3333333333%; clear: none}"+".\\33 u"+e+",.\\33 u\\24"+e+"{width:25%;clear:none}"+".\\32 u"+e+",.\\32 u\\24"+e+"{width:16.6666666667%;clear:none}"+".\\31 u"+e+",.\\31 u\\24"+e+"{width:8.3333333333%;clear:none}"+".\\31 2u\\24"+e+j+".\\31 1u\\24"+e+j+".\\31 0u\\24"+e+j+".\\39 u\\24"+e+j+".\\38 u\\24"+e+j+".\\37 u\\24"+e+j+".\\36 u\\24"+e+j+".\\35 u\\24"+e+j+".\\34 u\\24"+e+j+".\\33 u\\24"+e+j+".\\32 u\\24"+e+"+*"+".\\31 u\\24"+e+"+*{"+"clear:left;"+b+".\\-11u{margin-left:91.6666666667%}"+".\\-10u{margin-left:83.3333333333%}"+".\\-9u{margin-left:75%}"+".\\-8u{margin-left:66.6666666667%}"+".\\-7u{margin-left:58.3333333333%}"+".\\-6u{margin-left:50%}"+".\\-5u{margin-left:41.6666666667%}"+".\\-4u{margin-left:33.3333333333%}"+".\\-3u{margin-left:25%}"+".\\-2u{margin-left:16.6666666667%}"+".\\-1u{margin-left:8.3333333333%}"}},defaults:{breakpoint:{config:c,elements:c,test:c},config_breakpoint:{containers:"100%",grid:{},href:a,media:"",viewport:{}}},events:[],forceDefaultState:a,isInit:a,isStatic:a,locations:{body:c,head:c,html:c},lcn:"_skel_lock",maxGridZoom:1,me:c,plugins:{},sd:"/",stateId:"",vars:{},DOMReady:c,getElementsByClassName:c,indexOf:c,isArray:c,iterate:c,matchesMedia:c,extend:function(e,t){var r;Qt[n](t,function(n){Qt[O](t[n])?(Qt[O](e[n])||(e[n]=[]),Qt[I](e[n],t[n])):typeof t[n]==A?(typeof e[n]!=A&&(e[n]={}),Qt[I](e[n],t[n])):e[n]=t[n]})},getArray:function(e){return Qt[O](e)?e:[e]},parseMeasurement:function(e){var t,n;if(typeof e!="string")t=[e,"px"];else if(e=="fluid")t=[100,"%"];else{var n;n=e[M](/([0-9\.]+)([^\s]*)/),n[f]<3||!n[2]?t=[parseFloat(e),"px"]:t=[parseFloat(n[1]),n[2]]}return t},canUse:function(e){return Qt[t][e]&&Qt[t][e].test()},hasActive:function(e){var t=a;return Qt[n](e,function(n){t=t||Qt.isActive(e[n])}),t},isActive:function(e){return Qt[B](Qt[r],Qt.sd+e)!==-1},isLocked:function(){return!!Qt[y][V]&&Qt[O](Qt[y][V])},lock:function(t,n){Qt[y][V]=[t,n],document.cookie=Qt.lcn+"="+Qt[y][V].join("_")+(Qt[e][V].path?";path="+Qt[e][V].path:"")+(Qt[e][V].permanent?";expires=Tue, 19 Jan 2038 03:14:07 GMT":""),window[St].reload()},unlock:function(){Qt[y][V]=c,document.cookie=Qt.lcn+"="+(Qt[e][V].path?";path="+Qt[e][V].path:"")+";expires=Thu, 01 Jan 1970 01:02:03 GMT",window[St].reload()},useActive:function(e){if(typeof e!==A)return e;var t=c;return Qt[n](e,function(n){if(t!==c)return;Qt.isActive(n)&&(t=e[n])}),t},wasActive:function(e){return Qt[B](Qt[y].lastStateId,Qt.sd+e)!==-1},applyRowTransforms:function(t){Qt[e].RTL&&(Qt.unreverseRows(),t[e][U][bt]&&Qt.reverseRows());var r="_skel_important",s=[],o,u;for(o=1;o<=Qt[X];o++)u=Qt[i]("important("+o+")"),Qt[n](u,function(e){s[q](u[e])});u=Qt[i]("important(collapse)"),Qt[n](u,function(e){s[q](u[e])}),Qt[n](s,function(n){if(n===f)return;var i=s[n],o=i[S],u,l=a,c,h;if(!o)return;if(!i[qt](r)||i[r]===a){t[e][U][bt]&&i[k][M](/important\(collapse\)/)?l="c":i[k][M](/important\(([0-9])\)/)&&(h=parseInt(RegExp.$1))<=t[e][U][$t]&&(l="z");if(!l)return;c=Qt[e].RTL?Ft:mt,u=i[c];while(u&&u.nodeName=="#text")u=u[c];if(!u)return;o[g](i,Qt[e].RTL&&l=="z"?o.lastChild:o[Ot]),i[r]={placeholder:u,mode:l,zoom:h}}else{u=i[r][rt],l=i[r].mode;if(l=="c"&&t[e][U][bt]||l=="z"&&i[r][$t]<=t[e][U][$t])return;o[g](i,Qt[e].RTL&&l=="z"?u[mt]:u[Ft]),i[r]=a}})},reverseRows:function(){var e=Qt[i]("row");Qt[n](e,function(t){if(t===f)return;var n=e[t];if(n[F])return;var r=n.children,i;for(i=1;i<r[f];i++)n[g](r[i],r[0]);n[F]=E})},unreverseRows:function(){var e=Qt[i]("row");Qt[n](e,function(t){if(t===f)return;var n=e[t];if(!n[F])return;var r=n.children,i;for(i=1;i<r[f];i++)n[g](r[i],r[0]);n[F]=a})},bind:function(e,t){Qt[tt][e]||(Qt[tt][e]=[]),Qt[tt][e][q](t),e==Tt&&Qt.isInit&&t()},change:function(e){Qt.bind(Tt,e)},trigger:function(e){if(!Qt[tt][e]||Qt[tt][e][f]==0)return;var t;Qt[n](Qt[tt][e],function(t){Qt[tt][e][t]()})},registerLocation:function(e,t){e==P?t[dt]=function(e,t){t?this[g](e,this[Ot]):this===Qt.me[S]?this[g](e,Qt.me):this.appendChild(e)}:t[dt]=function(e,t){t?this[g](e,this[Ot]):this.appendChild(e)},Qt[x][e]=t},addCachedElementToBreakpoint:function(e,n){Qt[t][e]&&Qt[t][e][s][q](n)},addCachedElementToState:function(e,t){Qt[_][o][e]?Qt[_][o][e][q](t):Qt[_][o][e]=[t]},attachElement:function(e){var t,n=e[St],r=a;return e[yt]?E:(n[0]=="^"&&(n=n[L](1),r=E),n in Qt[x]?(t=Qt[x][n],t[dt](e[A],r),e[yt]=E,e.onAttach&&e.onAttach(),E):a)},attachElements:function(e){var t=[],r=[],i,s,o;Qt[n](e,function(n){t[e[n][Xt]]||(t[e[n][Xt]]=[]),t[e[n][Xt]][q](e[n])}),Qt[n](t,function(e){if(t[e][f]==0)return;Qt[n](t[e],function(n){Qt[ut](t[e][n])||r[q](t[e][n])})}),r[f]>0&&Qt[J](function(){Qt[n](r,function(e){Qt[ut](r[e])})})},cacheElement:function(e){return Qt[_][s][e.id]=e,e},cacheNewElement:function(e,t,n,r){var i;return t[S]&&t[S].removeChild(t),i=Qt[H](e,t,n,r),Qt.cacheElement(i)},detachAllElements:function(e){var t,r,i={};Qt[n](e,function(t){i[e[t].id]=E}),Qt[n](Qt[_][s],function(e){if(e in i)return;Qt.detachElement(e)})},detachElement:function(e){var t=Qt[_][s][e],n;if(!t[yt])return;n=t[A];if(!n[S]||n[S]&&!n[S].tagName)return;n[S].removeChild(n),t[yt]=a,t.onDetach&&t.onDetach()},getCachedElement:function(e){return Qt[_][s][e]?Qt[_][s][e]:c},newElement:function(e,t,n,r){return{id:e,object:t,location:n,priority:r,attached:a}},changeState:function(i){var u,c,g,S,x,T,N,C,k;Qt[y].lastStateId=Qt[r],Qt[r]=i;if(!Qt[_][ct][Qt[r]]){Qt[_][ct][Qt[r]]={config:{},elements:[],values:{}},g=Qt[_][ct][Qt[r]],Qt[r]===Qt.sd?u=[]:u=Qt[r][L](1)[Ct](Qt.sd),Qt[I](g[e],Qt[$][v]),Qt[n](u,function(n){Qt[I](g[e],Qt[t][u[n]][e])}),N="mV"+Qt[r],g[e][h].content?C=g[e][h].content:Qt.isLocked()?(S=[],S[q]("user-scalable=yes"),Qt[y][V][0]&&S[q]("width="+Qt[y][V][0]),Qt[y][V][1]&&S[q](zt+Qt[y][V][1]),C=S.join(","),window.setTimeout(function(){Qt.poll()},0)):(S=[],S[q]("user-scalable="+(g[e][h].scalable?"yes":"no")),g[e][h].width&&S[q]("width="+g[e][h].width),g[e][h].height&&S[q](zt+g[e][h].height),g[e][h].width==ht&&g[e][h].height==lt&&S[q](pt),C=S.join(",")),(x=Qt[p](N))||(x=Qt[d](N,Qt.newMeta(h,C),G,4)),g[s][q](x);var A,O,M=a;S=Qt[et](g[e][z]),A=S[0],O=S[1],g.values[z]=A+O,N="iC"+g.values[z],O.substr(-1)=="!"&&(M=E,O=O.substr(0,O[f]-1)),(x=Qt[p](N))||(x=Qt[d](N,Qt[w]("body{min-width:"+A*1+O+b+".container{margin-left:auto;margin-right:auto;width:"+A*1+O+(M?"!important;max-width:none!important;min-width:0!important"+b:b+".container.\\31 25\\25{width:100%;max-width:"+A*1.25+O+";min-width:"+A+b+".container.\\37 5\\25{width:"+A*.75+O+b+".container.\\35 0\\25{width:"+A*.5+O+b+".container.\\32 5\\25{width:"+A*.25+O+b)),P,3)),g[s][q](x),N="iGG"+g[e][U][m][0]+"_"+g[e][U][m][1];if(!(x=Qt[p](N))){var H,j;S=Qt[et](g[e][U][m][0]),H=S[0],j=S[1];var F,R;S=Qt[et](g[e][U][m][1]),F=S[0],R=S[1],x=Qt[d]("iGG"+g[e][U][m][0]+"_"+g[e][U][m][1],Qt[w](".row>*{padding:"+F*1+R+l+H*1+j+b+".row{margin:"+F*-1+R+l+H*-1+j+b+".row.uniform>*{padding:"+H*1+j+l+H*1+j+b+".row.uniform{margin:"+H*-1+j+l+H*-1+j+b+".row.\\32 00\\25>*{padding:"+F*2+R+l+H*2+j+b+".row.\\32 00\\25{margin:"+F*-2+R+l+H*-2+j+b+".row.uniform.\\32 00\\25>*{padding:"+H*2+j+l+H*2+j+b+".row.uniform.\\32 00\\25{margin:"+H*-2+j+l+H*-2+j+b+".row.\\31 50\\25>*{padding:"+F*1.5+R+l+H*1.5+j+b+".row.\\31 50\\25{margin:"+F*-1.5+R+l+H*-1.5+j+b+".row.uniform.\\31 50\\25>*{padding:"+H*1.5+j+l+H*1.5+j+b+".row.uniform.\\31 50\\25{margin:"+H*-1.5+j+l+H*-1.5+j+b+".row.\\35 0\\25>*{padding:"+F*.5+R+l+H*.5+j+b+".row.\\35 0\\25{margin:"+F*-0.5+R+l+H*-0.5+j+b+".row.uniform.\\35 0\\25>*{padding:"+H*.5+j+l+H*.5+j+b+".row.uniform.\\35 0\\25{margin:"+H*-0.5+j+l+H*-0.5+j+b+".row.\\32 5\\25>*{padding:"+F*.25+R+l+H*.25+j+b+".row.\\32 5\\25{margin:"+F*-0.25+R+l+H*-0.25+j+b+".row.uniform.\\32 5\\25>*{padding:"+H*.25+j+l+H*.25+j+b+".row.uniform.\\32 5\\25{margin:"+H*-0.25+j+l+H*-0.25+j+b+".row.\\30 \\25>*{padding:0}"+".row.\\30 \\25{margin:0}"),P,3)}g[s][q](x),N="igZ"+g[e][U][$t];if(!(x=Qt[p](N))){C="";for(T=1;T<=g[e][U][$t];T++)C+=Qt.css.gc("\\28 "+T+"\\29");x=Qt[d](N,Qt[w](C),P,3)}g[s][q](x),g[e][U][bt]&&(N="igC"+g[e][z],(x=Qt[p](N))||(x=Qt[d](N,Qt[w](".row:not(.no-collapse)>*{width:100%!important;margin-left:0!important"+b),P,3)),g[s][q](x)),N="iCd"+Qt[r];if(!(x=Qt[p](N))){C=[],k=[],Qt[n](Qt[t],function(e){Qt[B](u,e)!==-1?C[q](".not-"+e):k[q](".only-"+e)});var W=(C[f]>0?C.join(",")+Y:"")+(k[f]>0?k.join(",")+Y:"");x=Qt[d](N,Qt[w](W[D](/\.([0-9])/,Wt)),P,3),g[s][q](x)}Qt[n](u,function(r){Qt[t][u[r]][e][Ut]&&(N="ss"+u[r],(x=Qt[p](N))||(x=Qt[d](N,Qt.newStyleSheet(Qt[t][u[r]][e][Ut]),P,5)),g[s][q](x)),Qt[t][u[r]][s][f]>0&&Qt[n](Qt[t][u[r]][s],function(e){g[s][q](Qt[t][u[r]][s][e])})}),Qt[_][o][Qt[r]]&&(Qt[n](Qt[_][o][Qt[r]],function(e){g[s][q](Qt[_][o][Qt[r]][e])}),Qt[_][o][Qt[r]]=[])}else g=Qt[_][ct][Qt[r]];Qt.detachAllElements(g[s]),Qt[st](g[s]),Qt[J](function(){Qt[Nt](g)}),Qt[y].state=Qt[_][ct][Qt[r]],Qt[y][r]=Qt[r],Qt.trigger(Tt)},getStateId:function(){if(Qt[Lt]&&Qt[e].defaultState)return Qt[e].defaultState;var r="";return Qt[n](Qt[t],function(e){Qt[t][e].test()&&(r+=Qt.sd+e)}),r},poll:function(){var e="";e=Qt.getStateId(),e===""&&(e=Qt.sd),e!==Qt[r]&&(Qt[Vt]?Qt.changeState(e):(Qt[x][kt][k]=Qt[x][kt][k][D](Qt[r][L](1)[D](new RegExp(Qt.sd,"g")," "),""),Qt.changeState(e),Qt[x][kt][k]=Qt[x][kt][k]+" "+Qt[r][L](1)[D](new RegExp(Qt.sd,"g")," "),Qt[x][kt][k].charAt(0)==" "&&(Qt[x][kt][k]=Qt[x][kt][k][L](1))))},updateState:function(){var e,i,u,a,l=[];if(Qt[r]==Qt.sd)return;e=Qt[r][L](1)[Ct](Qt.sd),Qt[n](e,function(o){i=Qt[t][e[o]];if(i[s][f]==0)return;Qt[n](i[s],function(e){Qt[_][ct][Qt[r]][s][q](i[s][e]),l[q](i[s][e])})}),Qt[_][o][Qt[r]]&&(Qt[n](Qt[_][o][Qt[r]],function(e){Qt[_][ct][Qt[r]][s][q](Qt[_][o][Qt[r]][e]),l[q](Qt[_][o][Qt[r]][e])}),Qt[_][o][Qt[r]]=[]),l[f]>0&&Qt[st](l)},newDiv:function(e){var t=document[N]("div");return t[jt]=e,t},newInline:function(e){var t;return t=document[N]("style"),t.type=ft,t[jt]=e,t},newMeta:function(e,t){var n=document[N]("meta");return n.name=e,n.content=t,n},newStyleSheet:function(e){var t=document[N]("link");return t.rel="stylesheet",t.type=ft,t[Ut]=e,t},initPlugin:function(t,n){typeof n==A&&Qt[I](t[e],n),t.init&&t.init()},registerPlugin:function(e,t){if(!t)return a;Qt[ot][e]=t,t._=this,t.register&&t.register()},init:function(t,r){Qt.initConfig(t),Qt.initElements(),Qt.initEvents(),Qt.poll(),r&&typeof r==A&&(Qt[e][ot]=r),Qt[n](Qt[ot],function(t){Qt.initPlugin(Qt[ot][t],t in Qt[e][ot]?Qt[e][ot][t]:c)}),Qt.isInit=E},initAPI:function(){var e,t,r=navigator.userAgent;Qt[y][nt]=99,e="other",r[M](/Firefox/)?e="firefox":r[M](/Chrome/)?e="chrome":r[M](/Safari/)&&!r[M](/Chrome/)?e="safari":r[M](/(OPR|Opera)/)?e="opera":r[M](/MSIE ([0-9]+)/)?(e="ie",Qt[y][nt]=RegExp.$1):r[M](/Trident\/.+rv:([0-9]+)/)&&(e="ie",Qt[y][nt]=RegExp.$1),Qt[y].browser=e,Qt[y][C]="other",t={ios:"(iPad|iPhone|iPod)",android:"Android",mac:"Macintosh",wp:"Windows Phone",windows:"Windows NT"},Qt[n](t,function(e){r[M](new RegExp(t[e],"g"))&&(Qt[y][C]=e)});switch(Qt[y][C]){case"ios":r[M](/([0-9_]+) like Mac OS X/),e=parseFloat(RegExp.$1[D]("_",".")[D]("_",""));break;case Kt:r[M](/Android ([0-9\.]+)/),e=parseFloat(RegExp.$1);break;case"mac":r[M](/Mac OS X ([0-9_]+)/),e=parseFloat(RegExp.$1[D]("_",".")[D]("_",""));break;case"wp":r[M](/IEMobile\/([0-9\.]+)/),e=parseFloat(RegExp.$1);break;case"windows":r[M](/Windows NT ([0-9\.]+)/),e=parseFloat(RegExp.$1);break;default:e=99}Qt[y].deviceVersion=e,Qt[y].isTouch=Qt[y][C]=="wp"?navigator.msMaxTouchPoints>0:"ontouchstart"in window,Qt[y].isMobile=Qt[y][C]=="wp"||Qt[y][C]==Kt||Qt[y][C]=="ios",e=document.cookie[Ct](";"),Qt[n](e,function(t){var n=e[t][Ct]("=");if(n[0][D](/^\s+|\s+$/g,"")==Qt.lcn&&n[1][f]>0){Qt[y][V]=n[1][Ct]("_");return}})},initConfig:function(r){var i=[],o=[];if(!r||!(t in r))Qt[Vt]=E,Qt[e][h].width="",Qt[e][h].height="",Qt[e][h].scalable=E;typeof r==A&&(r[t]&&(Qt[e][t]={}),Qt[I](Qt[e],r)),U in Qt[e]&&m in Qt[e][U]&&!Qt[O](Qt[e][U][m])&&(Qt[e][U][m]=[Qt[e][U][m],Qt[e][U][m]]),Qt[I](Qt[$][v][U],Qt[e][U]),Qt[X]=Math.max(Qt[X],Qt[e][U][$t]),Qt[I](Qt[$][v][h],Qt[e][h]),Qt[$][v][z]=Qt[e][z],Qt[n](Qt[e][t],function(n){var r,i={},u,a;Qt[I](i,Qt[e][t][n]),Ut in i||(i[Ut]=Qt[$][v][Ut]),Et in i||(i[Et]=Qt[$][v][Et]),"range"in i&&(u=i.range,u=="*"?a="":u.charAt(0)=="-"?a="(max-width: "+parseInt(u[L](1))+"px)":u.charAt(u[f]-1)=="-"?a=xt+parseInt(u[L](0,u[f]-1))+"px)":Qt[B](u,"-")!=-1&&(u=u[Ct]("-"),a=xt+parseInt(u[0])+"px) and (max-width: "+parseInt(u[1])+"px)"),i[Et]=a),U in i&&(m in i[U]&&!Qt[O](i[U][m])&&(i[U][m]=[i[U][m],i[U][m]]),$t in i[U]&&(Qt[X]=Math.max(Qt[X],i[U][$t]))),Qt[e][t][n]=i,r={},Qt[I](r,Qt[$].breakpoint),r[e]=Qt[e][t][n],r.test=function(){return Qt[R](i[Et])},r[s]=[],Qt[e].preload&&r[e][Ut]&&o[q](r[e][Ut]),Qt[t][n]=r,Qt.breakpointList[q](n)}),Qt[n](Qt[e][tt],function(t){Qt.bind(t,Qt[e][tt][t])}),o[f]>0&&window[St].protocol!="file:"&&Qt[J](function(){var e,t=document[u](P)[0],r=new XMLHttpRequest;Qt[n](o,function(e){r.open("GET",o[e],a),r.send("")})})},initElements:function(){var t=[];t[q](Qt[H]("mV",Qt.newMeta(h,pt),G,1));switch(Qt[e].reset){case"full":t[q](Qt[H]("iR",Qt[w](Qt.css.r),G,2));break;case wt:t[q](Qt[H]("iN",Qt[w](Qt.css.n),G,2))}t[q](Qt[H]("iBM",Qt[w](Qt.css.bm),G,1)),t[q](Qt[H]("iG",Qt[w]('.row{border-bottom:solid 1px transparent}.row>*{float:left}.row:after,.row:before{content:"";display:block;clear:both;height:0}.row.uniform>*>:first-child{margin-top:0}.row.uniform>*>:last-child{margin-bottom:0}'+Qt.css.gc("")),P,3)),Qt[st](t)},initEvents:function(){var t;!Qt[e].pollOnce&&!Qt[Vt]&&(Qt.bind(gt,function(){Qt.poll()}),Qt.bind(T,function(){Qt.poll()})),Qt[y][C]=="ios"&&Qt[J](function(){Qt.bind(T,function(){var e=document[u]("input");Qt[n](e,function(t){e[t][At]=e[t][rt],e[t][rt]=""}),window.setTimeout(function(){Qt[n](e,function(t){e[t][rt]=e[t][At]})},100)})}),window[Jt]&&Qt.bind(gt,window[Jt]),window[Jt]=function(){Qt.trigger(gt)},window[W]&&Qt.bind(T,window[W]),window[W]=function(){Qt.trigger(T)}},initUtilityMethods:function(){document[Q]?!function(e,t){Qt[J]=t()}(It,function(){function e(e){s=1;while(e=t.shift())e()}var t=[],n,r=document,i=at,s=/^loaded|^c/.test(r[Rt]);return r[Q](i,n=function(){r[vt](i,n),e()}),function(e){s?e():t[q](e)}}):!function(e,t){Qt[J]=t()}(It,function(e){function t(e){p=1;while(e=n.shift())e()}var n=[],r,i=!1,s=document,o=s[it],u=o.doScroll,a=at,f=Q,l="onreadystatechange",c=Rt,h=u?/^loaded|^c/:/^loaded|c/,p=h.test(s[c]);return s[f]&&s[f](a,r=function(){s[vt](a,r,i),t()},i),u&&s.attachEvent(l,r=function(){/^c/.test(s[c])&&(s.detachEvent(l,r),t())}),e=u?function(t){self!=top?p?t():n[q](t):function(){try{o.doScroll("left")}catch(n){return setTimeout(function(){e(t)},50)}t()}()}:function(e){p?e():n[q](e)}}),document[i]?Qt[i]=function(e){return document[i](e)}:Qt[i]=function(e){var t=document;return t[Dt]?t[Dt](("."+e[D](" "," ."))[D](/\.([0-9])/,Wt)):[]},Array[Bt][B]?Qt[B]=function(e,t){return e[B](t)}:Qt[B]=function(e,t){if(typeof e=="string")return e[B](t);var n,r=t?t:0,i;if(!this)throw new TypeError;i=this[f];if(i===0||r>=i)return-1;r<0&&(r=i-Math.abs(r));for(n=r;n<i;n++)if(this[n]===e)return n;return-1},Array[O]?Qt[O]=function(e){return Array[O](e)}:Qt[O]=function(e){return Object[Bt].toString.call(e)==="[object Array]"},Object.keys?Qt[n]=function(e,t){if(!e)return[];var n,r=Object.keys(e);for(n=0;r[n];n++)t(r[n])}:Qt[n]=function(e,t){if(!e)return[];var n;for(n in e)Object[Bt][qt].call(e,n)&&t(n)},window.matchMedia?Qt[R]=function(e){return e==""?E:window.matchMedia(e).matches}:window.styleMedia||window[Et]?Qt[R]=function(e){if(e=="")return E;var t=window.styleMedia||window[Et];return t.matchMedium(e||"all")}:window[K]?Qt[R]=function(e){if(e=="")return E;var t=document[N]("style"),n=document[u]("script")[0],r=c;t.type=ft,t.id="matchmediajs-test",n[S][g](t,n),r=K in window&&window[K](t,c)||t.currentStyle;var i="@media "+e+"{ #matchmediajs-test { width: 1px; } }";return t.styleSheet?t.styleSheet.cssText=i:t.textContent=i,r.width==="1px"}:(Qt[Lt]=E,Qt[R]=function(e){if(e=="")return E;var t,n,r,i,s={"min-width":c,"max-width":c},o=a;n=e[Ct](/\s+and\s+/);for(i in n)t=n[i],t.charAt(0)=="("&&(t=t[L](1,t[f]-1),r=t[Ct](/:\s+/),r[f]==2&&(s[r[0][D](/^\s+|\s+$/g,"")]=parseInt(r[1]),o=E));if(!o)return a;var u=document[it].clientWidth,l=document[it].clientHeight;return s[Ht]!==c&&u<s[Ht]||s[Pt]!==c&&u>s[Pt]||s[_t]!==c&&l<s[_t]||s[Mt]!==c&&l>s[Mt]?a:E})},preInit:function(){var e=document[u]("script");Qt.me=e[e[f]-1],Qt.initUtilityMethods(),Qt.initAPI(),Qt[Z](kt,document[u](kt)[0]),Qt[Z](P,document[u](P)[0]),Qt[J](function(){Qt[Z]("body",document[u]("body")[0])}),Qt[y][nt]>=10&&Qt[ut](Qt[H]("msie-viewport-fix",Qt[w]("@-ms-viewport{width:device-width;}"),G,1))}};return Qt.preInit(),Qt[y][nt]<9&&(Qt[Nt]=function(e){},Qt[w]=function(e){var t;return t=document[N]("span"),t[jt]='&nbsp;<style type="text/css">'+e+"</style>",t}),Qt}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment