middleman 2.0.9-x86-mingw32 → 2.0.10-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (25) hide show
  1. data/lib/middleman/core_extensions/front_matter.rb +1 -1
  2. data/lib/middleman/renderers/liquid.rb +1 -0
  3. data/lib/middleman/templates/mobile/source/404.html +37 -38
  4. data/lib/middleman/templates/mobile/source/README.markdown +20 -63
  5. data/lib/middleman/templates/mobile/source/crossdomain.xml +25 -25
  6. data/lib/middleman/templates/mobile/source/css/style.css +315 -236
  7. data/lib/middleman/templates/mobile/source/humans.txt +43 -43
  8. data/lib/middleman/templates/mobile/source/index.html +25 -28
  9. data/lib/middleman/templates/mobile/source/js/libs/modernizr-custom.js +14 -14
  10. data/lib/middleman/templates/mobile/source/js/libs/respond.min.js +1 -1
  11. data/lib/middleman/templates/mobile/source/js/mylibs/helper.js +30 -6
  12. data/lib/middleman/templates/mobile/source/js/plugins.js +20 -0
  13. data/lib/middleman/templates/mobile/source/robots.txt +4 -5
  14. data/lib/middleman/templates/mobile/source/sitemap.xml +9 -10
  15. data/lib/middleman/templates/mobile/source/test/index.html +31 -31
  16. data/lib/middleman/templates/mobile/source/test/qunit/qunit.css +148 -148
  17. data/lib/middleman/templates/mobile/source/test/qunit/qunit.js +1265 -1265
  18. data/lib/middleman/templates/mobile/source/test/tests.js +21 -26
  19. data/lib/middleman/version.rb +1 -1
  20. data/middleman-x86-mingw32.gemspec +1 -1
  21. data/middleman.gemspec +1 -1
  22. metadata +8 -10
  23. data/lib/middleman/templates/mobile/source/default.appcache +0 -17
  24. data/lib/middleman/templates/mobile/source/js/libs/jquery-1.5.1.js +0 -8316
  25. data/lib/middleman/templates/mobile/source/js/libs/jquery-1.5.1.min.js +0 -16
@@ -1,43 +1,43 @@
1
- /* the humans responsible & colophon */
2
- /* humanstxt.org */
3
-
4
-
5
- /* TEAM */
6
- <your title>: <your name>
7
- Site:
8
- Twitter:
9
- Location:
10
-
11
- /* THANKS */
12
- Names (& URL):
13
-
14
- /* SITE */
15
- Standards: HTML5, CSS3
16
- Components: Modernizr, jQuery
17
- Software:
18
-
19
-
20
-
21
- -o/-
22
- +oo//-
23
- :ooo+//:
24
- -ooooo///-
25
- /oooooo//:
26
- :ooooooo+//-
27
- -+oooooooo///-
28
- -://////////////+oooooooooo++////////////::
29
- :+ooooooooooooooooooooooooooooooooooooo+:::-
30
- -/+ooooooooooooooooooooooooooooooo+/::////:-
31
- -:+oooooooooooooooooooooooooooo/::///////:-
32
- --/+ooooooooooooooooooooo+::://////:-
33
- -:+ooooooooooooooooo+:://////:--
34
- /ooooooooooooooooo+//////:-
35
- -ooooooooooooooooooo////-
36
- /ooooooooo+oooooooooo//:
37
- :ooooooo+/::/+oooooooo+//-
38
- -oooooo/::///////+oooooo///-
39
- /ooo+::://////:---:/+oooo//:
40
- -o+/::///////:- -:/+o+//-
41
- :-:///////:- -:/://
42
- -////:- --//:
43
- -- -:
1
+ /* the humans responsible & colophon */
2
+ /* humanstxt.org */
3
+
4
+
5
+ /* TEAM */
6
+ <your title>: <your name>
7
+ Site:
8
+ Twitter:
9
+ Location:
10
+
11
+ /* THANKS */
12
+ Names (& URL):
13
+
14
+ /* SITE */
15
+ Standards: HTML5, CSS3
16
+ Components: Modernizr, jQuery
17
+ Software:
18
+
19
+
20
+
21
+ -o/-
22
+ +oo//-
23
+ :ooo+//:
24
+ -ooooo///-
25
+ /oooooo//:
26
+ :ooooooo+//-
27
+ -+oooooooo///-
28
+ -://////////////+oooooooooo++////////////::
29
+ :+ooooooooooooooooooooooooooooooooooooo+:::-
30
+ -/+ooooooooooooooooooooooooooooooo+/::////:-
31
+ -:+oooooooooooooooooooooooooooo/::///////:-
32
+ --/+ooooooooooooooooooooo+::://////:-
33
+ -:+ooooooooooooooooo+:://////:--
34
+ /ooooooooooooooooo+//////:-
35
+ -ooooooooooooooooooo////-
36
+ /ooooooooo+oooooooooo//:
37
+ :ooooooo+/::/+oooooooo+//-
38
+ -oooooo/::///////+oooooo///-
39
+ /ooo+::://////:---:/+oooo//:
40
+ -o+/::///////:- -:/+o+//-
41
+ :-:///////:- -:/://
42
+ -////:- --//:
43
+ -- -:
@@ -1,8 +1,7 @@
1
- <!doctype html>
1
+ <!doctype html>
2
2
  <!-- Conditional comment for mobile ie7 http://blogs.msdn.com/b/iemobile/ -->
3
- <!-- Appcache Facts http://appcachefacts.info/ -->
4
- <!--[if IEMobile 7 ]> <html class="no-js iem7" manifest="default.appcache?v=1"> <![endif]-->
5
- <!--[if (gt IEMobile 7)|!(IEMobile)]><!--> <html class="no-js" manifest="default.appcache?v=1"> <!--<![endif]-->
3
+ <!--[if IEMobile 7 ]> <html class="no-js iem7"> <![endif]-->
4
+ <!--[if (gt IEMobile 7)|!(IEMobile)]><!--> <html class="no-js"> <!--<![endif]-->
6
5
 
7
6
  <head>
8
7
  <meta charset="utf-8">
@@ -10,12 +9,12 @@
10
9
  <title></title>
11
10
  <meta name="description" content="">
12
11
  <meta name="author" content="">
13
-
12
+
14
13
  <!-- Mobile viewport optimization http://goo.gl/b9SaQ -->
15
14
  <meta name="HandheldFriendly" content="True">
16
- <meta name="MobileOptimized" content="320"/>
15
+ <meta name="MobileOptimized" content="320">
17
16
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
18
-
17
+
19
18
  <!-- Home screen icon Mathias Bynens http://goo.gl/6nVq0 -->
20
19
  <!-- For iPhone 4 with high-resolution Retina display: -->
21
20
  <link rel="apple-touch-icon-precomposed" sizes="114x114" href="img/h/apple-touch-icon.png">
@@ -25,22 +24,26 @@
25
24
  <link rel="apple-touch-icon-precomposed" href="img/l/apple-touch-icon-precomposed.png">
26
25
  <!-- For nokia devices: -->
27
26
  <link rel="shortcut icon" href="img/l/apple-touch-icon.png">
28
-
27
+
29
28
  <!--iOS web app, deletable if not needed -->
30
- <!--<meta name="apple-mobile-web-app-capable" content="yes">
29
+ <!--the script prevents links from opening in mobile safari. https://gist.github.com/1042026
30
+ <meta name="apple-mobile-web-app-capable" content="yes">
31
31
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
32
+ <script>(function(a,b,c){if(c in b&&b[c]){var d,e=a.location,f=/^(a|html)$/i;a.addEventListener("click",function(a){d=a.target;while(!f.test(d.nodeName))d=d.parentNode;"href"in d&&(d.href.indexOf("http")||~d.href.indexOf(e.host))&&(a.preventDefault(),e.href=d.href)},!1)}})(document,window.navigator,"standalone")</script>
32
33
  <link rel="apple-touch-startup-image" href="img/l/splash.png">-->
33
-
34
+
34
35
  <!-- Mobile IE allows us to activate ClearType technology for smoothing fonts for easy reading -->
35
36
  <meta http-equiv="cleartype" content="on">
36
-
37
- <!-- more tags for your 'head' to consider https://gist.github.com/849231 -->
38
-
37
+
38
+ <!-- more tags for your 'head' to consider https://gist.github.com/849231 -->
39
+
39
40
  <!-- Main Stylesheet -->
40
41
  <link rel="stylesheet" href="css/style.css?v=1">
41
-
42
+
42
43
  <!-- All JavaScript at the bottom, except for Modernizr which enables HTML5 elements & feature detects -->
43
44
  <script src="js/libs/modernizr-custom.js"></script>
45
+ <!-- Media Queries Polyfill https://github.com/shichuan/mobile-html5-boilerplate/wiki/Media-Queries-Polyfill -->
46
+ <script>Modernizr.mq('(min-width:0)') || document.write('<script src="js/libs/respond.min.js">\x3C/script>')</script>
44
47
  </head>
