Missed a JS file due to friggin' permissions. Grrr.
This commit is contained in:
64
templates/2k11/js/2k11.min.js
vendored
64
templates/2k11/js/2k11.min.js
vendored
@ -1,21 +1,22 @@
|
||||
/*! Respond.js v1.1.0 (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs */
|
||||
(function(e){e.respond={};respond.update=function(){};respond.mediaQueriesSupported=e.matchMedia&&e.matchMedia("only all").matches;
|
||||
if(respond.mediaQueriesSupported){return;}var w=e.document,s=w.documentElement,i=[],k=[],q=[],o={},h=30,f=w.getElementsByTagName("head")[0]||s,g=w.getElementsByTagName("base")[0],b=f.getElementsByTagName("link"),d=[],a=function(){var D=b,y=D.length,B=0,A,z,C,x;
|
||||
for(;B<y;B++){A=D[B],z=A.href,C=A.media,x=A.rel&&A.rel.toLowerCase()==="stylesheet";if(!!z&&x&&!o[z]){if(A.styleSheet&&A.styleSheet.rawCssText){m(A.styleSheet.rawCssText,z,C);
|
||||
o[z]=true;}else{if((!/^([a-zA-Z:]*\/\/)/.test(z)&&!g)||z.replace(RegExp.$1,"").split("/")[0]===e.location.host){d.push({href:z,media:C});}}}}u();},u=function(){if(d.length){var x=d.shift();
|
||||
n(x.href,function(y){m(y,x.href,x.media);o[x.href]=true;setTimeout(function(){u();},0);});}},m=function(I,x,z){var G=I.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),J=G&&G.length||0,x=x.substring(0,x.lastIndexOf("/")),y=function(K){return K.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+x+"$2$3");
|
||||
},A=!J&&z,D=0,C,E,F,B,H;if(x.length){x+="/";}if(A){J=1;}for(;D<J;D++){C=0;if(A){E=z;k.push(y(I));}else{E=G[D].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1;
|
||||
k.push(RegExp.$2&&y(RegExp.$2));}B=E.split(",");H=B.length;for(;C<H;C++){F=B[C];i.push({media:F.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:k.length-1,hasquery:F.indexOf("(")>-1,minw:F.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:F.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")});
|
||||
}}j();},l,r,v=function(){var z,A=w.createElement("div"),x=w.body,y=false;A.style.cssText="position:absolute;font-size:1em;width:1em";if(!x){x=y=w.createElement("body");
|
||||
x.style.background="none";}x.appendChild(A);s.insertBefore(x,s.firstChild);z=A.offsetWidth;if(y){s.removeChild(x);}else{x.removeChild(A);}z=p=parseFloat(z);
|
||||
return z;},p,j=function(I){var x="clientWidth",B=s[x],H=w.compatMode==="CSS1Compat"&&B||w.body[x]||B,D={},G=b[b.length-1],z=(new Date()).getTime();if(I&&l&&z-l<h){clearTimeout(r);
|
||||
r=setTimeout(j,h);return;}else{l=z;}for(var E in i){var K=i[E],C=K.minw,J=K.maxw,A=C===null,L=J===null,y="em";if(!!C){C=parseFloat(C)*(C.indexOf(y)>-1?(p||v()):1);
|
||||
}if(!!J){J=parseFloat(J)*(J.indexOf(y)>-1?(p||v()):1);}if(!K.hasquery||(!A||!L)&&(A||H>=C)&&(L||H<=J)){if(!D[K.media]){D[K.media]=[];}D[K.media].push(k[K.rules]);
|
||||
}}for(var E in q){if(q[E]&&q[E].parentNode===f){f.removeChild(q[E]);}}for(var E in D){var M=w.createElement("style"),F=D[E].join("\n");M.type="text/css";
|
||||
M.media=E;f.insertBefore(M,G.nextSibling);if(M.styleSheet){M.styleSheet.cssText=F;}else{M.appendChild(w.createTextNode(F));}q.push(M);}},n=function(x,z){var y=c();
|
||||
if(!y){return;}y.open("GET",x,true);y.onreadystatechange=function(){if(y.readyState!=4||y.status!=200&&y.status!=304){return;}z(y.responseText);};if(y.readyState==4){return;
|
||||
}y.send(null);},c=(function(){var x=false;try{x=new XMLHttpRequest();}catch(y){x=new ActiveXObject("Microsoft.XMLHTTP");}return function(){return x;};})();
|
||||
a();respond.update=a;function t(){j(true);}if(e.addEventListener){e.addEventListener("resize",t,false);}else{if(e.attachEvent){e.attachEvent("onresize",t);
|
||||
/*! Respond.js v1.1.0: min/max-width media query polyfill. (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs */
|
||||
(function(e){var t={};e.respond=t;t.update=function(){};
|
||||
t.mediaQueriesSupported=e.matchMedia&&e.matchMedia("only all").matches;if(t.mediaQueriesSupported){return;}var x=e.document,s=x.documentElement,i=[],k=[],q=[],o={},h=30,f=x.getElementsByTagName("head")[0]||s,g=x.getElementsByTagName("base")[0],b=f.getElementsByTagName("link"),d=[],a=function(){for(var B=0;
|
||||
B<b.length;B++){var A=b[B],z=A.href,C=A.media,y=A.rel&&A.rel.toLowerCase()==="stylesheet";if(!!z&&y&&!o[z]){if(A.styleSheet&&A.styleSheet.rawCssText){m(A.styleSheet.rawCssText,z,C);
|
||||
o[z]=true;}else{if((!/^([a-zA-Z:]*\/\/)/.test(z)&&!g)||z.replace(RegExp.$1,"").split("/")[0]===e.location.host){d.push({href:z,media:C});}}}}v();},v=function(){if(d.length){var y=d.shift();
|
||||
n(y.href,function(z){m(z,y.href,y.media);o[y.href]=true;e.setTimeout(function(){v();},0);});}},m=function(J,y,A){var H=J.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),K=H&&H.length||0;
|
||||
y=y.substring(0,y.lastIndexOf("/"));var z=function(L){return L.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+y+"$2$3");},B=!K&&A;if(y.length){y+="/";
|
||||
}if(B){K=1;}for(var E=0;E<K;E++){var F,G,C,I;if(B){F=A;k.push(z(J));}else{F=H[E].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1;k.push(RegExp.$2&&z(RegExp.$2));
|
||||
}C=F.split(",");I=C.length;for(var D=0;D<I;D++){G=C[D];i.push({media:G.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:k.length-1,hasquery:G.indexOf("(")>-1,minw:G.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:G.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")});
|
||||
}}j();},l,r,w=function(){var A,B=x.createElement("div"),y=x.body,z=false;B.style.cssText="position:absolute;font-size:1em;width:1em";if(!y){y=z=x.createElement("body");
|
||||
y.style.background="none";}y.appendChild(B);s.insertBefore(y,s.firstChild);A=B.offsetWidth;if(z){s.removeChild(y);}else{y.removeChild(B);}A=p=parseFloat(A);
|
||||
return A;},p,j=function(K){var P="clientWidth",B=s[P],z=x.compatMode==="CSS1Compat"&&B||x.body[P]||B,N={},O=b[b.length-1],A=(new Date()).getTime();if(K&&l&&A-l<h){e.clearTimeout(r);
|
||||
r=e.setTimeout(j,h);return;}else{l=A;}for(var I in i){if(i.hasOwnProperty(I)){var L=i[I],E=L.minw,H=L.maxw,J=E===null,M=H===null,y="em";if(!!E){E=parseFloat(E)*(E.indexOf(y)>-1?(p||w()):1);
|
||||
}if(!!H){H=parseFloat(H)*(H.indexOf(y)>-1?(p||w()):1);}if(!L.hasquery||(!J||!M)&&(J||z>=E)&&(M||z<=H)){if(!N[L.media]){N[L.media]=[];}N[L.media].push(k[L.rules]);
|
||||
}}}for(var G in q){if(q.hasOwnProperty(G)){if(q[G]&&q[G].parentNode===f){f.removeChild(q[G]);}}}for(var F in N){if(N.hasOwnProperty(F)){var D=x.createElement("style"),C=N[F].join("\n");
|
||||
D.type="text/css";D.media=F;f.insertBefore(D,O.nextSibling);if(D.styleSheet){D.styleSheet.cssText=C;}else{D.appendChild(x.createTextNode(C));}q.push(D);
|
||||
}}},n=function(y,A){var z=c();if(!z){return;}z.open("GET",y,true);z.onreadystatechange=function(){if(z.readyState!==4||z.status!==200&&z.status!==304){return;
|
||||
}A(z.responseText);};if(z.readyState===4){return;}z.send(null);},c=(function(){var y=false;try{y=new e.XMLHttpRequest();}catch(z){y=new e.ActiveXObject("Microsoft.XMLHTTP");
|
||||
}return function(){return y;};})();a();t.update=a;function u(){j(true);}if(e.addEventListener){e.addEventListener("resize",u,false);}else{if(e.attachEvent){e.attachEvent("onresize",u);
|
||||
}}})(this);
|
||||
/*! A fix for the iOS orientationchange zoom bug. Script by @scottjehl, rebound by @wilto. MIT / GPLv2 License. */
|
||||
(function(n){var d=navigator.userAgent;
|
||||
@ -24,12 +25,15 @@ if(!(/iPhone|iPad|iPod/.test(navigator.platform)&&/OS [1-5]_[0-9_]* like Mac OS
|
||||
}function g(){o.setAttribute("content",e);h=true;}function b(){o.setAttribute("content",l);h=false;}function f(p){c=p.accelerationIncludingGravity;k=Math.abs(c.x);
|
||||
j=Math.abs(c.y);i=Math.abs(c.z);if((!n.orientation||n.orientation===180)&&(k>7||((i>6&&j<8||i<8&&j>6)&&k>5))){if(h){b();}}else{if(!h){g();}}}n.addEventListener("orientationchange",g,false);
|
||||
n.addEventListener("devicemotion",f,false);})(this);
|
||||
/*! FitVids 1.0
|
||||
* Copyright 2011, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
|
||||
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
|
||||
* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
|
||||
* Date: Thu Sept 01 18:00:00 2011 -0500
|
||||
*/
|
||||
/*!
|
||||
* FitVids 1.0
|
||||
*
|
||||
* Copyright 2011, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com
|
||||
* Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/
|
||||
* Released under the WTFPL license - http://sam.zoy.org/wtfpl/
|
||||
*
|
||||
* Date: Thu Sept 01 18:00:00 2011 -0500
|
||||
*/
|
||||
(function(a){a.fn.fitVids=function(b){var c={customSelector:null};
|
||||
var e=document.createElement("div"),d=document.getElementsByTagName("base")[0]||document.getElementsByTagName("script")[0];e.className="fit-vids-style";
|
||||
e.innerHTML="­<style> .fluid-width-video-wrapper { width: 100%; position: relative; padding: 0; } .fluid-width-video-wrapper iframe, .fluid-width-video-wrapper object, .fluid-width-video-wrapper embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } </style>";
|
||||
@ -55,11 +59,11 @@ a(l).after(m);l.textContent="";}else{if(a(h).find("> summary").length==0){var k=
|
||||
c.hideDetailChildren(e.parents("details")[0]);}};var d=(function(i){var g=i.createElement("details"),f,e,h;if(!("open" in g)){return false;}e=i.body||(function(){var j=i.documentElement;
|
||||
f=true;return j.insertBefore(i.createElement("body"),j.firstElementChild||j.firstChild);}());g.innerHTML="<summary>a</summary>b";g.style.display="block";
|
||||
e.appendChild(g);h=g.offsetHeight;g.open=true;h=h!=g.offsetHeight;e.removeChild(g);if(f){e.parentNode.removeChild(e);}return h;}(document));if(d==false){if(a("details").length!==0){var b=a("<style />").text('summary {-webkit-text-size-adjust: none;} details > summary:first-child:before {content: "▼"; font-size:.9em;padding-right:6px;font-family:"Courier New";} details > summary.detailHidden:first-child:before {content: "►";font-size:.9em;padding-right:6px;font-family:"Courier New";}');
|
||||
a("head").append(b);}a.each(a("details"),function(f,e){c.hideDetailChildren(e);});}})();});
|
||||
/*! Accessifyhtml5.js Source: https://github.com/yatil/accessifyhtml5.js */
|
||||
var AccessifyHTML5=function(b){var a={article:{role:"article"},aside:{role:"complementary"},nav:{role:"navigation"},output:{"aria-live":"polite"},section:{role:"region"},"[required]":{"aria-required":"true"}};
|
||||
if(b){if(b.header){a[b.header]={role:"banner"};}if(b.footer){a[b.footer]={role:"contentinfo"};}if(b.main){a[b.main]={role:"main"};}}jQuery.each(a,function(c,d){jQuery(c).attr(d);
|
||||
});};
|
||||
a("head").append(b);}a.each(a("details"),function(f,e){c.hideDetailChildren(e);});}})();});var AccessifyHTML5=function(e,a){var o={article:{role:"article"},aside:{role:"complementary"},nav:{role:"navigation"},main:{role:"main"},output:{"aria-live":"polite"},section:{role:"region"},"[required]":{"aria-required":"true"}},j,b,m,p,r,h,g,d,l,c,n=/aria-[a-z]+|role|tabindex|title|alt|data-[\w\-]+|lang|style|maxlength|placeholder|pattern|type/,f="acfy-id-",k=0,q=document;
|
||||
if(q.querySelectorAll){if(e){if(e.header){o[e.header]={role:"banner"};}if(e.footer){o[e.footer]={role:"contentinfo"};}if(e.main){o[e.main]={role:"main"};
|
||||
o.main={role:""};}}for(d in a){o[d]=a[d];}for(j in o){if(o.hasOwnProperty(j)){b=q.querySelectorAll(j);h=o[j];for(g=0;g<b.length;g++){for(r in h){if(h.hasOwnProperty(r)){m=r;
|
||||
p=h[r];if(!m.match(n)){continue;}if(!(typeof p).match(/string|number/)){continue;}var l=m.match(/(describ|label)l?edby/);if(l){c=q.querySelector(p);if(!c){continue;
|
||||
}if(!c.id){c.id=f+k;}p=c.id;m="aria-"+("label"==l[1]?"labelledby":"describedby");k++;}if(!b[g].hasAttribute(m)){b[g].setAttribute(m,p);}}}}}}}};
|
||||
/*! http://mths.be/placeholder v2.0.7 by @mathias */
|
||||
(function(g,i,d){var a="placeholder" in i.createElement("input"),e="placeholder" in i.createElement("textarea"),j=d.fn,c=d.valHooks,l,k;
|
||||
if(a&&e){k=j.placeholder=function(){return this;};k.input=k.textarea=true;}else{k=j.placeholder=function(){var m=this;m.filter((a?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":b,"blur.placeholder":f}).data("placeholder-enabled",true).trigger("blur.placeholder");
|
||||
@ -74,7 +78,7 @@ if(m.value==""){if(m.type=="password"){if(!q.data("placeholder-textinput")){try{
|
||||
}q=q.removeAttr("id").hide().prev().attr("id",p).show();}q.addClass("placeholder");q[0].value=q.attr("placeholder");}else{q.removeClass("placeholder");
|
||||
}}}(this,document,jQuery));
|
||||
/*! 2k11 main JS */
|
||||
jQuery(document).ready(function(c){AccessifyHTML5({header:"#banner",main:"#main",footer:"#colophon"});c("input[type=search]").parents("form").attr("role","search");
|
||||
jQuery(document).ready(function(c){AccessifyHTML5({header:"#banner",footer:"#colophon"});c("input[type=search]").parents("form").attr("role","search");
|
||||
var d=c("<select/>");c("#primary-nav li").each(function(){var a=c(this);if(a.find("span").length){c("<option/>",{selected:"selected",value:"",text:a.text()}).appendTo(d);
|
||||
}else{c("<option/>",{value:a.find("a").attr("href"),text:a.text()}).appendTo(d);}});if(d.children().size()>0){d.appendTo("#primary-nav").change(function(){window.location=c(this).find("option:selected").val();
|
||||
});}if(typeof(lsbase)=="string"){c('<div id="LSResult" style="display: none;"><div id="LSShadow"></div></div>').appendTo("#searchform>div");}c("input, textarea").placeholder();
|
||||
|
Reference in New Issue
Block a user