45
48
 
46
49
  <body>
@@ -50,9 +53,9 @@
50
53
 
51
54
  </header>
52
55
  <div id="main" role="main">
53
-
56
+
54
57
  </div>
55
-
58
+
56
59
  <footer>
57
60
 
58
61
  </footer>
@@ -62,27 +65,21 @@
62
65
  <!-- JavaScript at the bottom for fast page loading -->
63
66
 
64
67
  <!-- Grab Google CDN's jQuery, with a protocol relative URL; fall back to local if necessary -->
65
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js"></script>
66
- <script>window.jQuery || document.write("<script src='js/libs/jquery-1.5.1.min.js'>\x3C/script>")</script>
67
-
68
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
69
+ <script>window.jQuery || document.write('<script src="js/libs/jquery-1.6.2.min.js"><\/script>')</script>
70
+
68
71
  <!-- scripts concatenated and minified via ant build script -->
69
72
  <script src="js/mylibs/helper.js"></script>
70
73
  <!-- end concatenated and minified scripts-->
71
-
74
+
72
75
  <script>
73
76
  // iPhone Scale Bug Fix, read this when using http://www.blog.highub.com/mobile-2/a-fix-for-iphone-viewport-scale-bug/
74
77
  MBP.scaleFix();
75
-
76
- // Media Queries Polyfill https://github.com/shichuan/mobile-html5-boilerplate/wiki/Media-Queries-Polyfill
77
- yepnope({
78
- test : Modernizr.mq('(min-width)'),
79
- nope : ['js/libs/respond.min.js']
80
- });
81
78
  </script>
82
-
79
+
83
80
  <!-- Debugger - remove for production -->
84
81
  <!-- <script src="https://getfirebug.com/firebug-lite.js"></script> -->
85
-
82
+
86
83
  <!-- mathiasbynens.be/notes/async-analytics-snippet Change UA-XXXXX-X to be your site's ID -->
87
84
  <script>
88
85
  var _gaq=[["_setAccount","UA-XXXXX-X"],["_trackPageview"]];
@@ -1,14 +1,14 @@
1
- /*!
2
- * Modernizr v1.8pre
3
- * http://www.modernizr.com
4
- *
5
- * Developed by:
6
- * - Faruk Ates http://farukat.es/
7
- * - Paul Irish http://paulirish.com/
8
- *
9
- * Copyright (c) 2009-2011
10
- * Dual-licensed under the BSD or MIT licenses.
11
- * http://www.modernizr.com/license/
12
- */
13
- window.Modernizr=(function(o,v,k){var e="1.8pre",H={},x=true,F=v.documentElement,h=v.head||v.getElementsByTagName("head")[0],G="modernizr",D=v.createElement(G),B=D.style,g=v.createElement("input"),E=":)",y=Object.prototype.toString,z=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),q="Webkit Moz O ms Khtml".split(" "),I={svg:"http://www.w3.org/2000/svg"},j={},d={},w={},C=[],A,m=v.getElementsByTagName("script")[0],c=(function(L){var J={},M=v.createElement("body"),K=v.createElement("div");K.id=G+"-mqtest";M.appendChild(K);return function(O){if(J[O]==k){if(o.matchMedia){return(J[O]=matchMedia(O).matches)}var N=v.createElement("style"),P="@media "+O+" { #"+G+"-mqtest { position: absolute; } }";N.type="text/css";if(N.styleSheet){N.styleSheet.cssText=P}else{N.appendChild(v.createTextNode(P))}m.parentNode.insertBefore(M,m);m.parentNode.insertBefore(N,m);J[O]=(o.getComputedStyle?getComputedStyle(K,null):K.currentStyle)["position"]=="absolute";M.parentNode.removeChild(M);N.parentNode.removeChild(N)}return J[O]}})(),t=(function(){var K={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};function J(L,N){N=N||v.createElement(K[L]||"div");L="on"+L;var M=(L in N);if(!M){if(!N.setAttribute){N=v.createElement("div")}if(N.setAttribute&&N.removeAttribute){N.setAttribute(L,"");M=l(N[L],"function");if(!l(N[L],k)){N[L]=k}N.removeAttribute(L)}}N=null;return M}return J})();var r=({}).hasOwnProperty,p;if(!l(r,k)&&!l(r.call,k)){p=function(J,K){return r.call(J,K)}}else{p=function(J,K){return((K in J)&&l(J.constructor.prototype[K],k))}}function u(J){B.cssText=J}function b(K,J){return u(z.join(K+";")+(J||""))}function l(K,J){return typeof K===J}function n(K,J){return !!~(""+K).indexOf(J)}function f(K,L){for(var J in K){if(B[K[J]]!==k&&(!L||L(K[J],D))){return true}}}function a(M,L){var K=M.charAt(0).toUpperCase()+M.substr(1),J=(M+" "+q.join(K+" ")+K).split(" ");return !!f(J,L)}j.flexbox=function(){function K(P,R,Q,O){R+=":";P.style.cssText=(R+z.join(Q+";"+R)).slice(0,-R.length)+(O||"")}function M(P,R,Q,O){P.style.cssText=z.join(R+":"+Q+";")+(O||"")}var N=v.createElement("div"),L=v.createElement("div");K(N,"display","box","width:42px;padding:0;");M(L,"box-flex","1","width:10px;");N.appendChild(L);F.appendChild(N);var J=L.offsetWidth===42;N.removeChild(L);F.removeChild(N);return J};j.canvas=function(){var J=v.createElement("canvas");return !!(J.getContext&&J.getContext("2d"))};j.canvastext=function(){return !!(H.canvas&&l(v.createElement("canvas").getContext("2d").fillText,"function"))};j.webgl=function(){return !!o.WebGLRenderingContext};j.touch=function(){return("ontouchstart" in o)||c("("+z.join("touch-enabled),(")+"modernizr)")};j.geolocation=function(){return !!navigator.geolocation};j.postmessage=function(){return !!o.postMessage};j.websqldatabase=function(){var J=!!o.openDatabase;return J};j.indexedDB=function(){for(var K=-1,J=q.length;++K<J;){if(o[q[K].toLowerCase()+"IndexedDB"]){return true}}return !!o.indexedDB};j.hashchange=function(){return t("hashchange",o)&&(v.documentMode===k||v.documentMode>7)};j.history=function(){return !!(o.history&&history.pushState)};j.draganddrop=function(){return t("dragstart")&&t("drop")};j.websockets=function(){return("WebSocket" in o)};j.rgba=function(){u("background-color:rgba(150,255,150,.5)");return n(B.backgroundColor,"rgba")};j.hsla=function(){u("background-color:hsla(120,40%,100%,.5)");return n(B.backgroundColor,"rgba")||n(B.backgroundColor,"hsla")};j.multiplebgs=function(){u("background:url(//:),url(//:),red url(//:)");return new RegExp("(url\\s*\\(.*?){3}").test(B.background)};j.backgroundsize=function(){return a("backgroundSize")};j.borderimage=function(){return a("borderImage")};j.borderradius=function(){return a("borderRadius","",function(J){return n(J,"orderRadius")})};j.boxshadow=function(){return a("boxShadow")};j.textshadow=function(){return v.createElement("div").style.textShadow===""};j.opacity=function(){b("opacity:.55");return/^0.55$/.test(B.opacity)};j.cssanimations=function(){return a("animationName")};j.csscolumns=function(){return a("columnCount")};j.cssgradients=function(){var L="background-image:",K="gradient(linear,left top,right bottom,from(#9f9),to(white));",J="linear-gradient(left top,#9f9, white);";u((L+z.join(K+L)+z.join(J+L)).slice(0,-L.length));return n(B.backgroundImage,"gradient")};j.cssreflections=function(){return a("boxReflect")};j.csstransforms=function(){return !!f(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])};j.csstransforms3d=function(){var J=!!f(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);if(J&&"webkitPerspective" in F.style){J=c("("+z.join("transform-3d),(")+"modernizr)")}return J};j.csstransitions=function(){return a("transitionProperty")};j.fontface=function(){var N,K,M=h||F,O=v.createElement("style"),J=v.implementation||{hasFeature:function(){return false}};O.type="text/css";M.insertBefore(O,M.firstChild);N=O.sheet||O.styleSheet;var L=J.hasFeature("CSS2","")?function(R){if(!(N&&R)){return false}var P=false;try{N.insertRule(R,0);P=(/src/i).test(N.cssRules[0].cssText);N.deleteRule(N.cssRules.length-1)}catch(Q){}return P}:function(P){if(!(N&&P)){return false}N.cssText=P;return N.cssText.length!==0&&(/src/i).test(N.cssText)&&N.cssText.replace(/\r+|\n+/g,"").indexOf(P.split(" ")[0])===0};K=L('@font-face { font-family: "font"; src: url("//:"); }');M.removeChild(O);return K};j.video=function(){var L=v.createElement("video"),J=!!L.canPlayType;if(J){J=new Boolean(J);J.ogg=L.canPlayType('video/ogg; codecs="theora"');var K='video/mp4; codecs="avc1.42E01E';J.h264=L.canPlayType(K+'"')||L.canPlayType(K+', mp4a.40.2"');J.webm=L.canPlayType('video/webm; codecs="vp8, vorbis"')}return J};j.audio=function(){var K=v.createElement("audio"),J=!!K.canPlayType;if(J){J=new Boolean(J);J.ogg=K.canPlayType('audio/ogg; codecs="vorbis"');J.mp3=K.canPlayType("audio/mpeg;");J.wav=K.canPlayType('audio/wav; codecs="1"');J.m4a=K.canPlayType("audio/x-m4a;")||K.canPlayType("audio/aac;")}return J};j.localstorage=function(){try{return !!localStorage.getItem}catch(J){return false}};j.sessionstorage=function(){try{return !!sessionStorage.getItem}catch(J){return false}};j.webWorkers=function(){return !!o.Worker};j.applicationcache=function(){return !!o.applicationCache};j.svg=function(){return !!v.createElementNS&&!!v.createElementNS(I.svg,"svg").createSVGRect};j.inlinesvg=function(){var J=v.createElement("div");J.innerHTML="<svg/>";return(J.firstChild&&J.firstChild.namespaceURI)==I.svg};j.smil=function(){return !!v.createElementNS&&/SVG/.test(y.call(v.createElementNS(I.svg,"animate")))};j.svgclippaths=function(){return !!v.createElementNS&&/SVG/.test(y.call(v.createElementNS(I.svg,"clipPath")))};function s(){H.input=(function(L){for(var K=0,J=L.length;K<J;K++){w[L[K]]=!!(L[K] in g)}return w})("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));H.inputtypes=(function(M){for(var L=0,K,O,N,J=M.length;L<J;L++){g.setAttribute("type",O=M[L]);K=g.type!=="text";if(K){g.value=E;g.style.cssText="position:absolute;visibility:hidden;";if(/^range$/.test(O)&&g.style.WebkitAppearance!==k){F.appendChild(g);N=v.defaultView;K=N.getComputedStyle&&N.getComputedStyle(g,null).WebkitAppearance!=="textfield"&&(g.offsetHeight!==0);F.removeChild(g)}else{if(/^(search|tel)$/.test(O)){}else{if(/^(url|email)$/.test(O)){K=g.checkValidity&&g.checkValidity()===false}else{if(/^color$/.test(O)){F.appendChild(g);F.offsetWidth;K=g.value!=E;F.removeChild(g)}else{K=g.value!=E}}}}}d[M[L]]=!!K}return d})("search tel url email datetime date month week time datetime-local number range color".split(" "))}for(var i in j){if(p(j,i)){A=i.toLowerCase();H[A]=j[i]();C.push((H[A]?"":"no-")+A)}}if(!H.input){s()}H.crosswindowmessaging=H.postmessage;H.historymanagement=H.history;H.addTest=function(J,K){J=J.toLowerCase();if(H[J]){return}K=!!(K());F.className+=" "+(K?"":"no-")+J;H[J]=K;return H};u("");D=g=null;if(x&&o.attachEvent&&(function(){var J=v.createElement("div");J.innerHTML="<elem></elem>";return J.childNodes.length!==1})()){(function(P,aa){P.iepp=P.iepp||{};var Q=P.iepp,Z=Q.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",K=Z.split("|"),Y=K.length,X=new RegExp("(^|\\s)("+Z+")","gi"),W=new RegExp("<(/*)("+Z+")","gi"),O=/^\s*[\{\}]\s*$/,J=new RegExp("(^|[^\\n]*?\\s)("+Z+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),M=aa.createDocumentFragment(),U=aa.documentElement,R=U.firstChild,S=aa.createElement("body"),N=aa.createElement("style"),V=/print|all/,T;function L(ac){var ab=-1;while(++ab<Y){ac.createElement(K[ab])}}Q.getCSS=function(af,ad){if(af+""===k){return""}var ac=-1,ab=af.length,ag,ae=[];while(++ac<ab){ag=af[ac];if(ag.disabled){continue}ad=ag.media||ad;if(V.test(ad)){ae.push(Q.getCSS(ag.imports,ad),ag.cssText)}ad="all"}return ae.join("")};Q.parseCSS=function(ac){var ab=[],ad;while((ad=J.exec(ac))!=null){ab.push(((O.exec(ad[1])?"\n":ad[1])+ad[2]+ad[3]).replace(X,"$1.iepp_$2")+ad[4])}return ab.join("\n")};Q.writeHTML=function(){var ac=-1;T=T||aa.body;while(++ac<Y){var ad=aa.getElementsByTagName(K[ac]),ae=ad.length,ab=-1;while(++ab<ae){if(ad[ab].className.indexOf("iepp_")<0){ad[ab].className+=" iepp_"+K[ac]}}}M.appendChild(T);U.appendChild(S);S.className=T.className;S.id=T.id;S.innerHTML=T.innerHTML.replace(W,"<$1font")};Q._beforePrint=function(){N.styleSheet.cssText=Q.parseCSS(Q.getCSS(aa.styleSheets,"all"));Q.writeHTML()};Q.restoreHTML=function(){S.innerHTML="";U.removeChild(S);U.appendChild(T)};Q._afterPrint=function(){Q.restoreHTML();N.styleSheet.cssText=""};L(aa);L(M);if(Q.disablePP){return}R.insertBefore(N,R.firstChild);N.media="print";N.className="iepp-printshim";P.attachEvent("onbeforeprint",Q._beforePrint);P.attachEvent("onafterprint",Q._afterPrint)})(o,v)}H._enableHTML5=x;H._version=e;H.mq=c;H.isEventSupported=t;F.className=F.className.replace(/\bno-js\b/,"")+" js "+C.join(" ");return H})(this,this.document);
14
- /*yepnope1.0.1|WTFPL*/(function(a,b,c){function H(){var a=z;a.loader={load:G,i:0};return a}function G(a,b,c){var e=b=="c"?r:q;i=0,b=b||"j",u(a)?F(e,a,b,this.i++,d,c):(h.splice(this.i++,0,a),h.length==1&&E());return this}function F(a,c,d,g,j,l){function q(){!o&&A(n.readyState)&&(p.r=o=1,!i&&B(),n.onload=n.onreadystatechange=null,e(function(){m.removeChild(n)},0))}var n=b.createElement(a),o=0,p={t:d,s:c,e:l};n.src=n.data=c,!k&&(n.style.display="none"),n.width=n.height="0",a!="object"&&(n.type=d),n.onload=n.onreadystatechange=q,a=="img"?n.onerror=q:a=="script"&&(n.onerror=function(){p.e=p.r=1,E()}),h.splice(g,0,p),m.insertBefore(n,k?null:f),e(function(){o||(m.removeChild(n),p.r=p.e=o=1,B())},z.errorTimeout)}function E(){var a=h.shift();i=1,a?a.t?e(function(){a.t=="c"?D(a):C(a)},0):(a(),B()):i=0}function D(a){var c=b.createElement("link"),d;c.href=a.s,c.rel="stylesheet",c.type="text/css",!a.e&&(o||j)?function g(a){e(function(){if(!d)try{a.sheet.cssRules.length?(d=1,B()):g(a)}catch(b){b.code==1e3||b.message=="security"||b.message=="denied"?(d=1,e(function(){B()},0)):g(a)}},0)}(c):(c.onload=function(){d||(d=1,e(function(){B()},0))},a.e&&c.onload()),e(function(){d||(d=1,B())},z.errorTimeout),!a.e&&f.parentNode.insertBefore(c,f)}function C(a){var c=b.createElement("script"),d;c.src=a.s,c.onreadystatechange=c.onload=function(){!d&&A(c.readyState)&&(d=1,B(),c.onload=c.onreadystatechange=null)},e(function(){d||(d=1,B())},z.errorTimeout),a.e?c.onload():f.parentNode.insertBefore(c,f)}function B(){var a=1,b=-1;while(h.length- ++b)if(h[b].s&&!(a=h[b].r))break;a&&E()}function A(a){return!a||a=="loaded"||a=="complete"}var d=b.documentElement,e=a.setTimeout,f=b.getElementsByTagName("script")[0],g=({}).toString,h=[],i=0,j="MozAppearance"in d.style,k=j&&!!b.createRange().compareNode,l=j&&!k,m=k?d:f.parentNode,n=a.opera&&g.call(a.opera)=="[object Opera]",o="webkitAppearance"in d.style,p=o&&"async"in b.createElement("script"),q=j?"object":n||p?"img":"script",r=o?"img":q,s=Array.isArray||function(a){return g.call(a)=="[object Array]"},t=function(a){return typeof a=="object"},u=function(a){return typeof a=="string"},v=function(a){return g.call(a)=="[object Function]"},w=[],x={},y,z;z=function(a){function h(a,b){function i(a){if(u(a))g(a,f,b,0,c);else if(t(a))for(h in a)a.hasOwnProperty(h)&&g(a[h],f,b,h,c)}var c=!!a.test,d=c?a.yep:a.nope,e=a.load||a.both,f=a.callback,h;i(d),i(e),a.complete&&b.load(a.complete)}function g(a,b,d,e,g){var h=f(a),i=h.autoCallback;if(!h.bypass){b&&(b=v(b)?b:b[a]||b[e]||b[a.split("/").pop().split("?")[0]]);if(h.instead)return h.instead(a,b,d,e,g);d.load(h.url,h.forceCSS||!h.forceJS&&/css$/.test(h.url)?"c":c,h.noexec),(v(b)||v(i))&&d.load(function(){H(),b&&b(h.origUrl,g,e),i&&i(h.origUrl,g,e)})}}function f(a){var b=a.split("!"),c=w.length,d=b.pop(),e=b.length,f={url:d,origUrl:d,prefixes:b},g,h;for(h=0;h<e;h++)g=x[b[h]],g&&(f=g(f));for(h=0;h<c;h++)f=w[h](f);return f}var b,d,e=this.yepnope.loader;if(u(a))g(a,0,e,0);else if(s(a))for(b=0;b<a.length;b++)d=a[b],u(d)?g(d,0,e,0):s(d)?z(d):t(d)&&h(d,e);else t(a)&&h(a,e)},z.addPrefix=function(a,b){x[a]=b},z.addFilter=function(a){w.push(a)},z.errorTimeout=1e4,b.readyState==null&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",y=function(){b.removeEventListener("DOMContentLoaded",y,0),b.readyState="complete"},0)),a.yepnope=H()})(this,this.document)
1
+ /*!
2
+ * Modernizr v1.8pre
3
+ * http://www.modernizr.com
4
+ *
5
+ * Developed by:
6
+ * - Faruk Ates http://farukat.es/
7
+ * - Paul Irish http://paulirish.com/
8
+ *
9
+ * Copyright (c) 2009-2011
10
+ * Dual-licensed under the BSD or MIT licenses.
11
+ * http://www.modernizr.com/license/
12
+ */
13
+ window.Modernizr=(function(o,v,k){var e="1.8pre",H={},x=true,F=v.documentElement,h=v.head||v.getElementsByTagName("head")[0],G="modernizr",D=v.createElement(G),B=D.style,g=v.createElement("input"),E=":)",y=Object.prototype.toString,z=" -webkit- -moz- -o- -ms- -khtml- ".split(" "),q="Webkit Moz O ms Khtml".split(" "),I={svg:"http://www.w3.org/2000/svg"},j={},d={},w={},C=[],A,m=v.getElementsByTagName("script")[0],c=(function(L){var J={},M=v.createElement("body"),K=v.createElement("div");K.id=G+"-mqtest";M.appendChild(K);return function(O){if(J[O]==k){if(o.matchMedia){return(J[O]=matchMedia(O).matches)}var N=v.createElement("style"),P="@media "+O+" { #"+G+"-mqtest { position: absolute; } }";N.type="text/css";if(N.styleSheet){N.styleSheet.cssText=P}else{N.appendChild(v.createTextNode(P))}m.parentNode.insertBefore(M,m);m.parentNode.insertBefore(N,m);J[O]=(o.getComputedStyle?getComputedStyle(K,null):K.currentStyle)["position"]=="absolute";M.parentNode.removeChild(M);N.parentNode.removeChild(N)}return J[O]}})(),t=(function(){var K={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};function J(L,N){N=N||v.createElement(K[L]||"div");L="on"+L;var M=(L in N);if(!M){if(!N.setAttribute){N=v.createElement("div")}if(N.setAttribute&&N.removeAttribute){N.setAttribute(L,"");M=l(N[L],"function");if(!l(N[L],k)){N[L]=k}N.removeAttribute(L)}}N=null;return M}return J})();var r=({}).hasOwnProperty,p;if(!l(r,k)&&!l(r.call,k)){p=function(J,K){return r.call(J,K)}}else{p=function(J,K){return((K in J)&&l(J.constructor.prototype[K],k))}}function u(J){B.cssText=J}function b(K,J){return u(z.join(K+";")+(J||""))}function l(K,J){return typeof K===J}function n(K,J){return !!~(""+K).indexOf(J)}function f(K,L){for(var J in K){if(B[K[J]]!==k&&(!L||L(K[J],D))){return true}}}function a(M,L){var K=M.charAt(0).toUpperCase()+M.substr(1),J=(M+" "+q.join(K+" ")+K).split(" ");return !!f(J,L)}j.flexbox=function(){function K(P,R,Q,O){R+=":";P.style.cssText=(R+z.join(Q+";"+R)).slice(0,-R.length)+(O||"")}function M(P,R,Q,O){P.style.cssText=z.join(R+":"+Q+";")+(O||"")}var N=v.createElement("div"),L=v.createElement("div");K(N,"display","box","width:42px;padding:0;");M(L,"box-flex","1","width:10px;");N.appendChild(L);F.appendChild(N);var J=L.offsetWidth===42;N.removeChild(L);F.removeChild(N);return J};j.canvas=function(){var J=v.createElement("canvas");return !!(J.getContext&&J.getContext("2d"))};j.canvastext=function(){return !!(H.canvas&&l(v.createElement("canvas").getContext("2d").fillText,"function"))};j.webgl=function(){return !!o.WebGLRenderingContext};j.touch=function(){return("ontouchstart" in o)||c("("+z.join("touch-enabled),(")+"modernizr)")};j.geolocation=function(){return !!navigator.geolocation};j.postmessage=function(){return !!o.postMessage};j.websqldatabase=function(){var J=!!o.openDatabase;return J};j.indexedDB=function(){for(var K=-1,J=q.length;++K<J;){if(o[q[K].toLowerCase()+"IndexedDB"]){return true}}return !!o.indexedDB};j.hashchange=function(){return t("hashchange",o)&&(v.documentMode===k||v.documentMode>7)};j.history=function(){return !!(o.history&&history.pushState)};j.draganddrop=function(){return t("dragstart")&&t("drop")};j.websockets=function(){return("WebSocket" in o)};j.rgba=function(){u("background-color:rgba(150,255,150,.5)");return n(B.backgroundColor,"rgba")};j.hsla=function(){u("background-color:hsla(120,40%,100%,.5)");return n(B.backgroundColor,"rgba")||n(B.backgroundColor,"hsla")};j.multiplebgs=function(){u("background:url(//:),url(//:),red url(//:)");return new RegExp("(url\\s*\\(.*?){3}").test(B.background)};j.backgroundsize=function(){return a("backgroundSize")};j.borderimage=function(){return a("borderImage")};j.borderradius=function(){return a("borderRadius","",function(J){return n(J,"orderRadius")})};j.boxshadow=function(){return a("boxShadow")};j.textshadow=function(){return v.createElement("div").style.textShadow===""};j.opacity=function(){b("opacity:.55");return/^0.55$/.test(B.opacity)};j.cssanimations=function(){return a("animationName")};j.csscolumns=function(){return a("columnCount")};j.cssgradients=function(){var L="background-image:",K="gradient(linear,left top,right bottom,from(#9f9),to(white));",J="linear-gradient(left top,#9f9, white);";u((L+z.join(K+L)+z.join(J+L)).slice(0,-L.length));return n(B.backgroundImage,"gradient")};j.cssreflections=function(){return a("boxReflect")};j.csstransforms=function(){return !!f(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])};j.csstransforms3d=function(){var J=!!f(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);if(J&&"webkitPerspective" in F.style){J=c("("+z.join("transform-3d),(")+"modernizr)")}return J};j.csstransitions=function(){return a("transitionProperty")};j.fontface=function(){var N,K,M=h||F,O=v.createElement("style"),J=v.implementation||{hasFeature:function(){return false}};O.type="text/css";M.insertBefore(O,M.firstChild);N=O.sheet||O.styleSheet;var L=J.hasFeature("CSS2","")?function(R){if(!(N&&R)){return false}var P=false;try{N.insertRule(R,0);P=(/src/i).test(N.cssRules[0].cssText);N.deleteRule(N.cssRules.length-1)}catch(Q){}return P}:function(P){if(!(N&&P)){return false}N.cssText=P;return N.cssText.length!==0&&(/src/i).test(N.cssText)&&N.cssText.replace(/\r+|\n+/g,"").indexOf(P.split(" ")[0])===0};K=L('@font-face { font-family: "font"; src: url("//:"); }');M.removeChild(O);return K};j.video=function(){var L=v.createElement("video"),J=!!L.canPlayType;if(J){J=new Boolean(J);J.ogg=L.canPlayType('video/ogg; codecs="theora"');var K='video/mp4; codecs="avc1.42E01E';J.h264=L.canPlayType(K+'"')||L.canPlayType(K+', mp4a.40.2"');J.webm=L.canPlayType('video/webm; codecs="vp8, vorbis"')}return J};j.audio=function(){var K=v.createElement("audio"),J=!!K.canPlayType;if(J){J=new Boolean(J);J.ogg=K.canPlayType('audio/ogg; codecs="vorbis"');J.mp3=K.canPlayType("audio/mpeg;");J.wav=K.canPlayType('audio/wav; codecs="1"');J.m4a=K.canPlayType("audio/x-m4a;")||K.canPlayType("audio/aac;")}return J};j.localstorage=function(){try{return !!localStorage.getItem}catch(J){return false}};j.sessionstorage=function(){try{return !!sessionStorage.getItem}catch(J){return false}};j.webWorkers=function(){return !!o.Worker};j.applicationcache=function(){return !!o.applicationCache};j.svg=function(){return !!v.createElementNS&&!!v.createElementNS(I.svg,"svg").createSVGRect};j.inlinesvg=function(){var J=v.createElement("div");J.innerHTML="<svg/>";return(J.firstChild&&J.firstChild.namespaceURI)==I.svg};j.smil=function(){return !!v.createElementNS&&/SVG/.test(y.call(v.createElementNS(I.svg,"animate")))};j.svgclippaths=function(){return !!v.createElementNS&&/SVG/.test(y.call(v.createElementNS(I.svg,"clipPath")))};function s(){H.input=(function(L){for(var K=0,J=L.length;K<J;K++){w[L[K]]=!!(L[K] in g)}return w})("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));H.inputtypes=(function(M){for(var L=0,K,O,N,J=M.length;L<J;L++){g.setAttribute("type",O=M[L]);K=g.type!=="text";if(K){g.value=E;g.style.cssText="position:absolute;visibility:hidden;";if(/^range$/.test(O)&&g.style.WebkitAppearance!==k){F.appendChild(g);N=v.defaultView;K=N.getComputedStyle&&N.getComputedStyle(g,null).WebkitAppearance!=="textfield"&&(g.offsetHeight!==0);F.removeChild(g)}else{if(/^(search|tel)$/.test(O)){}else{if(/^(url|email)$/.test(O)){K=g.checkValidity&&g.checkValidity()===false}else{if(/^color$/.test(O)){F.appendChild(g);F.offsetWidth;K=g.value!=E;F.removeChild(g)}else{K=g.value!=E}}}}}d[M[L]]=!!K}return d})("search tel url email datetime date month week time datetime-local number range color".split(" "))}for(var i in j){if(p(j,i)){A=i.toLowerCase();H[A]=j[i]();C.push((H[A]?"":"no-")+A)}}if(!H.input){s()}H.crosswindowmessaging=H.postmessage;H.historymanagement=H.history;H.addTest=function(J,K){J=J.toLowerCase();if(H[J]){return}K=!!(K());F.className+=" "+(K?"":"no-")+J;H[J]=K;return H};u("");D=g=null;if(x&&o.attachEvent&&(function(){var J=v.createElement("div");J.innerHTML="<elem></elem>";return J.childNodes.length!==1})()){(function(P,aa){P.iepp=P.iepp||{};var Q=P.iepp,Z=Q.html5elements||"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",K=Z.split("|"),Y=K.length,X=new RegExp("(^|\\s)("+Z+")","gi"),W=new RegExp("<(/*)("+Z+")","gi"),O=/^\s*[\{\}]\s*$/,J=new RegExp("(^|[^\\n]*?\\s)("+Z+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),M=aa.createDocumentFragment(),U=aa.documentElement,R=U.firstChild,S=aa.createElement("body"),N=aa.createElement("style"),V=/print|all/,T;function L(ac){var ab=-1;while(++ab<Y){ac.createElement(K[ab])}}Q.getCSS=function(af,ad){if(af+""===k){return""}var ac=-1,ab=af.length,ag,ae=[];while(++ac<ab){ag=af[ac];if(ag.disabled){continue}ad=ag.media||ad;if(V.test(ad)){ae.push(Q.getCSS(ag.imports,ad),ag.cssText)}ad="all"}return ae.join("")};Q.parseCSS=function(ac){var ab=[],ad;while((ad=J.exec(ac))!=null){ab.push(((O.exec(ad[1])?"\n":ad[1])+ad[2]+ad[3]).replace(X,"$1.iepp_$2")+ad[4])}return ab.join("\n")};Q.writeHTML=function(){var ac=-1;T=T||aa.body;while(++ac<Y){var ad=aa.getElementsByTagName(K[ac]),ae=ad.length,ab=-1;while(++ab<ae){if(ad[ab].className.indexOf("iepp_")<0){ad[ab].className+=" iepp_"+K[ac]}}}M.appendChild(T);U.appendChild(S);S.className=T.className;S.id=T.id;S.innerHTML=T.innerHTML.replace(W,"<$1font")};Q._beforePrint=function(){N.styleSheet.cssText=Q.parseCSS(Q.getCSS(aa.styleSheets,"all"));Q.writeHTML()};Q.restoreHTML=function(){S.innerHTML="";U.removeChild(S);U.appendChild(T)};Q._afterPrint=function(){Q.restoreHTML();N.styleSheet.cssText=""};L(aa);L(M);if(Q.disablePP){return}R.insertBefore(N,R.firstChild);N.media="print";N.className="iepp-printshim";P.attachEvent("onbeforeprint",Q._beforePrint);P.attachEvent("onafterprint",Q._afterPrint)})(o,v)}H._enableHTML5=x;H._version=e;H.mq=c;H.isEventSupported=t;F.className=F.className.replace(/\bno-js\b/,"")+" js "+C.join(" ");return H})(this,this.document);
14
+ /*yepnope1.0.1|WTFPL*/(function(a,b,c){function H(){var a=z;a.loader={load:G,i:0};return a}function G(a,b,c){var e=b=="c"?r:q;i=0,b=b||"j",u(a)?F(e,a,b,this.i++,d,c):(h.splice(this.i++,0,a),h.length==1&&E());return this}function F(a,c,d,g,j,l){function q(){!o&&A(n.readyState)&&(p.r=o=1,!i&&B(),n.onload=n.onreadystatechange=null,e(function(){m.removeChild(n)},0))}var n=b.createElement(a),o=0,p={t:d,s:c,e:l};n.src=n.data=c,!k&&(n.style.display="none"),n.width=n.height="0",a!="object"&&(n.type=d),n.onload=n.onreadystatechange=q,a=="img"?n.onerror=q:a=="script"&&(n.onerror=function(){p.e=p.r=1,E()}),h.splice(g,0,p),m.insertBefore(n,k?null:f),e(function(){o||(m.removeChild(n),p.r=p.e=o=1,B())},z.errorTimeout)}function E(){var a=h.shift();i=1,a?a.t?e(function(){a.t=="c"?D(a):C(a)},0):(a(),B()):i=0}function D(a){var c=b.createElement("link"),d;c.href=a.s,c.rel="stylesheet",c.type="text/css",!a.e&&(o||j)?function g(a){e(function(){if(!d)try{a.sheet.cssRules.length?(d=1,B()):g(a)}catch(b){b.code==1e3||b.message=="security"||b.message=="denied"?(d=1,e(function(){B()},0)):g(a)}},0)}(c):(c.onload=function(){d||(d=1,e(function(){B()},0))},a.e&&c.onload()),e(function(){d||(d=1,B())},z.errorTimeout),!a.e&&f.parentNode.insertBefore(c,f)}function C(a){var c=b.createElement("script"),d;c.src=a.s,c.onreadystatechange=c.onload=function(){!d&&A(c.readyState)&&(d=1,B(),c.onload=c.onreadystatechange=null)},e(function(){d||(d=1,B())},z.errorTimeout),a.e?c.onload():f.parentNode.insertBefore(c,f)}function B(){var a=1,b=-1;while(h.length- ++b)if(h[b].s&&!(a=h[b].r))break;a&&E()}function A(a){return!a||a=="loaded"||a=="complete"}var d=b.documentElement,e=a.setTimeout,f=b.getElementsByTagName("script")[0],g=({}).toString,h=[],i=0,j="MozAppearance"in d.style,k=j&&!!b.createRange().compareNode,l=j&&!k,m=k?d:f.parentNode,n=a.opera&&g.call(a.opera)=="[object Opera]",o="webkitAppearance"in d.style,p=o&&"async"in b.createElement("script"),q=j?"object":n||p?"img":"script",r=o?"img":q,s=Array.isArray||function(a){return g.call(a)=="[object Array]"},t=function(a){return typeof a=="object"},u=function(a){return typeof a=="string"},v=function(a){return g.call(a)=="[object Function]"},w=[],x={},y,z;z=function(a){function h(a,b){function i(a){if(u(a))g(a,f,b,0,c);else if(t(a))for(h in a)a.hasOwnProperty(h)&&g(a[h],f,b,h,c)}var c=!!a.test,d=c?a.yep:a.nope,e=a.load||a.both,f=a.callback,h;i(d),i(e),a.complete&&b.load(a.complete)}function g(a,b,d,e,g){var h=f(a),i=h.autoCallback;if(!h.bypass){b&&(b=v(b)?b:b[a]||b[e]||b[a.split("/").pop().split("?")[0]]);if(h.instead)return h.instead(a,b,d,e,g);d.load(h.url,h.forceCSS||!h.forceJS&&/css$/.test(h.url)?"c":c,h.noexec),(v(b)||v(i))&&d.load(function(){H(),b&&b(h.origUrl,g,e),i&&i(h.origUrl,g,e)})}}function f(a){var b=a.split("!"),c=w.length,d=b.pop(),e=b.length,f={url:d,origUrl:d,prefixes:b},g,h;for(h=0;h<e;h++)g=x[b[h]],g&&(f=g(f));for(h=0;h<c;h++)f=w[h](f);return f}var b,d,e=this.yepnope.loader;if(u(a))g(a,0,e,0);else if(s(a))for(b=0;b<a.length;b++)d=a[b],u(d)?g(d,0,e,0):s(d)?z(d):t(d)&&h(d,e);else t(a)&&h(a,e)},z.addPrefix=function(a,b){x[a]=b},z.addFilter=function(a){w.push(a)},z.errorTimeout=1e4,b.readyState==null&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",y=function(){b.removeEventListener("DOMContentLoaded",y,0),b.readyState="complete"},0)),a.yepnope=H()})(this,this.document);
@@ -4,4 +4,4 @@
4
4
  * Dual licensed under the MIT or GPL Version 2 licenses.
5
5
  * Usage: Check out the readme file or github.com/scottjehl/respond
6
6
  */
7
- (function(d,g){d.respond={};respond.update=function(){};respond.mediaQueriesSupported=g;if(g){return}var s=d.document,q=s.documentElement,h=[],j=[],o=[],n={},f=30,e=s.getElementsByTagName("head")[0]||q,b=e.getElementsByTagName("link"),a=function(){var y=s.styleSheets,u=y.length;for(var x=0;x<u;x++){var w=y[x],v=w.href;if(!!v&&!n[v]){if(!/^([a-zA-Z]+?:(\/\/)?(www\.)?)/.test(v)||v.replace(RegExp.$1,"").split("/")[0]===d.location.host){var t=v;m(v,function(z){l(z,t);n[t]=true})}else{n[v]=true}}}},l=function(B,t){var z=B.match(/@media ([^\{]+)\{([\S\s]+?)(?=\}\/\*\/mediaquery\*\/)/gmi),C=z&&z.length||0,t=t.substring(0,t.lastIndexOf("/"));if(t.length){t+="/"}for(var w=0;w<C;w++){var x=z[w].match(/@media ([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1,u=x.split(","),A=u.length;j.push(RegExp.$2&&RegExp.$2.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+t+"$2$3"));for(var v=0;v<A;v++){var y=u[v];h.push({media:y.match(/(only\s+)?([a-zA-Z]+)(\sand)?/)&&RegExp.$2,rules:j.length-1,minw:y.match(/\(min\-width:\s?(\s?[0-9]+)px\s?\)/)&&parseFloat(RegExp.$1),maxw:y.match(/\(max\-width:\s?(\s?[0-9]+)px\s?\)/)&&parseFloat(RegExp.$1)})}}i()},k,p,i=function(C){var t="clientWidth",v=q[t],B=s.compatMode==="CSS1Compat"&&v||s.body[t]||v,x={},A=s.createDocumentFragment(),z=b[b.length-1],u=(new Date()).getTime();if(C&&k&&u-k<f){clearTimeout(p);p=setTimeout(i,f);return}else{k=u}for(var w in h){var D=h[w];if(!D.minw&&!D.maxw||(!D.minw||D.minw&&B>=D.minw)&&(!D.maxw||D.maxw&&B<=D.maxw)){if(!x[D.media]){x[D.media]=[]}x[D.media].push(j[D.rules])}}for(var w in o){if(o[w]&&o[w].parentNode===e){e.removeChild(o[w])}}for(var w in x){var E=s.createElement("style"),y=x[w].join("\n");E.type="text/css";E.media=w;if(E.styleSheet){E.styleSheet.cssText=y}else{E.appendChild(s.createTextNode(y))}A.appendChild(E);o.push(E)}e.insertBefore(A,z.nextSibling)},m=function(t,v){var u=c();if(!u){return}u.open("GET",t,true);u.onreadystatechange=function(){if(u.readyState!=4||u.status!=200&&u.status!=304){return}v(u.responseText)};if(u.readyState==4){return}u.send()},c=(function(){var t=false,u=[function(){return new ActiveXObject("Microsoft.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new XMLHttpRequest()}],w=u.length;while(w--){try{t=u[w]()}catch(v){continue}break}return function(){return t}})();a();respond.update=a;function r(){i(true)}if(d.addEventListener){d.addEventListener("resize",r,false)}else{if(d.attachEvent){d.attachEvent("onresize",r)}}})(this,(function(f){var g=(function(k){var i=3,l=document.createElement("div"),j=l.getElementsByTagName("i");while(l.innerHTML="<!--[if gt IE "+(++i)+"]><i></i><![endif]-->",j[0]){}return i>4?i:k}());if(f.matchMedia||g&&g>=9){return true}if(g&&g<=8){return false}var e=f.document,a=e.documentElement,b=e.createElement("body"),h=e.createElement("div"),d=e.createElement("style"),c="@media only all { #qtest { position: absolute; } }";h.setAttribute("id","qtest");d.type="text/css";b.appendChild(h);if(d.styleSheet){d.styleSheet.cssText=c}else{d.appendChild(e.createTextNode(c))}a.insertBefore(b,a.firstChild);a.insertBefore(d,b);support=(f.getComputedStyle?f.getComputedStyle(h,null):h.currentStyle)["position"]=="absolute";a.removeChild(b);a.removeChild(d);return support})(this));
7
+ (function(e,h){e.respond={};respond.update=function(){};respond.mediaQueriesSupported=h;if(h){return}var u=e.document,r=u.documentElement,i=[],k=[],p=[],o={},g=30,f=u.getElementsByTagName("head")[0]||r,b=f.getElementsByTagName("link"),d=[],a=function(){var B=b,w=B.length;for(var z=0;z<w;z++){var y=B[z],x=y.href,A=y.media,v=y.rel&&y.rel.toLowerCase()==="stylesheet";if(!!x&&v&&!o[x]){if(!/^([a-zA-Z]+?:(\/\/)?(www\.)?)/.test(x)||x.replace(RegExp.$1,"").split("/")[0]===e.location.host){d.push({href:x,media:A})}else{o[x]=true}}}t()},t=function(){if(d.length){var v=d.shift();n(v.href,function(w){m(w,v.href,v.media);o[v.href]=true;t()})}},m=function(G,v,x){var E=G.match(/@media ([^\{]+)\{([\S\s]+?)(?=\}[\s]*\/\*\/mediaquery\*\/)/gmi),H=E&&E.length||0,v=v.substring(0,v.lastIndexOf("/")),w=function(I){return I.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+v+"$2$3")},y=!H&&x;if(v.length){v+="/"}if(y){H=1}for(var B=0;B<H;B++){var C;if(y){C=x;k.push(w(G))}else{C=E[B].match(/@media ([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1;k.push(RegExp.$2&&w(RegExp.$2))}var z=C.split(","),F=z.length;for(var A=0;A<F;A++){var D=z[A];i.push({media:D.match(/(only\s+)?([a-zA-Z]+)(\sand)?/)&&RegExp.$2,rules:k.length-1,minw:D.match(/\(min\-width:[\s]*([\s]*[0-9]+)px[\s]*\)/)&&parseFloat(RegExp.$1),maxw:D.match(/\(max\-width:[\s]*([\s]*[0-9]+)px[\s]*\)/)&&parseFloat(RegExp.$1)})}}j()},l,q,j=function(E){var v="clientWidth",x=r[v],D=u.compatMode==="CSS1Compat"&&x||u.body[v]||x,z={},C=u.createDocumentFragment(),B=b[b.length-1],w=(new Date()).getTime();if(E&&l&&w-l<g){clearTimeout(q);q=setTimeout(j,g);return}else{l=w}for(var y in i){var F=i[y];if(!F.minw&&!F.maxw||(!F.minw||F.minw&&D>=F.minw)&&(!F.maxw||F.maxw&&D<=F.maxw)){if(!z[F.media]){z[F.media]=[]}z[F.media].push(k[F.rules])}}for(var y in p){if(p[y]&&p[y].parentNode===f){f.removeChild(p[y])}}for(var y in z){var G=u.createElement("style"),A=z[y].join("\n");G.type="text/css";G.media=y;if(G.styleSheet){G.styleSheet.cssText=A}else{G.appendChild(u.createTextNode(A))}C.appendChild(G);p.push(G)}f.insertBefore(C,B.nextSibling)},n=function(v,x){var w=c();if(!w){return}w.open("GET",v,true);w.onreadystatechange=function(){if(w.readyState!=4||w.status!=200&&w.status!=304){return}x(w.responseText)};if(w.readyState==4){return}w.send()},c=(function(){var v=false,w=[function(){return new ActiveXObject("Microsoft.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new XMLHttpRequest()}],y=w.length;while(y--){try{v=w[y]()}catch(x){continue}break}return function(){return v}})();a();respond.update=a;function s(){j(true)}if(e.addEventListener){e.addEventListener("resize",s,false)}else{if(e.attachEvent){e.attachEvent("onresize",s)}}})(this,(function(f){if(f.matchMedia){return true}var e,i=document,c=i.documentElement,g=c.firstElementChild||c.firstChild,h=!i.body,d=i.body||i.createElement("body"),b=i.createElement("div"),a="only all";b.id="mq-test-1";b.style.cssText="position:absolute;top:-99em";d.appendChild(b);b.innerHTML='_<style media="'+a+'"> #mq-test-1 { width: 9px; }</style>';if(h){c.insertBefore(d,g)}b.removeChild(b.firstChild);e=b.offsetWidth==9;if(h){c.removeChild(d)}else{d.removeChild(b)}return e})(this));
@@ -22,13 +22,36 @@ MBP.gestureStart = function () {
22
22
  };
23
23
 
24
24
 
25
- // Hide URL Bar for iOS
26
- // http://remysharp.com/2010/08/05/doing-it-right-skipping-the-iphone-url-bar/
25
+ // Hide URL Bar for iOS and Android by Scott Jehl
26
+ // https://gist.github.com/1183357
27
27
 
28
28
  MBP.hideUrlBar = function () {
29
- /iPhone/.test(MBP.ua) && !pageYOffset && !location.hash && setTimeout(function () {
30
- window.scrollTo(0, 1);
31
- }, 1000);
29
+ var win = window,
30
+ doc = win.document;
31
+
32
+ // If there's a hash, or addEventListener is undefined, stop here
33
+ if( !location.hash || !win.addEventListener ){
34
+
35
+ //scroll to 1
36
+ window.scrollTo( 0, 1 );
37
+ var scrollTop = 1,
38
+
39
+ //reset to 0 on bodyready, if needed
40
+ bodycheck = setInterval(function(){
41
+ if( doc.body ){
42
+ clearInterval( bodycheck );
43
+ scrollTop = "scrollTop" in doc.body ? doc.body.scrollTop : 1;
44
+ win.scrollTo( 0, scrollTop === 1 ? 0 : 1 );
45
+ }
46
+ }, 15 );
47
+
48
+ win.addEventListener( "load", function(){
49
+ setTimeout(function(){
50
+ //reset to hide addr bar at onload
51
+ win.scrollTo( 0, scrollTop === 1 ? 0 : 1 );
52
+ }, 0);
53
+ }, false );
54
+ }
32
55
  };
33
56
 
34
57
 
@@ -63,7 +86,8 @@ MBP.fastButton.prototype.onTouchStart = function(event) {
63
86
  };
64
87
 
65
88
  MBP.fastButton.prototype.onTouchMove = function(event) {
66
- if(Math.abs(event.touches[0].clientX - this.startX) > 10 || Math.abs(event.touches[0].clientY - this.startY) > 10) {
89
+ if(Math.abs(event.touches[0].clientX - this.startX) > 10 ||
90
+ Math.abs(event.touches[0].clientY - this.startY) > 10 ) {
67
91
  this.reset();
68
92
  }
69
93
  };
@@ -0,0 +1,20 @@
1
+
2
+ // usage: log('inside coolFunc', this, arguments);
3
+ // paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
4
+ window.log = function(){
5
+ log.history = log.history || []; // store logs to an array for reference
6
+ log.history.push(arguments);
7
+ if(this.console) {
8
+ arguments.callee = arguments.callee.caller;
9
+ var newarr = [].slice.call(arguments);
10
+ (typeof console.log === 'object' ? log.apply.call(console.log, console, newarr) : console.log.apply(console, newarr));
11
+ }
12
+ };
13
+
14
+ // make it safe to use console.log always
15
+ (function(b){function c(){}for(var d="assert,clear,count,debug,dir,dirxml,error,exception,firebug,group,groupCollapsed,groupEnd,info,log,memoryProfile,memoryProfileEnd,profile,profileEnd,table,time,timeEnd,timeStamp,trace,warn".split(","),a;a=d.pop();){b[a]=b[a]||c}})((function(){try
16
+ {console.log();return window.console;}catch(err){return window.console={};}})());
17
+
18
+
19
+ // place any jQuery/helper plugins in here, instead of separate, slower script files.
20
+
@@ -1,5 +1,4 @@
1
- # www.robotstxt.org/
2
- # www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156449
3
-
4
- User-agent: *
5
-
1
+ # www.robotstxt.org/
2
+ # www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156449
3
+
4
+ User-agent: *
@@ -1,10 +1,9 @@
1
- <?xml version="1.0" encoding="UTF-8" ?>
2
- <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
3
- xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0">
4
- <!-- http://www.google.com/support/webmasters/bin/answer.py?answer=34648 -->
5
- <url>
6
- <!--<loc>http://mobile.example.com/index.html</loc>-->
7
-
8
- <mobile:mobile/>
9
- </url>
10
- </urlset>
1
+ <?xml version="1.0" encoding="UTF-8" ?>
2
+ <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
3
+ xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0">
4
+ <!-- http://www.google.com/support/webmasters/bin/answer.py?answer=34648 -->
5
+ <url>
6
+ <!--<loc>http://mobile.example.com/index.html</loc>-->
7
+ <mobile:mobile/>
8
+ </url>
9
+ </urlset>
@@ -1,31 +1,31 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <title>QUnit Tests</title>
5
- <link rel="stylesheet" href="qunit/qunit.css" media="screen">
6
-
7
- <!-- reference your own javascript files here -->
8
-
9
- <script src="../js/modernizr-1.5.min.js"></script>
10
-
11
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
12
- <script src="../js/plugins.js"></script>
13
- <script src="../js/script.js"></script>
14
-
15
-
16
- <!-- test runner files -->
17
- <script src="qunit/qunit.js"></script>
18
- <script src="tests.js"></script>
19
-
20
-
21
-
22
- </head>
23
- <body class="flora">
24
- <h1 id="qunit-header">QUnit Test Suite</h1>
25
- <h2 id="qunit-banner"></h2>
26
- <div id="qunit-testrunner-toolbar"></div>
27
- <h2 id="qunit-userAgent"></h2>
28
- <ol id="qunit-tests"></ol>
29
- <div id="qunit-fixture">test markup</div>
30
- </body>
31
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <title>QUnit Tests</title>
5
+ <link rel="stylesheet" href="qunit/qunit.css" media="screen">
6
+
7
+ <!-- reference your own javascript files here -->
8
+
9
+ <script src="../js/modernizr-custom.js"></script>
10
+
11
+ <script src="../js/libs/jquery-1.6.2.min.js"></script>
12
+ <script src="../js/mylibs/helper.js"></script>
13
+ <script src="../js/script.js"></script>
14
+
15
+
16
+ <!-- test runner files -->
17
+ <script src="qunit/qunit.js"></script>
18
+ <script src="tests.js"></script>
19
+
20
+
21
+
22
+ </head>
23
+ <body class="flora">
24
+ <h1 id="qunit-header">QUnit Test Suite</h1>
25
+ <h2 id="qunit-banner"></h2>
26
+ <div id="qunit-testrunner-toolbar"></div>
27
+ <h2 id="qunit-userAgent"></h2>
28
+ <ol id="qunit-tests"></ol>
29
+ <div id="qunit-fixture">test markup</div>
30
+ </body>
31
+ </html>
@@ -1,148 +1,148 @@
1
- /** Font Family and Sizes */
2
-
3
- #qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult {
4
- font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
5
- }
6
-
7
- #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
8
- #qunit-tests { font-size: smaller; }
9
-
10
-
11
- /** Resets */
12
-
13
- #qunit-tests, #qunit-tests li ol, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult {
14
- margin: 0;
15
- padding: 0;
16
- }
17
-
18
-
19
- /** Header */
20
-
21
- #qunit-header {
22
- padding: 0.5em 0 0.5em 1em;
23
-
24
- color: #fff;
25
- text-shadow: rgba(0, 0, 0, 0.5) 4px 4px 1px;
26
- background-color: #0d3349;
27
-
28
- border-radius: 15px 15px 0 0;
29
- -moz-border-radius: 15px 15px 0 0;
30
- -webkit-border-top-right-radius: 15px;
31
- -webkit-border-top-left-radius: 15px;
32
- }
33
-
34
- #qunit-banner {
35
- height: 5px;
36
- }
37
-
38
- #qunit-testrunner-toolbar {
39
- padding: 0em 0 0.5em 2em;
40
- }
41
-
42
- #qunit-userAgent {
43
- padding: 0.5em 0 0.5em 2.5em;
44
- background-color: #2b81af;
45
- color: #fff;
46
- text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
47
- }
48
-
49
-
50
- /** Tests: Pass/Fail */
51
-
52
- #qunit-tests {
53
- list-style-position: inside;
54
- }
55
-
56
- #qunit-tests li {
57
- padding: 0.4em 0.5em 0.4em 2.5em;
58
- border-bottom: 1px solid #fff;
59
- list-style-position: inside;
60
- }
61
-
62
- #qunit-tests li strong {
63
- cursor: pointer;
64
- }
65
-
66
- #qunit-tests li ol {
67
- margin-top: 0.5em;
68
- padding: 0.5em;
69
-
70
- background-color: #fff;
71
-
72
- border-radius: 15px;
73
- -moz-border-radius: 15px;
74
- -webkit-border-radius: 15px;
75
-
76
- box-shadow: inset 0px 2px 13px #999;
77
- -moz-box-shadow: inset 0px 2px 13px #999;
78
- -webkit-box-shadow: inset 0px 2px 13px #999;
79
- }
80
-
81
- #qunit-tests li li {
82
- margin: 0.5em;
83
- padding: 0.4em 0.5em 0.4em 0.5em;
84
- background-color: #fff;
85
- border-bottom: none;
86
- list-style-position: inside;
87
- }
88
-
89
- /*** Passing Styles */
90
-
91
- #qunit-tests li li.pass {
92
- color: #5E740B;
93
- background-color: #fff;
94
- border-left: 26px solid #C6E746;
95
- }
96
-
97
- #qunit-tests li.pass { color: #528CE0; background-color: #D2E0E6; }
98
- #qunit-tests li.pass span.test-name { color: #366097; }
99
-
100
- #qunit-tests li li.pass span.test-actual,
101
- #qunit-tests li li.pass span.test-expected { color: #999999; }
102
-
103
- strong b.pass { color: #5E740B; }
104
-
105
- #qunit-banner.qunit-pass { background-color: #C6E746; }
106
-
107
- /*** Failing Styles */
108
-
109
- #qunit-tests li li.fail {
110
- color: #710909;
111
- background-color: #fff;
112
- border-left: 26px solid #EE5757;
113
- }
114
-
115
- #qunit-tests li.fail { color: #000000; background-color: #EE5757; }
116
- #qunit-tests li.fail span.test-name,
117
- #qunit-tests li.fail span.module-name { color: #000000; }
118
-
119
- #qunit-tests li li.fail span.test-actual { color: #EE5757; }
120
- #qunit-tests li li.fail span.test-expected { color: green; }
121
-
122
- strong b.fail { color: #710909; }
123
-
124
- #qunit-banner.qunit-fail,
125
- #qunit-testrunner-toolbar { background-color: #EE5757; }
126
-
127
-
128
- /** Footer */
129
-
130
- #qunit-testresult {
131
- padding: 0.5em 0.5em 0.5em 2.5em;
132
-
133
- color: #2b81af;
134
- background-color: #D2E0E6;
135
-
136
- border-radius: 0 0 15px 15px;
137
- -moz-border-radius: 0 0 15px 15px;
138
- -webkit-border-bottom-right-radius: 15px;
139
- -webkit-border-bottom-left-radius: 15px;
140
- }
141
-
142
- /** Fixture */
143
-
144
- #qunit-fixture {
145
- position: absolute;
146
- top: -10000px;
147
- left: -10000px;
148
- }
1
+ /** Font Family and Sizes */
2
+
3
+ #qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult {
4
+ font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
5
+ }
6
+
7
+ #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
8
+ #qunit-tests { font-size: smaller; }
9
+
10
+
11
+ /** Resets */
12
+
13
+ #qunit-tests, #qunit-tests li ol, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult {
14
+ margin: 0;
15
+ padding: 0;
16
+ }
17
+
18
+
19
+ /** Header */
20
+
21
+ #qunit-header {
22
+ padding: 0.5em 0 0.5em 1em;
23
+
24
+ color: #fff;
25
+ text-shadow: rgba(0, 0, 0, 0.5) 4px 4px 1px;
26
+ background-color: #0d3349;
27
+
28
+ border-radius: 15px 15px 0 0;
29
+ -moz-border-radius: 15px 15px 0 0;
30
+ -webkit-border-top-right-radius: 15px;
31
+ -webkit-border-top-left-radius: 15px;
32
+ }
33
+
34
+ #qunit-banner {
35
+ height: 5px;
36
+ }
37
+
38
+ #qunit-testrunner-toolbar {
39
+ padding: 0em 0 0.5em 2em;
40
+ }
41
+
42
+ #qunit-userAgent {
43
+ padding: 0.5em 0 0.5em 2.5em;
44
+ background-color: #2b81af;
45
+ color: #fff;
46
+ text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
47
+ }
48
+
49
+
50
+ /** Tests: Pass/Fail */
51
+
52
+ #qunit-tests {
53
+ list-style-position: inside;
54
+ }
55
+
56
+ #qunit-tests li {
57
+ padding: 0.4em 0.5em 0.4em 2.5em;
58
+ border-bottom: 1px solid #fff;
59
+ list-style-position: inside;
60
+ }
61
+
62
+ #qunit-tests li strong {
63
+ cursor: pointer;
64
+ }
65
+
66
+ #qunit-tests li ol {
67
+ margin-top: 0.5em;
68
+ padding: 0.5em;
69
+
70
+ background-color: #fff;
71
+
72
+ border-radius: 15px;
73
+ -moz-border-radius: 15px;
74
+ -webkit-border-radius: 15px;
75
+
76
+ box-shadow: inset 0px 2px 13px #999;
77
+ -moz-box-shadow: inset 0px 2px 13px #999;
78
+ -webkit-box-shadow: inset 0px 2px 13px #999;
79
+ }
80
+
81
+ #qunit-tests li li {
82
+ margin: 0.5em;
83
+ padding: 0.4em 0.5em 0.4em 0.5em;
84
+ background-color: #fff;
85
+ border-bottom: none;
86
+ list-style-position: inside;
87
+ }
88
+
89
+ /*** Passing Styles */
90
+
91
+ #qunit-tests li li.pass {
92
+ color: #5E740B;
93
+ background-color: #fff;
94
+ border-left: 26px solid #C6E746;
95
+ }
96
+
97
+ #qunit-tests li.pass { color: #528CE0; background-color: #D2E0E6; }
98
+ #qunit-tests li.pass span.test-name { color: #366097; }
99
+
100
+ #qunit-tests li li.pass span.test-actual,
101
+ #qunit-tests li li.pass span.test-expected { color: #999999; }
102
+
103
+ strong b.pass { color: #5E740B; }
104
+
105
+ #qunit-banner.qunit-pass { background-color: #C6E746; }
106
+
107
+ /*** Failing Styles */
108
+
109
+ #qunit-tests li li.fail {
110
+ color: #710909;
111
+ background-color: #fff;
112
+ border-left: 26px solid #EE5757;
113
+ }
114
+
115
+ #qunit-tests li.fail { color: #000000; background-color: #EE5757; }
116
+ #qunit-tests li.fail span.test-name,
117
+ #qunit-tests li.fail span.module-name { color: #000000; }
118
+
119
+ #qunit-tests li li.fail span.test-actual { color: #EE5757; }
120
+ #qunit-tests li li.fail span.test-expected { color: green; }
121
+
122
+ strong b.fail { color: #710909; }
123
+
124
+ #qunit-banner.qunit-fail,
125
+ #qunit-testrunner-toolbar { background-color: #EE5757; }
126
+
127
+
128
+ /** Footer */
129
+
130
+ #qunit-testresult {
131
+ padding: 0.5em 0.5em 0.5em 2.5em;
132
+
133
+ color: #2b81af;
134
+ background-color: #D2E0E6;
135
+
136
+ border-radius: 0 0 15px 15px;
137
+ -moz-border-radius: 0 0 15px 15px;
138
+ -webkit-border-bottom-right-radius: 15px;
139
+ -webkit-border-bottom-left-radius: 15px;
140
+ }
141
+
142
+ /** Fixture */
143
+
144
+ #qunit-fixture {
145
+ position: absolute;
146
+ top: -10000px;
147
+ left: -10000px;
148
+ }