oulu-rails 0.5.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (194) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +22 -0
  3. data/README.md +23 -0
  4. data/lib/oulu-rails/version.rb +3 -0
  5. data/lib/oulu-rails.rb +27 -0
  6. data/vendor/assets/javascripts/oulu/dev/positions-p.js.coffee +34 -0
  7. data/vendor/assets/javascripts/oulu/dev/positions-pp.js.coffee +57 -0
  8. data/vendor/assets/javascripts/oulu/dev/positions.js.coffee +6 -0
  9. data/vendor/assets/javascripts/oulu/helpers/js-autosize.js.coffee +2 -0
  10. data/vendor/assets/javascripts/oulu/helpers/js-checkbox.js.coffee +6 -0
  11. data/vendor/assets/javascripts/oulu/helpers/js-click-animate.js.coffee +8 -0
  12. data/vendor/assets/javascripts/oulu/helpers/js-delay-hidden.js.coffee +4 -0
  13. data/vendor/assets/javascripts/oulu/helpers/js-focused.js.coffee +7 -0
  14. data/vendor/assets/javascripts/oulu/helpers/js-hack.js.coffee +8 -0
  15. data/vendor/assets/javascripts/oulu/helpers/js-hide-after.j.coffee +5 -0
  16. data/vendor/assets/javascripts/oulu/helpers/js-hover-z-index.js.coffee +5 -0
  17. data/vendor/assets/javascripts/oulu/helpers/js-hovered.js.coffee +17 -0
  18. data/vendor/assets/javascripts/oulu/helpers/js-one-animate.js.coffee +5 -0
  19. data/vendor/assets/javascripts/oulu/helpers/js-open-children.js.coffee +28 -0
  20. data/vendor/assets/javascripts/oulu/helpers/js-open.js.coffee +51 -0
  21. data/vendor/assets/javascripts/oulu/helpers/js-scroll-to-top.js.coffee +11 -0
  22. data/vendor/assets/javascripts/oulu/helpers/js-scroll.js.coffee +9 -0
  23. data/vendor/assets/javascripts/oulu/helpers/js-side-slide.js.coffee +6 -0
  24. data/vendor/assets/javascripts/oulu/helpers/js-window-loading.js.coffee +15 -0
  25. data/vendor/assets/javascripts/oulu/helpers/js-window-sizes.js.coffee +6 -0
  26. data/vendor/assets/javascripts/oulu/helpers/open-close.js.coffee +23 -0
  27. data/vendor/assets/javascripts/oulu/ie/PIE_IE678.js +72 -0
  28. data/vendor/assets/javascripts/oulu/ie/PIE_IE9.js +46 -0
  29. data/vendor/assets/javascripts/oulu/ie/ie-selectors.js.coffee +3 -0
  30. data/vendor/assets/javascripts/oulu/ie/ie8-selectors.js.coffee +3 -0
  31. data/vendor/assets/javascripts/oulu/ie/ie9-selectors.js.coffee +6 -0
  32. data/vendor/assets/javascripts/oulu/ie/jquery.belatedPNG.min.js +29 -0
  33. data/vendor/assets/javascripts/oulu/ie/jquery.linkscubber.js +7 -0
  34. data/vendor/assets/javascripts/oulu/ie/svgeezy.min.js +12 -0
  35. data/vendor/assets/javascripts/oulu/plugins/check-box.js.coffee +34 -0
  36. data/vendor/assets/javascripts/oulu/plugins/footerFixed.js +74 -0
  37. data/vendor/assets/javascripts/oulu/plugins/jquery.autosize.min.js +7 -0
  38. data/vendor/assets/javascripts/oulu/plugins/jquery.cheat-code.js +63 -0
  39. data/vendor/assets/javascripts/oulu/plugins/jquery.css3form.js +195 -0
  40. data/vendor/assets/javascripts/oulu/plugins/jquery.depend.min.js +13 -0
  41. data/vendor/assets/javascripts/oulu/plugins/sns-buttons.js +339 -0
  42. data/vendor/assets/javascripts/oulu-ie8.js +6 -0
  43. data/vendor/assets/javascripts/oulu-ie9.js +2 -0
  44. data/vendor/assets/javascripts/oulu.js +2 -0
  45. data/vendor/assets/stylesheets/_oulu-base.css.sass +86 -0
  46. data/vendor/assets/stylesheets/_oulu.css.sass +13 -0
  47. data/vendor/assets/stylesheets/bootcamp/CHANGELOG.md +70 -0
  48. data/vendor/assets/stylesheets/bootcamp/CONTRIBUTING.md +72 -0
  49. data/vendor/assets/stylesheets/bootcamp/Gruntfile.coffee +34 -0
  50. data/vendor/assets/stylesheets/bootcamp/LICENSE.md +7 -0
  51. data/vendor/assets/stylesheets/bootcamp/README.md +52 -0
  52. data/vendor/assets/stylesheets/bootcamp/bower.json +15 -0
  53. data/vendor/assets/stylesheets/bootcamp/dist/_bootcamp.scss +46 -0
  54. data/vendor/assets/stylesheets/bootcamp/dist/bootcamp.coffee +101 -0
  55. data/vendor/assets/stylesheets/bootcamp/dist/core/functions/_actual.scss +3 -0
  56. data/vendor/assets/stylesheets/bootcamp/dist/core/functions/_error.scss +29 -0
  57. data/vendor/assets/stylesheets/bootcamp/dist/core/functions/_expect.scss +6 -0
  58. data/vendor/assets/stylesheets/bootcamp/dist/core/functions/_not-to.scss +5 -0
  59. data/vendor/assets/stylesheets/bootcamp/dist/core/functions/_should.scss +6 -0
  60. data/vendor/assets/stylesheets/bootcamp/dist/core/functions/_to.scss +5 -0
  61. data/vendor/assets/stylesheets/bootcamp/dist/core/mixins/_describe.scss +31 -0
  62. data/vendor/assets/stylesheets/bootcamp/dist/core/mixins/_it.scss +31 -0
  63. data/vendor/assets/stylesheets/bootcamp/dist/core/mixins/_runner.scss +28 -0
  64. data/vendor/assets/stylesheets/bootcamp/dist/core/mixins/_should.scss +46 -0
  65. data/vendor/assets/stylesheets/bootcamp/dist/core/mixins/_xdescribe.scss +9 -0
  66. data/vendor/assets/stylesheets/bootcamp/dist/core/mixins/_xit.scss +9 -0
  67. data/vendor/assets/stylesheets/bootcamp/dist/core/variables/_helpers.scss +5 -0
  68. data/vendor/assets/stylesheets/bootcamp/dist/core/variables/_settings.scss +2 -0
  69. data/vendor/assets/stylesheets/bootcamp/dist/core/variables/_should.scss +6 -0
  70. data/vendor/assets/stylesheets/bootcamp/dist/core/variables/_trackers.scss +6 -0
  71. data/vendor/assets/stylesheets/bootcamp/dist/lib/_sassyjson.scss +1075 -0
  72. data/vendor/assets/stylesheets/bootcamp/dist/matchers/_be.scss +3 -0
  73. data/vendor/assets/stylesheets/bootcamp/dist/matchers/_equal.scss +3 -0
  74. data/vendor/assets/stylesheets/bootcamp/dist/matchers/lists/_be-empty.scss +3 -0
  75. data/vendor/assets/stylesheets/bootcamp/dist/matchers/lists/_be-longer-than.scss +3 -0
  76. data/vendor/assets/stylesheets/bootcamp/dist/matchers/lists/_be-shorter-than.scss +3 -0
  77. data/vendor/assets/stylesheets/bootcamp/dist/matchers/lists/_contain.scss +3 -0
  78. data/vendor/assets/stylesheets/bootcamp/dist/matchers/lists/_deep-contain.scss +3 -0
  79. data/vendor/assets/stylesheets/bootcamp/dist/matchers/lists/_deep-equal.scss +47 -0
  80. data/vendor/assets/stylesheets/bootcamp/dist/matchers/lists/_have-length-of.scss +3 -0
  81. data/vendor/assets/stylesheets/bootcamp/dist/matchers/numbers/_be-close-to.scss +12 -0
  82. data/vendor/assets/stylesheets/bootcamp/dist/matchers/numbers/_be-greater-than.scss +12 -0
  83. data/vendor/assets/stylesheets/bootcamp/dist/matchers/numbers/_be-less-than.scss +12 -0
  84. data/vendor/assets/stylesheets/bootcamp/dist/matchers/types/_be-falsy.scss +3 -0
  85. data/vendor/assets/stylesheets/bootcamp/dist/matchers/types/_be-null.scss +3 -0
  86. data/vendor/assets/stylesheets/bootcamp/dist/matchers/types/_be-truthy.scss +3 -0
  87. data/vendor/assets/stylesheets/bootcamp/dist/matchers/types/_have-type-of.scss +3 -0
  88. data/vendor/assets/stylesheets/bootcamp/dist/utils/_contain.scss +15 -0
  89. data/vendor/assets/stylesheets/bootcamp/dist/utils/_equal.scss +23 -0
  90. data/vendor/assets/stylesheets/bootcamp/dist/utils/_list-join.scss +35 -0
  91. data/vendor/assets/stylesheets/bootcamp/dist/utils/_power.scss +15 -0
  92. data/vendor/assets/stylesheets/bootcamp/package.json +63 -0
  93. data/vendor/assets/stylesheets/bootcamp/tasks/bootcamp.coffee +83 -0
  94. data/vendor/assets/stylesheets/bootcamp/test/core/functions/_actual.scss +10 -0
  95. data/vendor/assets/stylesheets/bootcamp/test/core/functions/_expect.scss +6 -0
  96. data/vendor/assets/stylesheets/bootcamp/test/core/functions/_not-to.scss +5 -0
  97. data/vendor/assets/stylesheets/bootcamp/test/core/functions/_should.scss +10 -0
  98. data/vendor/assets/stylesheets/bootcamp/test/core/functions/_to.scss +5 -0
  99. data/vendor/assets/stylesheets/bootcamp/test/core/mixins/_describe.scss +11 -0
  100. data/vendor/assets/stylesheets/bootcamp/test/core/mixins/_it.scss +5 -0
  101. data/vendor/assets/stylesheets/bootcamp/test/core/mixins/_should.scss +5 -0
  102. data/vendor/assets/stylesheets/bootcamp/test/core/mixins/_xdescribe.scss +28 -0
  103. data/vendor/assets/stylesheets/bootcamp/test/core/mixins/_xit.scss +12 -0
  104. data/vendor/assets/stylesheets/bootcamp/test/matchers/_be.scss +90 -0
  105. data/vendor/assets/stylesheets/bootcamp/test/matchers/_equal.scss +33 -0
  106. data/vendor/assets/stylesheets/bootcamp/test/matchers/lists/_be-empty.scss +12 -0
  107. data/vendor/assets/stylesheets/bootcamp/test/matchers/lists/_be-longer-than.scss +29 -0
  108. data/vendor/assets/stylesheets/bootcamp/test/matchers/lists/_be-shorter-than.scss +29 -0
  109. data/vendor/assets/stylesheets/bootcamp/test/matchers/lists/_contain.scss +39 -0
  110. data/vendor/assets/stylesheets/bootcamp/test/matchers/lists/_deep-contain.scss +51 -0
  111. data/vendor/assets/stylesheets/bootcamp/test/matchers/lists/_deep-equal.scss +151 -0
  112. data/vendor/assets/stylesheets/bootcamp/test/matchers/lists/_have-length-of.scss +31 -0
  113. data/vendor/assets/stylesheets/bootcamp/test/matchers/numbers/_be-close-to.scss +24 -0
  114. data/vendor/assets/stylesheets/bootcamp/test/matchers/numbers/_be-greater-than.scss +16 -0
  115. data/vendor/assets/stylesheets/bootcamp/test/matchers/numbers/_be-less-than.scss +16 -0
  116. data/vendor/assets/stylesheets/bootcamp/test/matchers/types/_be-falsy.scss +14 -0
  117. data/vendor/assets/stylesheets/bootcamp/test/matchers/types/_be-null.scss +13 -0
  118. data/vendor/assets/stylesheets/bootcamp/test/matchers/types/_be-truthy.scss +13 -0
  119. data/vendor/assets/stylesheets/bootcamp/test/matchers/types/_have-type-of.scss +17 -0
  120. data/vendor/assets/stylesheets/bootcamp/test/specs.scss +45 -0
  121. data/vendor/assets/stylesheets/bootcamp/test/utils/_contain.scss +41 -0
  122. data/vendor/assets/stylesheets/bootcamp/test/utils/_equal.scss +79 -0
  123. data/vendor/assets/stylesheets/bootcamp/test/utils/_list-join.scss +39 -0
  124. data/vendor/assets/stylesheets/bootcamp/test/utils/_power.scss +13 -0
  125. data/vendor/assets/stylesheets/helper/_base-helper.css.sass +133 -0
  126. data/vendor/assets/stylesheets/helper/_click-actions.css.sass +188 -0
  127. data/vendor/assets/stylesheets/helper/_fade-actions.css.sass +30 -0
  128. data/vendor/assets/stylesheets/helper/_margin-padding.css.sass +16 -0
  129. data/vendor/assets/stylesheets/helper/_typoglaphy.css.sass +9 -0
  130. data/vendor/assets/stylesheets/options/amazlet/_amazlet.css.sass +32 -0
  131. data/vendor/assets/stylesheets/options/glitch/_glitch.css.sass +31 -0
  132. data/vendor/assets/stylesheets/options/oulu-buttons/_button-basic.css.sass +31 -0
  133. data/vendor/assets/stylesheets/options/web-fonts/_cousine.css.sass +12 -0
  134. data/vendor/assets/stylesheets/options/web-fonts/_font-awsome.css.sass +8 -0
  135. data/vendor/assets/stylesheets/options/web-fonts/_icomoon.css.sass +10 -0
  136. data/vendor/assets/stylesheets/options/web-fonts/_lato.css.sass +12 -0
  137. data/vendor/assets/stylesheets/options/web-fonts/_montserrat.css.sass +13 -0
  138. data/vendor/assets/stylesheets/options/web-fonts/_old-standard.css.sass +12 -0
  139. data/vendor/assets/stylesheets/options/web-fonts/_open-sans.css.sass +11 -0
  140. data/vendor/assets/stylesheets/options/web-fonts/_podkova.css.sass +12 -0
  141. data/vendor/assets/stylesheets/options/web-fonts/_pt-sans.css.sass +12 -0
  142. data/vendor/assets/stylesheets/options/web-fonts/_roboto.css.sass +11 -0
  143. data/vendor/assets/stylesheets/options/web-fonts/_satisfy.css.sass +13 -0
  144. data/vendor/assets/stylesheets/options/web-fonts/_source-code-pro.css.sass +13 -0
  145. data/vendor/assets/stylesheets/options/web-fonts/_source-sans-pro.css.sass +13 -0
  146. data/vendor/assets/stylesheets/options/web-fonts/_special-elite.css.sass +12 -0
  147. data/vendor/assets/stylesheets/options/web-fonts/_tauri.css.sass +11 -0
  148. data/vendor/assets/stylesheets/options/web-fonts/_ubuntu.css.sass +12 -0
  149. data/vendor/assets/stylesheets/settings/functions/_background.css.sass +60 -0
  150. data/vendor/assets/stylesheets/settings/functions/_bool.css.sass +5 -0
  151. data/vendor/assets/stylesheets/settings/functions/_border.css.sass +47 -0
  152. data/vendor/assets/stylesheets/settings/functions/_color.css.sass +65 -0
  153. data/vendor/assets/stylesheets/settings/functions/_content.css.sass +5 -0
  154. data/vendor/assets/stylesheets/settings/functions/_cursor.css.sass +5 -0
  155. data/vendor/assets/stylesheets/settings/functions/_direction.css.sass +8 -0
  156. data/vendor/assets/stylesheets/settings/functions/_image.css.sass +8 -0
  157. data/vendor/assets/stylesheets/settings/functions/_length.css.sass +20 -0
  158. data/vendor/assets/stylesheets/settings/functions/_list.css.sass +11 -0
  159. data/vendor/assets/stylesheets/settings/functions/_map.css.sass +5 -0
  160. data/vendor/assets/stylesheets/settings/functions/_number.css.sass +63 -0
  161. data/vendor/assets/stylesheets/settings/functions/_position.css.sass +47 -0
  162. data/vendor/assets/stylesheets/settings/functions/_reverse.css.sass +22 -0
  163. data/vendor/assets/stylesheets/settings/functions/_string.css.sass +5 -0
  164. data/vendor/assets/stylesheets/settings/functions/_text.css.sass +34 -0
  165. data/vendor/assets/stylesheets/settings/initializers/_reset.css.sass +85 -0
  166. data/vendor/assets/stylesheets/settings/mixins/_animation.css.sass +15 -0
  167. data/vendor/assets/stylesheets/settings/mixins/_background.css.sass +33 -0
  168. data/vendor/assets/stylesheets/settings/mixins/_balloon-tale.css.sass +111 -0
  169. data/vendor/assets/stylesheets/settings/mixins/_basic-font.css.sass +40 -0
  170. data/vendor/assets/stylesheets/settings/mixins/_block.css.sass +30 -0
  171. data/vendor/assets/stylesheets/settings/mixins/_border.css.sass +28 -0
  172. data/vendor/assets/stylesheets/settings/mixins/_button-base.css.sass +27 -0
  173. data/vendor/assets/stylesheets/settings/mixins/_clear-type.css.sass +4 -0
  174. data/vendor/assets/stylesheets/settings/mixins/_color.css.sass +9 -0
  175. data/vendor/assets/stylesheets/settings/mixins/_filters.css.sass +5 -0
  176. data/vendor/assets/stylesheets/settings/mixins/_form.css.sass +7 -0
  177. data/vendor/assets/stylesheets/settings/mixins/_grids.css.sass +149 -0
  178. data/vendor/assets/stylesheets/settings/mixins/_html5-input-types.scss +118 -0
  179. data/vendor/assets/stylesheets/settings/mixins/_ie-hacks.css.sass +8 -0
  180. data/vendor/assets/stylesheets/settings/mixins/_lines.css.sass +18 -0
  181. data/vendor/assets/stylesheets/settings/mixins/_link.css.sass +11 -0
  182. data/vendor/assets/stylesheets/settings/mixins/_list.css.sass +21 -0
  183. data/vendor/assets/stylesheets/settings/mixins/_margin-padding.css.sass +69 -0
  184. data/vendor/assets/stylesheets/settings/mixins/_overlay.css.sass +5 -0
  185. data/vendor/assets/stylesheets/settings/mixins/_positions.css.sass +28 -0
  186. data/vendor/assets/stylesheets/settings/mixins/_rem.css.sass +53 -0
  187. data/vendor/assets/stylesheets/settings/mixins/_resets.css.sass +17 -0
  188. data/vendor/assets/stylesheets/settings/mixins/_responsive-utilities.css.sass +160 -0
  189. data/vendor/assets/stylesheets/settings/mixins/_sassmatic.css.sass +172 -0
  190. data/vendor/assets/stylesheets/settings/mixins/_sprite-background.css.sass +18 -0
  191. data/vendor/assets/stylesheets/settings/mixins/_tables.css.sass +14 -0
  192. data/vendor/assets/stylesheets/settings/mixins/_text.css.sass +21 -0
  193. data/vendor/assets/stylesheets/settings/variables/_default.css.sass +69 -0
  194. metadata +362 -0
@@ -0,0 +1,46 @@
1
+ (function(V,N){var d=V.PIE||(V.PIE={});d.va=function(b){var a,c,e,f,h=arguments;a=1;for(c=h.length;a<c;a++){f=h[a];for(e in f)if(f.hasOwnProperty(e))b[e]=f[e]}return b};d.va(d,{i:"-pie-",Ka:"Pie",fa:"pie_",Sc:{TD:1,TH:1},ac:{TABLE:1,THEAD:1,TBODY:1,TFOOT:1,TR:1,INPUT:1,TEXTAREA:1,SELECT:1,OPTION:1,IMG:1,HR:1},ub:{A:1,INPUT:1,TEXTAREA:1,SELECT:1,BUTTON:1},qd:{submit:1,button:1,reset:1},hc:function(){}});try{N.execCommand("BackgroundImageCache",false,true)}catch(ca){}(function(){for(var b=4,a=N.createElement("div"),
2
+ c=a.getElementsByTagName("i");a.innerHTML="<!--[if gt IE "+ ++b+"]><i></i><![endif]--\>",c[0];);d.Ua=b;if(b===6)d.i=d.i.replace(/^-/,"");d.P=N.documentMode||d.Ua;a.innerHTML='<v:shape adj="1"/>';b=a.firstChild;b.style.behavior="url(#default#VML)";d.Db=typeof b.adj==="object"})();(function(){var b=0,a={};d.na={Sa:function(c){return c&&c._pieId||(c._pieId="_"+b++)},Zc:function(c,e,f){var h=a[c],l,k;if(h)Object.prototype.toString.call(h)==="[object Array]"?h.push([e,f]):e.call(f,h);else{k=a[c]=[[e,f]];
3
+ l=new Image;l.onload=function(){h=a[c]={g:l.width,f:l.height};for(var g=0,m=k.length;g<m;g++)k[g][0].call(k[g][1],h);l.onload=null};l.src=c}}}})();d.Ga={Uc:{top:0,right:90,bottom:180,left:270},nc:function(b,a,c,e){b=e.T;e=e.ta;var f;if(b)b=b.ec();else if(e)if(e[1]){b=e[0]=="top"||e[1]=="top"?a:-a;e=e[0]=="left"||e[1]=="left"?-c:c;b=Math.atan2(e,b)*180/Math.PI}else b=this.Uc[e[0]];else b=180;for(;b<0;)b+=360;b%=360;f=d.Ga.Fc(a/2,c/2,b,b>=180?0:a,b<90||b>270?0:c);e=f[0];f=f[1];a=a-e;c=c-f;return{T:b,
4
+ ic:e,jc:f,Pc:a,Qc:c,zc:d.Ga.fc(a,c,e,f)}},Fc:function(b,a,c,e,f){if(c===0||c===180)return[b,f];else if(c===90||c===270)return[e,a];else{c=Math.tan((c-90)*Math.PI/180);b=c*b-a;a=-1/c;e=a*e-f;f=a-c;return[(e-b)/f,(c*e-a*b)/f]}},fc:function(b,a,c,e){b=c-b;a=e-a;return Math.abs(b===0?a:a===0?b:Math.sqrt(b*b+a*a))}};d.L=function(){this.Za=[];this.yb={}};d.L.prototype={I:function(b){var a=d.na.Sa(b),c=this.yb,e=this.Za;if(!(a in c)){c[a]=e.length;e.push(b)}},aa:function(b){b=d.na.Sa(b);var a=this.yb;if(b&&
5
+ b in a){delete this.Za[a[b]];delete a[b]}},Y:function(){for(var b=this.Za,a=b.length;a--;)b[a]&&b[a]()}};d.ha=new d.L;d.ha.Kc=function(){var b=this,a;if(!b.Lc){a=N.documentElement.currentStyle.getAttribute(d.i+"poll-interval")||250;(function c(){b.Y();setTimeout(c,a)})();b.Lc=1}};(function(){function b(){d.D.Y();V.detachEvent("onunload",b);V.PIE=null}d.D=new d.L;V.attachEvent("onunload",b);d.D.Oa=function(a,c,e){a.attachEvent(c,e);this.I(function(){a.detachEvent(c,e)})}})();d.ja=new d.L;d.D.Oa(V,
6
+ "onresize",function(){d.ja.Y()});(function(){function b(){d.Ja.Y()}d.Ja=new d.L;d.D.Oa(V,"onscroll",b);d.ja.I(b)})();d.Ia=new d.L;d.D.Oa(N,"onmouseup",function(){d.Ia.Y()});d.gd=function(){function b(g){this.q=g}var a=N.createElement("length-calc"),c=N.body||N.documentElement,e=a.style,f={},h=["mm","cm","in","pt","pc"],l=h.length,k={};e.position="absolute";e.top=e.left="-9999px";for(c.appendChild(a);l--;){e.width="100"+h[l];f[h[l]]=a.offsetWidth/100}c.removeChild(a);e.width="1em";b.prototype={bb:/(px|em|ex|mm|cm|in|pt|pc|%)$/,
7
+ qc:function(){var g=this.Cc;if(g===void 0)g=this.Cc=parseFloat(this.q);return g},Ta:function(){var g=this.Vc;if(!g)g=this.Vc=(g=this.q.match(this.bb))&&g[0]||"px";return g},c:function(g,m){var j=this.qc(),n=this.Ta();switch(n){case "px":return j;case "%":return j*(typeof m==="function"?m():m)/100;case "em":return j*this.Ra(g);case "ex":return j*this.Ra(g)/2;default:return j*f[n]}},Ra:function(g){var m=g.currentStyle.fontSize,j,n;if(m.indexOf("px")>0)return parseFloat(m);else if(g.tagName in d.ac){n=
8
+ this;j=g.parentNode;return d.m(m).c(j,function(){return n.Ra(j)})}else{g.appendChild(a);m=a.offsetWidth;a.parentNode===g&&g.removeChild(a);return m}}};b.td=function(g){return g/f.pt};d.m=function(g){return k[g]||(k[g]=new b(g))};return b}();d.Fa=function(){function b(a){this.J=a}d.m("50%");b.prototype={};return b}();d.ea=function(){function b(a,c){this.g=a;this.f=c}b.prototype={c:function(a,c,e,f,h){var l=this.g,k=this.f,g=c/e;f=f/h;if(l==="contain"){l=f>g?c:e*f;k=f>g?c/f:e}else if(l==="cover"){l=
9
+ f<g?c:e*f;k=f<g?c/f:e}else if(l==="auto"){k=k==="auto"?h:k.c(a,e);l=k*f}else{l=l.c(a,c);k=k==="auto"?l/f:k.c(a,e)}return{g:l,f:k}}};b.Ib=new b("auto","auto");return b}();d.Gb=function(){function b(a){this.q=a}b.prototype={bb:/[a-z]+$/i,Ta:function(){return this.Vb||(this.Vb=this.q.match(this.bb)[0].toLowerCase())},ec:function(){var a=this.Qb,c;if(a===undefined){a=this.Ta();c=parseFloat(this.q,10);a=this.Qb=a==="deg"?c:a==="rad"?c/Math.PI*180:a==="grad"?c/400*360:a==="turn"?c*360:0}return a}};return b}();
10
+ d.Hb=function(){function b(g,m,j){if(j<0)j+=1;else if(j>1)j-=1;return 255*(6*j<1?g+(m-g)*j*6:2*j<1?m:3*j<2?g+(m-g)*(2/3-j)*6:g)}function a(g){this.q=g}var c={};a.Jc=/\s*rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(\d+|\d*\.\d+))?\s*\)\s*/;a.uc=/\s*hsla?\(\s*(\d*\.?\d+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*(,\s*(\d+|\d*\.\d+))?\s*\)\s*/;a.wa={};for(var e="black|0|navy|3k|darkblue|b|mediumblue|1u|blue|1e|darkgreen|jk1|green|5j4|teal|3k|darkcyan|26j|deepskyblue|ad0|darkturquoise|2xe|mediumspringgreen|8nd|lime|va|springgreen|3j|aqua|3k|cyan|0|midnightblue|xunl|dodgerblue|7ogf|lightseagreen|2zsb|forestgreen|2lbs|seagreen|guut|darkslategray|12pk|limegreen|4wkj|mediumseagreen|dwlb|turquoise|5v8f|royalblue|r2p|steelblue|75qr|darkslateblue|2fh3|mediumturquoise|ta9|indigo|32d2|darkolivegreen|emr1|cadetblue|ebu9|cornflowerblue|6z4d|mediumaquamarine|3459|dimgray|3nwf|slateblue|1bok|olivedrab|1opi|slategray|6y5p|lightslategray|9vk9|mediumslateblue|5g0l|lawngreen|27ma|chartreuse|48ao|aquamarine|5w|maroon|18|purple|3k|olive|p6o|gray|3k|lightslateblue|5j7j|skyblue|4q98|lightskyblue|f|blueviolet|3bhk|darkred|15we|darkmagenta|3v|saddlebrown|djc|darkseagreen|69vg|lightgreen|1og1|mediumpurple|3ivc|darkviolet|sfv|palegreen|6zt1|darkorchid|awk|yellowgreen|292e|sienna|7r3v|brown|6sxp|darkgray|6bgf|lightblue|5vlp|greenyellow|7k9|paleturquoise|2pxb|lightsteelblue|169c|powderblue|5jc|firebrick|1rgc|darkgoldenrod|8z55|mediumorchid|2jm0|rosybrown|34jg|darkkhaki|1mfw|silver|49jp|mediumvioletred|8w5h|indianred|8tef|peru|82r|violetred|3ntd|feldspar|212d|chocolate|16eh|tan|ewe|lightgrey|1kqv|palevioletred|6h8g|metle|fnp|orchid|2dj2|goldenrod|abu|crimson|20ik|gainsboro|13mo|plum|12pt|burlywood|1j8q|lightcyan|3794|lavender|8agr|darksalmon|3rsw|violet|6wz8|palegoldenrod|k3g|lightcoral|28k6|khaki|k5o|aliceblue|3n7|honeydew|1dd|azure|f|sandybrown|5469|wheat|1q37|beige|4kp|whitesmoke|p|mintcream|1z9|ghostwhite|46bp|salmon|25bn|antiquewhite|l7p|linen|zz|lightgoldenrodyellow|1yk|oldlace|46qc|red|1gka|magenta|73|fuchsia|0|deeppink|3v8|orangered|9kd|tomato|5zb|hotpink|19p|coral|49o|darkorange|2i8|lightsalmon|41m|orange|w6|lightpink|3i9|pink|1ze|gold|4dx|peachpuff|qh|navajowhite|s4|moccasin|16w|bisque|f|mistyrose|t|blanchedalmond|1d8|papayawhip|so|lavenderblush|80|seashell|zd|cornsilk|ku|lemonchiffon|dt|floralwhite|z|snow|a|yellow|sm|lightyellow|68|ivory|g|white|f".split("|"),
11
+ f=0,h=e.length,l=0,k;f<h;f+=2){l+=parseInt(e[f+1],36);k=l.toString(16);a.wa[e[f]]="#000000".slice(0,-k.length)+k}a.prototype={parse:function(){if(!this.Ma){var g=this.q,m;if(m=g.match(a.Jc)){g=this.Cb(+m[1],+m[2],+m[3]);m=m[5]?+m[5]:1}else if(m=g.match(a.uc)){var j=m[1],n=m[2],p=m[3],y,s;g=Math.round;n/=100;p/=100;if(n){n=p<=0.5?p*(n+1):p+n-p*n;y=p*2-n;j=j%360/360;p=b(y,n,j+1/3);s=b(y,n,j);j=b(y,n,j-1/3)}else p=s=j=p*255;g={Ic:g(p),kc:g(s),Xb:g(j)};g=this.Cb(g.Ic,g.kc,g.Xb);m=m[5]?+m[5]:1}else{if(a.wa.hasOwnProperty(m=
12
+ g.toLowerCase()))g=a.wa[m];m=g==="transparent"?0:1}this.Ma=g;this.kd=m}},Cb:function(g,m,j){return"#"+(g<16?"0":"")+g.toString(16)+(m<16?"0":"")+m.toString(16)+(j<16?"0":"")+j.toString(16)},dc:function(g){this.parse();return this.Ma==="currentColor"?d.N(g.currentStyle.color).dc(g):this.Ma}};d.N=function(g){return c[g]||(c[g]=new a(g))};return a}();d.p=function(){function b(c){this.sa=c;this.ch=0;this.J=[];this.$=0}var a=b.mb={da:1,hb:2,h:4,Jb:8,jb:16,R:32,o:64,S:128,Ha:256,ka:512,Pb:1024,URL:2048};
13
+ b.lb=function(c,e){this.e=c;this.a=e};b.lb.prototype={Wa:function(){return this.e&a.o||this.e&a.S&&this.a==="0"},H:function(){return this.Wa()||this.e&a.ka}};b.prototype={Yc:/\s/,Dc:/^[\+\-]?(\d*\.)?\d+/,url:/^url\(\s*("([^"]*)"|'([^']*)'|([!#$%&*-~]*))\s*\)/i,wb:/^\-?[_a-z][\w-]*/i,Rc:/^("([^"]*)"|'([^']*)')/,sc:/^#([\da-f]{6}|[\da-f]{3})/i,Wc:{px:a.o,em:a.o,ex:a.o,mm:a.o,cm:a.o,"in":a.o,pt:a.o,pc:a.o,deg:a.da,rad:a.da,grad:a.da},cc:{rgb:1,rgba:1,hsl:1,hsla:1},next:function(c){function e(p,y){p=
14
+ new b.lb(p,y);if(!c){m.J.push(p);m.$++}return p}function f(){m.$++;return null}var h,l,k,g,m=this;if(this.$<this.J.length)return this.J[this.$++];for(;this.Yc.test(this.sa.charAt(this.ch));)this.ch++;if(this.ch>=this.sa.length)return f();l=this.ch;h=this.sa.substring(this.ch);k=h.charAt(0);switch(k){case "#":if(g=h.match(this.sc)){this.ch+=g[0].length;return e(a.h,g[0])}break;case '"':case "'":if(g=h.match(this.Rc)){this.ch+=g[0].length;return e(a.Pb,g[2]||g[3]||"")}break;case "/":case ",":this.ch++;
15
+ return e(a.Ha,k);case "u":if(g=h.match(this.url)){this.ch+=g[0].length;return e(a.URL,g[2]||g[3]||g[4]||"")}}if(g=h.match(this.Dc)){k=g[0];this.ch+=k.length;if(h.charAt(k.length)==="%"){this.ch++;return e(a.ka,k+"%")}if(g=h.substring(k.length).match(this.wb)){k+=g[0];this.ch+=g[0].length;return e(this.Wc[g[0].toLowerCase()]||a.Jb,k)}return e(a.S,k)}if(g=h.match(this.wb)){k=g[0];this.ch+=k.length;if(k.toLowerCase()in d.Hb.wa||k==="currentColor"||k==="transparent")return e(a.h,k);if(h.charAt(k.length)===
16
+ "("){this.ch++;if(k.toLowerCase()in this.cc){h=function(p){return p&&p.e&a.S};g=function(p){return p&&p.e&(a.S|a.ka)};var j=function(p,y){return p&&p.a===y},n=function(){return m.next(1)};if((k.charAt(0)==="r"?g(n()):h(n()))&&j(n(),",")&&g(n())&&j(n(),",")&&g(n())&&(k==="rgb"||k==="hsa"||j(n(),",")&&h(n()))&&j(n(),")"))return e(a.h,this.sa.substring(l,this.ch));return f()}return e(a.jb,k)}return e(a.R,k)}this.ch++;return e(a.hb,k)},n:function(){return this.J[this.$-- -2]},all:function(){for(;this.next(););
17
+ return this.J},ba:function(c,e){for(var f=[],h,l;h=this.next();){if(c(h)){l=true;this.n();break}f.push(h)}return e&&!l?null:f}};return b}();d.gb=function(b){this.d=b};d.gb.prototype={F:0,Gc:function(){var b=this.Na,a;return!b||(a=this.Z())&&(b.x!==a.x||b.y!==a.y)},Nc:function(){var b=this.Na,a;return!b||(a=this.Z())&&(b.g!==a.g||b.f!==a.f)},vb:function(){var b=this.d,a=b.getBoundingClientRect(),c=d.P===9,e=d.Ua===7,f=a.right-a.left;return{x:a.left,y:a.top,g:c||e?b.offsetWidth:f,f:c||e?b.offsetHeight:
18
+ a.bottom-a.top,rd:e&&f?b.offsetWidth/f:1}},Z:function(){return this.F?this.oa||(this.oa=this.vb()):this.vb()},rc:function(){return!!this.Na},ua:function(){++this.F},Da:function(){if(!--this.F){if(this.oa)this.Na=this.oa;this.oa=null}}};(function(){function b(a){var c=d.na.Sa(a);return function(){if(this.F){var e=this.ob||(this.ob={});return c in e?e[c]:(e[c]=a.call(this))}else return a.call(this)}}d.k={F:0,xa:function(a){function c(e){this.d=e;this.nb=this.O()}d.va(c.prototype,d.k,a);c.Ub={};return c},
19
+ w:function(){var a=this.O(),c=this.constructor.Ub;return a?a in c?c[a]:(c[a]=this.za(a)):null},O:b(function(){var a=this.d,c=this.constructor,e=a.style;a=a.currentStyle;var f=this.Pa,h=this.ab,l=c.Sb||(c.Sb=d.i+f);c=c.Tb||(c.Tb=d.Ka+h.charAt(0).toUpperCase()+h.substring(1));return e[c]||a.getAttribute(l)||e[h]||a.getAttribute(f)}),B:b(function(){return!!this.w()}),rb:b(function(){var a=this.O(),c=a!==this.nb;this.nb=a;return c}),X:b,ua:function(){++this.F},Da:function(){--this.F||delete this.ob}}})();
20
+ d.db=d.k.xa({Pa:d.i+"background",ab:d.Ka+"Background",Wb:{scroll:1,fixed:1,local:1},Ba:{"repeat-x":1,"repeat-y":1,repeat:1,"no-repeat":1},Ab:{"padding-box":1,"border-box":1,"content-box":1},Hc:{top:1,right:1,bottom:1,left:1,center:1},Oc:{contain:1,cover:1},Tc:{top:1,bottom:1},Ac:{left:1,right:1},Aa:{ga:"backgroundClip",h:"backgroundColor",K:"backgroundImage",ia:"backgroundOrigin",s:"backgroundPosition",u:"backgroundRepeat",ma:"backgroundSize"},za:function(b){function a(o){return o&&(o.H()&&d.m(o.a)||
21
+ o.a==="auto"&&"auto")}var c=this.d.currentStyle,e,f,h,l=d.p.mb,k=l.Ha,g=l.R,m=l.h,j,n,p=0,y=this.Hc,s,v,i,q,u={G:[]};if(this.Qa()){e=new d.p(b);for(h={};f=e.next();){j=f.e;n=f.a;if(!h.z&&j&l.jb&&n==="linear-gradient"){s={Q:[],z:n};for(v={};f=e.next();){j=f.e;n=f.a;if(j&l.hb&&n===")"){v.color&&s.Q.push(v);s.Q.length>1&&d.va(h,s);break}if(j&m){if(s.T||s.ta){f=e.n();if(f.e!==k)break;e.next()}v={color:d.N(n)};f=e.next();if(f.H())v.zb=d.m(f.a);else e.n()}else if(j&l.da&&!s.T&&!s.ta&&!v.color&&!s.Q.length)s.T=
22
+ new d.Gb(f.a);else if(j&l.R&&n==="to"&&!s.ta&&!s.T&&!v.color&&!s.Q.length){i=this.Tc;q=this.Ac;f=e.ba(function(o){return!(o&&o.e&l.R&&(o.a in i||o.a in q))});j=f.length;f=[f[0]&&f[0].a,f[1]&&f[1].a];if(j<1||j>2||j>1&&(f[0]in i&&f[1]in i||f[0]in q&&f[1]in q))break;s.ta=f}else if(j&k&&n===","){if(v.color){s.Q.push(v);v={}}}else break}}else if(!h.z&&j&l.URL){h.xb=n;h.z="image"}else if((f&&f.H()||f.e&g&&f.a in y)&&!h.V){e.n();h.V=new d.Fa(e.ba(function(o){return!(o&&o.H()||o.e&g&&o.a in y)},false))}else if(j&
23
+ g)if(n in this.Ba&&!h.Va)h.Va=n;else if(n in this.Ab&&!h.qa){h.qa=n;if((f=e.next())&&f.e&g&&f.a in this.Ab)h.pa=f.a;else{h.pa=n;e.n()}}else if(n in this.Wb&&!h.pb)h.pb=n;else return null;else if(j&m&&!u.color)u.color=d.N(n);else if(j&k&&n==="/"&&!h.ra&&h.V){f=e.next();if(f.e&g&&f.a in this.Oc)h.ra=new d.ea(f.a);else if(s=a(f)){v=a(e.next());if(!v){v=s;e.n()}h.ra=new d.ea(s,v)}else return null}else if(j&k&&n===","&&h.z){h.$a=b.substring(p,e.ch-1);p=e.ch;u.G.push(h);h={}}else return null}if(h.z){h.$a=
24
+ b.substring(p);u.G.push(h)}u.bc=h.pa}else this.Eb(d.P<9?function(){var o=this.Aa,r=c[o.s+"X"],G=c[o.s+"Y"],A=c[o.K],B=c[o.h];if(B!=="transparent")u.color=d.N(B);if(A!=="none")u.G=[{z:"image",xb:(new d.p(A)).next().a,Va:c[o.u],V:new d.Fa((new d.p(r+" "+G)).all())}]}:function(){var o=this.Aa,r=/\s*,\s*/,G=c[o.K].split(r),A=c[o.h],B,I,J,L,H,w;if(A!=="transparent")u.color=d.N(A);if((L=G.length)&&G[0]!=="none"){A=c[o.u].split(r);B=c[o.s].split(r);I=c[o.ia].split(r);J=c[o.ga].split(r);o=c[o.ma].split(r);
25
+ u.G=[];for(r=0;r<L;r++)if((H=G[r])&&H!=="none"){w=o[r].split(" ");u.G.push({$a:H+" "+A[r]+" "+B[r]+" / "+o[r]+" "+I[r]+" "+J[r],z:"image",xb:(new d.p(H)).next().a,Va:A[r],V:new d.Fa((new d.p(B[r])).all()),qa:I[r],pa:J[r],ra:new d.ea(w[0],w[1])})}}});return u.color||u.G[0]?u:null},Eb:function(b){var a=d.P>8,c=this.Aa,e=this.d.runtimeStyle,f=e[c.K],h=e[c.h],l=e[c.u],k,g,m,j;if(f)e[c.K]="";if(h)e[c.h]="";if(l)e[c.u]="";if(a){k=e[c.ga];g=e[c.ia];j=e[c.s];m=e[c.ma];if(k)e[c.ga]="";if(g)e[c.ia]="";if(j)e[c.s]=
26
+ "";if(m)e[c.ma]=""}b=b.call(this);if(f)e[c.K]=f;if(h)e[c.h]=h;if(l)e[c.u]=l;if(a){if(k)e[c.ga]=k;if(g)e[c.ia]=g;if(j)e[c.s]=j;if(m)e[c.ma]=m}return b},O:d.k.X(function(){return this.Qa()||this.Eb(function(){var b=this.d.currentStyle,a=this.Aa;return b[a.h]+" "+b[a.K]+" "+b[a.u]+" "+b[a.s+"X"]+" "+b[a.s+"Y"]})}),Qa:d.k.X(function(){var b=this.d;return b.style[this.ab]||b.currentStyle.getAttribute(this.Pa)}),lc:function(b,a,c,e){var f=this.d,h=a.Z();a=h.g;h=h.f;if(b!=="border-box")if((c=c.w())&&(c=
27
+ c.ca)){a-=c.l.c(f)+c.l.c(f);h-=c.t.c(f)+c.b.c(f)}if(b==="content-box")if(b=e.w()){a-=b.l.c(f)+b.l.c(f);h-=b.t.c(f)+b.b.c(f)}return{g:a,f:h}},yc:function(){var b=0;if(d.Ua<7){b=this.d;b=""+(b.style[d.Ka+"PngFix"]||b.currentStyle.getAttribute(d.i+"png-fix"))==="true"}return b},B:d.k.X(function(){return(this.Qa()||this.yc())&&!!this.w()})});d.fb=d.k.xa({Mc:["Top","Right","Bottom","Left"],Bc:{thin:"1px",medium:"3px",thick:"5px"},za:function(){var b={},a={},c={},e=false,f=true,h=true,l=true;this.Fb(function(){for(var k=
28
+ this.d.currentStyle,g=0,m,j,n,p,y,s,v;g<4;g++){n=this.Mc[g];v=n.charAt(0).toLowerCase();m=a[v]=k["border"+n+"Style"];j=k["border"+n+"Color"];n=k["border"+n+"Width"];if(g>0){if(m!==p)h=false;if(j!==y)f=false;if(n!==s)l=false}p=m;y=j;s=n;c[v]=d.N(j);n=b[v]=d.m(a[v]==="none"?"0":this.Bc[n]||n);if(n.c(this.d)>0)e=true}});return e?{ca:b,ud:a,md:c,wd:l,nd:f,vd:h}:null},O:d.k.X(function(){var b=this.d,a=b.currentStyle,c;b.tagName in d.Sc&&b.offsetParent.currentStyle.borderCollapse==="collapse"||this.Fb(function(){c=
29
+ a.borderWidth+"|"+a.borderStyle+"|"+a.borderColor});return c}),Fb:function(b){var a=this.d.runtimeStyle,c=a.borderWidth,e=a.borderColor;if(c)a.borderWidth="";if(e)a.borderColor="";b=b.call(this);if(c)a.borderWidth=c;if(e)a.borderColor=e;return b}});d.eb=d.k.xa({Pa:"border-image",ab:"borderImage",Ba:{stretch:1,round:1,repeat:1,space:1},za:function(b){var a=null,c,e,f,h,l,k,g=0,m=d.p.mb,j=m.R,n=m.S,p=m.ka;if(b){c=new d.p(b);a={};for(var y=function(i){return i&&i.e&m.Ha&&i.a==="/"},s=function(i){return i&&
30
+ i.e&j&&i.a==="fill"},v=function(){h=c.ba(function(i){return!(i.e&(n|p))});if(s(c.next())&&!a.fill)a.fill=true;else c.n();if(y(c.next())){g++;l=c.ba(function(i){return!i.H()&&!(i.e&j&&i.a==="auto")});if(y(c.next())){g++;k=c.ba(function(i){return!i.Wa()})}}else c.n()};b=c.next();){e=b.e;f=b.a;if(e&(n|p)&&!h){c.n();v()}else if(s(b)&&!a.fill){a.fill=true;v()}else if(e&j&&this.Ba[f]&&!a.repeat){a.repeat={f:f};if(b=c.next())if(b.e&j&&this.Ba[b.a])a.repeat.cb=b.a;else c.n()}else if(e&m.URL&&!a.src)a.src=
31
+ f;else return null}if(!a.src||!h||h.length<1||h.length>4||l&&l.length>4||g===1&&l.length<1||k&&k.length>4||g===2&&k.length<1)return null;if(!a.repeat)a.repeat={f:"stretch"};if(!a.repeat.cb)a.repeat.cb=a.repeat.f;b=function(i,q){return{t:q(i[0]),r:q(i[1]||i[0]),b:q(i[2]||i[0]),l:q(i[3]||i[1]||i[0])}};a.slice=b(h,function(i){return d.m(i.e&n?i.a+"px":i.a)});if(l&&l[0])a.ca=b(l,function(i){return i.H()?d.m(i.a):i.a});if(k&&k[0])a.sd=b(k,function(i){return i.Wa()?d.m(i.a):i.a})}return a}});d.kb=d.k.xa({za:function(b){b=
32
+ new d.p(b);for(var a=[],c;(c=b.next())&&c.H();)a.push(d.m(c.a));return a.length>0&&a.length<5?{t:a[0],r:a[1]||a[0],b:a[2]||a[0],l:a[3]||a[1]||a[0]}:null},O:d.k.X(function(){var b=this.d,a=b.runtimeStyle,c=a.padding;if(c)a.padding="";b=b.currentStyle.padding;if(c)a.padding=c;return b})});d.la={Ya:function(b){function a(c,e,f,h){this.d=c;this.qb=e;this.C=f;this.parent=h}d.va(a.prototype,d.la,b);return a},Xa:function(){return false},Bb:d.hc,Ea:function(){this.B()?this.sb():this.j()},tc:function(){this.d.runtimeStyle.borderColor=
33
+ "transparent"},j:function(){}};d.Mb=d.la.Ya({Ec:/^,+|,+$/g,xc:/,+/g,Ca:function(b,a){(this.La||(this.La=[]))[b]=a||void 0},Ea:function(){var b=this.La,a;if(b&&(a=b.join(",").replace(this.Ec,"").replace(this.xc,","))!==this.Rb)this.Rb=this.d.runtimeStyle.background=a},j:function(){this.d.runtimeStyle.background="";delete this.La}});d.Kb=d.la.Ya({gc:N.createElement("canvas"),U:1,Xa:function(){return this.C.M.rb()},B:function(){var b=this.C;return b.M.B()||b.v.B()},sb:function(){var b=this.C,a=b.M,c=
34
+ a.w(),e,f,h=0,l,k;if(c){e=[];if(f=c.G)for(;l=f[h++];)if(l.z==="linear-gradient"){k=a.lc(e.qa,this.qb,b.W,b.ya);k=(l.ra||d.ea.Ib).c(this.d,k.g,k.f,k.g,k.f);e.push("url("+this.mc(l,k.g,k.f)+") "+this.Yb(l.V)+" / "+k.g+"px "+k.f+"px "+(l.pb||"")+" "+(l.qa||"")+" "+(l.pa||""))}else e.push(l.$a);if(c.color)e.push(c.color.q+" "+(c.bc||""));this.parent.Ca(this.U,e.join(","))}},Yb:function(b){return b?b.J.map(function(a){return a.a}).join(" "):"0 0"},mc:function(b,a,c){var e=this.d,f=b.Q,h=f.length,l=d.Ga.nc(e,
35
+ a,c,b);b=l.zc;var k=this.gc,g=k.getContext("2d");l=g.createLinearGradient(l.Pc,l.Qc,l.ic,l.jc);var m=[],j,n,p;for(j=0;j<h;j++)m.push(f[j].zb?f[j].zb.c(e,b):j===0?0:j===h-1?b:null);for(j=1;j<h;j++)if(m[j]===null){n=m[j-1];e=j;do p=m[++e];while(p===null);m[j]=n+(p-n)/(e-j+1)}for(j=0;j<h;j++)l.addColorStop(m[j]/b,f[j].color.q);k.width=a;k.height=c;g.fillStyle=l;g.fillRect(0,0,a,c);return k.toDataURL()},j:function(){this.parent.Ca(this.U)}});d.Lb=d.la.Ya({u:"repeat",Ob:"stretch",Nb:"round",U:0,Xa:function(){return this.C.v.rb()},
36
+ B:function(){return this.C.v.B()},sb:function(){var b=this,a=b.C.v.w(),c=b.C.W.w(),e=b.qb.Z(),f=a.repeat,h=f.f,l=f.cb,k=b.d,g=0;d.na.Zc(a.src,function(m){function j(R,S,W,X,Y,Z,T,t,x,C){D.push('<pattern patternUnits="userSpaceOnUse" id="pattern'+O+'" x="'+(h===i?R+W/2-x/2:R)+'" y="'+(l===i?S+X/2-C/2:S)+'" width="'+x+'" height="'+C+'"><svg width="'+x+'" height="'+C+'" viewBox="'+Y+" "+Z+" "+T+" "+t+'" preserveAspectRatio="none"><image xlink:href="'+v+'" x="0" y="0" width="'+y+'" height="'+s+'" /></svg></pattern>');
37
+ z.push('<rect x="'+R+'" y="'+S+'" width="'+W+'" height="'+X+'" fill="url(#pattern'+O+')" />');O++}var n=e.g,p=e.f,y=m.g,s=m.f,v=b.vc(a.src,y,s),i=b.u,q=b.Ob;m=b.Nb;var u=Math.ceil,o=d.m("0"),r=a.ca||(c?c.ca:{t:o,r:o,b:o,l:o});o=r.t.c(k);var G=r.r.c(k),A=r.b.c(k);r=r.l.c(k);var B=a.slice,I=B.t.c(k),J=B.r.c(k),L=B.b.c(k);B=B.l.c(k);var H=n-r-G,w=p-o-A,Q=y-B-J,U=s-I-L,M=h===q?H:Q*o/I,E=l===q?w:U*G/J,F=h===q?H:Q*A/L;q=l===q?w:U*r/B;var D=[],z=[],O=0;if(h===m){M-=(M-(H%M||M))/u(H/M);F-=(F-(H%F||F))/u(H/
38
+ F)}if(l===m){E-=(E-(w%E||E))/u(w/E);q-=(q-(w%q||q))/u(w/q)}m=['<svg width="'+n+'" height="'+p+'" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'];j(0,0,r,o,0,0,B,I,r,o);j(r,0,H,o,B,0,Q,I,M,o);j(n-G,0,G,o,y-J,0,J,I,G,o);j(0,o,r,w,0,I,B,U,r,q);if(a.fill)j(r,o,H,w,B,I,Q,U,M||F||Q,q||E||U);j(n-G,o,G,w,y-J,I,J,U,G,E);j(0,p-A,r,A,0,s-L,B,L,r,A);j(r,p-A,H,A,B,s-L,Q,L,F,A);j(n-G,p-A,G,A,y-J,s-L,J,L,G,A);m.push("<defs>"+D.join("\n")+"</defs>"+z.join("\n")+"</svg>");b.parent.Ca(b.U,
39
+ "url(data:image/svg+xml,"+escape(m.join(""))+") no-repeat border-box border-box");g&&b.parent.Ea()},b);g=1},vc:function(){var b={};return function(a,c,e){var f=b[a],h;if(!f){f=new Image;h=N.createElement("canvas");f.src=a;h.width=c;h.height=e;h.getContext("2d").drawImage(f,0,0);f=b[a]=h.toDataURL()}return f}}(),Bb:function(){if(this.B()){var b=this.d,a=b.runtimeStyle,c=this.C.v.w().ca;a.borderStyle="solid";if(c){a.borderTopWidth=c.t.c(b)+"px";a.borderRightWidth=c.r.c(b)+"px";a.borderBottomWidth=c.b.c(b)+
40
+ "px";a.borderLeftWidth=c.l.c(b)+"px"}this.tc()}},j:function(){var b=this.d.runtimeStyle;this.parent.Ca(this.U);b.borderColor=b.borderStyle=b.borderWidth=""}});d.ib=function(){function b(i,q){i.className+=" "+q}function a(i){var q=v.slice.call(arguments,1),u=q.length;setTimeout(function(){if(i)for(;u--;)b(i,q[u])},0)}function c(i){var q=v.slice.call(arguments,1),u=q.length;setTimeout(function(){if(i)for(;u--;){var o=q[u];o=s[o]||(s[o]=new RegExp("\\b"+o+"\\b","g"));i.className=i.className.replace(o,
41
+ "")}},0)}function e(i){function q(){if(!S){var t,x,C=d.P,P=i.currentStyle,K=P.getAttribute(h)==="true",$=P.getAttribute(k)!=="false",aa=P.getAttribute(g)!=="false";T=P.getAttribute(l);T=C>7?T!=="false":T==="true";if(!R){R=1;i.runtimeStyle.zoom=1;P=i;for(var ba=1;P=P.previousSibling;)if(P.nodeType===1){ba=0;break}ba&&b(i,p)}D.ua();if(K&&(x=D.Z())&&(t=N.documentElement||N.body)&&(x.y>t.clientHeight||x.x>t.clientWidth||x.y+x.f<0||x.x+x.g<0)){if(!Y){Y=1;d.Ja.I(q)}}else{S=1;Y=R=0;d.Ja.aa(q);if(C===9){z=
42
+ {M:new d.db(i),v:new d.eb(i),W:new d.fb(i),ya:new d.kb(i)};O=[z.M,z.W,z.v,z.ya];F=new d.Mb(i,D,z);E=[new d.Kb(i,D,z,F),new d.Lb(i,D,z,F)]}else{z={M:new d.db(i),W:new d.fb(i),v:new d.eb(i),Zb:new d.bd(i),$b:new d.ed(i),ya:new d.kb(i),Xc:new d.jd(i)};O=[z.M,z.W,z.v,z.Zb,z.$b,z.ya,z.Xc];F=new d.hd(i,D,z);E=[new d.dd(i,D,z,F),new d.$c(i,D,z,F),new d.cd(i,D,z,F),new d.ad(i,D,z,F)];i.tagName==="IMG"&&E.push(new d.fd(i,D,z,F));F.ld=E}if(t=i.currentStyle.getAttribute(d.i+"watch-ancestors")){t=parseInt(t,
43
+ 10);x=0;for(K=i.parentNode;K&&(t==="NaN"||x++<t);){w(K,"onpropertychange",H);w(K,"onmouseenter",G);w(K,"onmouseleave",A);w(K,"onmousedown",B);if(K.tagName in d.ub){w(K,"onfocus",J);w(K,"onblur",L)}K=K.parentNode}}if(T){d.ha.I(o);d.ha.Kc()}o(0,1)}if(!W){W=1;C<9&&w(i,"onmove",u);w(i,"onresize",u);w(i,"onpropertychange",r);aa&&w(i,"onmouseenter",G);if(aa||$)w(i,"onmouseleave",A);$&&w(i,"onmousedown",B);if(i.tagName in d.ub){w(i,"onfocus",J);w(i,"onblur",L)}d.ja.I(u);d.D.I(Q)}D.Da()}}function u(){D&&
44
+ D.rc()&&o()}function o(t,x){if(!Z)if(S){D.ua();for(var C=O.length;C--;)O[C].ua();C=0;for(var P=E.length,K=D.Nc();C<P;C++)E[C].Bb();for(C=0;C<P;C++)if(x||K||t&&E[C].Xa())E[C].Ea();if(x||K||t||D.Gc())F.Ea();for(t=O.length;t--;)O[t].Da();D.Da()}else R||q()}function r(){S&&!(event&&event.propertyName in y)&&o(1)}function G(){a(i,m)}function A(){c(i,m,j)}function B(){a(i,j);d.Ia.I(I)}function I(){c(i,j);d.Ia.aa(I)}function J(){a(i,n)}function L(){c(i,n)}function H(){var t=event.propertyName;if(t==="className"||
45
+ t==="id"||t.indexOf("style.")===0)r()}function w(t,x,C){t.attachEvent(x,C);X.push([t,x,C])}function Q(){if(W){for(var t=X.length,x;t--;){x=X[t];x[0].detachEvent(x[1],x[2])}d.D.aa(Q);W=0;X=[]}}function U(){if(!Z){var t,x;Q();Z=1;if(E){t=0;for(x=E.length;t<x;t++){E[t].pd=1;E[t].j()}}F.j();T&&d.ha.aa(o);d.ja.aa(o);E=F=D=z=O=i=null;M.tb=M=0}}var M=this,E,F,D=new d.gb(i),z,O,R,S,W,X=[],Y,Z,T;M.tb=i;M.wc=q;M.j=U}var f={},h=d.i+"lazy-init",l=d.i+"poll",k=d.i+"track-active",g=d.i+"track-hover",m=d.fa+"hover",
46
+ j=d.fa+"active",n=d.fa+"focus",p=d.fa+"first-child",y={background:1,bgColor:1,display:1},s={},v=[];e.oc=function(i){var q=i.uniqueID;return f[q]||(f[q]=new e(i))};e.j=function(i){i=i.uniqueID;var q=f[i];if(q){q.j();delete f[i]}};e.od=function(){var i=[],q;if(f){for(var u in f)if(f.hasOwnProperty(u)){q=f[u];i.push(q.tb);q.j()}f={}}return i};return e}();d.version="2.0beta1";d.supportsVML=d.Db;d.attach=function(b){if(d.P===9||d.P<9&&d.Db)d.ib.oc(b).wc()};d.detach=function(b){d.ib.j(b)}})(window,document);
@@ -0,0 +1,3 @@
1
+ $ ->
2
+ $(".pie").each ->
3
+ PIE.attach this
@@ -0,0 +1,3 @@
1
+ $ ->
2
+ svgeezy.init false, "png"
3
+ $(".fixping").fixPng()
@@ -0,0 +1,6 @@
1
+ $ ->
2
+ svgeezy.init false, "png"
3
+ $(".fixping").fixPng()
4
+
5
+ $(".pie").each ->
6
+ PIE.attach this
@@ -0,0 +1,29 @@
1
+ /**
2
+ * DD_belatedPNG: Adds IE6 support: PNG images for CSS background-image and HTML <IMG/>.
3
+ * Author: Drew Diller
4
+ * Email: drew.diller@gmail.com
5
+ * URL: http://www.dillerdesign.com/experiment/DD_belatedPNG/
6
+ * Version: 0.0.8a
7
+ * Licensed under the MIT License: http://dillerdesign.com/experiment/DD_belatedPNG/#license
8
+ *
9
+ * Example usage:
10
+ * DD_belatedPNG.fix('.png_bg'); // argument is a CSS selector
11
+ * DD_belatedPNG.fixPng( someNode ); // argument is an HTMLDomElement
12
+ **/
13
+
14
+ /*
15
+ PLEASE READ:
16
+ Absolutely everything in this script is SILLY. I know this. IE's rendering of certain pixels doesn't make sense, so neither does this code!
17
+ */
18
+
19
+ /**
20
+ * jquery.belatedPNG: Adds IE6/7/8 support: PNG images for CSS background-image and HTML <IMG/>.
21
+ * Author: Kazunori Ninomiya
22
+ * Email: Kazunori.Ninomiya@gmail.com
23
+ * Version: 0.0.4
24
+ * Licensed under the MIT License: http://dillerdesign.com/experiment/DD_belatedPNG/#license
25
+ *
26
+ * Example usage:
27
+ * $('.png_bg').fixPng();
28
+ **/
29
+ (function($){var doc=document;var DD_belatedPNG={ns:'DD_belatedPNG',imgSize:{},delay:10,nodesFixed:0,createVmlNameSpace:function(){if(doc.namespaces&&!doc.namespaces[this.ns]){doc.namespaces.add(this.ns,'urn:schemas-microsoft-com:vml')}},createVmlStyleSheet:function(){var screenStyleSheet,printStyleSheet;screenStyleSheet=doc.createElement('style');screenStyleSheet.setAttribute('media','screen');doc.documentElement.firstChild.insertBefore(screenStyleSheet,doc.documentElement.firstChild.firstChild);if(screenStyleSheet.styleSheet){var selector=!doc.documentMode||doc.documentMode<8?this.ns+'\\:*':this.ns+'\\:shape, '+this.ns+'\\:fill';screenStyleSheet=screenStyleSheet.styleSheet;screenStyleSheet.addRule(selector,'behavior:url(#default#VML);');screenStyleSheet.addRule(this.ns+'\\:shape','position:absolute;');screenStyleSheet.addRule('img.'+this.ns+'_sizeFinder',['behavior:none','border:none','position:absolute','z-index:-1','top:-10000px','visibility:hidden'].join(';'));this.screenStyleSheet=screenStyleSheet;printStyleSheet=doc.createElement('style');printStyleSheet.setAttribute('media','print');doc.documentElement.firstChild.insertBefore(printStyleSheet,doc.documentElement.firstChild.firstChild);printStyleSheet=printStyleSheet.styleSheet;printStyleSheet.addRule(selector,'display: none !important;');printStyleSheet.addRule('img.'+this.ns+'_sizeFinder','display: none !important;')}},readPropertyChange:function(){var el,display,v;el=event.srcElement;if(!el.vmlInitiated){return}var propName=event.propertyName;if(propName.search('background')!=-1||propName.search('border')!=-1){DD_belatedPNG.applyVML(el)}if(propName=='style.display'){display=(el.currentStyle.display=='none')?'none':'block';for(v in el.vml){if(el.vml.hasOwnProperty(v)){el.vml[v].shape.style.display=display}}}if(propName.search('filter')!=-1){DD_belatedPNG.vmlOpacity(el)}},vmlOpacity:function(el){if(el.currentStyle.filter.search('lpha')!=-1){var trans=el.currentStyle.filter;trans=parseInt(trans.substring(trans.lastIndexOf('=')+1,trans.lastIndexOf(')')),10)/100;el.vml.color.shape.style.filter=el.currentStyle.filter;el.vml.image.fill.opacity=trans}},handlePseudoHover:function(el){setTimeout(function(){DD_belatedPNG.applyVML(el)},1)},applyVML:function(el){el.runtimeStyle.cssText='';this.vmlFill(el);this.vmlOffsets(el);this.vmlOpacity(el);if(el.isImg){this.copyImageBorders(el)}},attachHandlers:function(el){var self,handlers,handler,moreForAs,a,h;self=this;handlers={resize:'vmlOffsets',move:'vmlOffsets'};if(el.nodeName=='A'){moreForAs={mouseleave:'handlePseudoHover',mouseenter:'handlePseudoHover',focus:'handlePseudoHover',blur:'handlePseudoHover'};for(a in moreForAs){if(moreForAs.hasOwnProperty(a)){handlers[a]=moreForAs[a]}}}for(h in handlers){if(handlers.hasOwnProperty(h)){handler=function(){self[handlers[h]](el)};el.attachEvent('on'+h,handler)}}el.attachEvent('onpropertychange',this.readPropertyChange)},giveLayout:function(el){el.style.zoom=1;if(el.currentStyle.position=='static'){el.style.position='relative'}},copyImageBorders:function(el){var styles,s;styles={'borderStyle':true,'borderWidth':true,'borderColor':true};for(s in styles){if(styles.hasOwnProperty(s)){el.vml.color.shape.style[s]=el.currentStyle[s]}}},vmlFill:function(el){if(!el.currentStyle){return}else{var elStyle,noImg,lib,v,img,imgLoaded;elStyle=el.currentStyle}for(v in el.vml){if(el.vml.hasOwnProperty(v)){el.vml[v].shape.style.zIndex=elStyle.zIndex}}el.runtimeStyle.backgroundColor='';el.runtimeStyle.backgroundImage='';noImg=true;if(elStyle.backgroundImage!='none'||el.isImg){if(!el.isImg){el.vmlBg=elStyle.backgroundImage;el.vmlBg=el.vmlBg.substr(5,el.vmlBg.lastIndexOf('")')-5)}else{el.vmlBg=el.src}lib=this;if(!lib.imgSize[el.vmlBg]){img=doc.createElement('img');lib.imgSize[el.vmlBg]=img;img.className=lib.ns+'_sizeFinder';img.runtimeStyle.cssText=['behavior:none','position:absolute','left:-10000px','top:-10000px','border:none','margin:0','padding:0'].join(';');imgLoaded=function(){this.width=this.offsetWidth;this.height=this.offsetHeight;lib.vmlOffsets(el)};img.attachEvent('onload',imgLoaded);img.src=el.vmlBg;img.removeAttribute('width');img.removeAttribute('height');doc.body.insertBefore(img,doc.body.firstChild)}el.vml.image.fill.src=el.vmlBg;noImg=false}el.vml.image.fill.on=!noImg;el.vml.image.fill.color='none';el.vml.color.shape.style.backgroundColor=elStyle.backgroundColor;el.runtimeStyle.backgroundImage='none';el.runtimeStyle.backgroundColor='transparent'},vmlOffsets:function(el){var thisStyle,size,fudge,makeVisible,bg,bgR,dC,altC,b,c,v;thisStyle=el.currentStyle;size={'W':el.clientWidth+1,'H':el.clientHeight+1,'w':this.imgSize[el.vmlBg].width,'h':this.imgSize[el.vmlBg].height,'L':el.offsetLeft,'T':el.offsetTop,'bLW':el.clientLeft,'bTW':el.clientTop};fudge=(size.L+size.bLW==1)?1:0;makeVisible=function(vml,l,t,w,h,o){vml.coordsize=w+','+h;vml.coordorigin=o+','+o;vml.path='m0,0l'+w+',0l'+w+','+h+'l0,'+h+' xe';vml.style.width=w+'px';vml.style.height=h+'px';vml.style.left=l+'px';vml.style.top=t+'px'};makeVisible(el.vml.color.shape,(size.L+(el.isImg?0:size.bLW)),(size.T+(el.isImg?0:size.bTW)),(size.W-1),(size.H-1),0);makeVisible(el.vml.image.shape,(size.L+size.bLW),(size.T+size.bTW),(size.W),(size.H),1);bg={'X':0,'Y':0};if(el.isImg){bg.X=parseInt(thisStyle.paddingLeft,10)+1;bg.Y=parseInt(thisStyle.paddingTop,10)+1}else{for(b in bg){if(bg.hasOwnProperty(b)){this.figurePercentage(bg,size,b,thisStyle['backgroundPosition'+b])}}}el.vml.image.fill.position=(bg.X/size.W)+','+(bg.Y/size.H);bgR=thisStyle.backgroundRepeat;dC={'T':1,'R':size.W+fudge,'B':size.H,'L':1+fudge};altC={'X':{'b1':'L','b2':'R','d':'W'},'Y':{'b1':'T','b2':'B','d':'H'}};if(bgR!='repeat'){c={'T':(bg.Y),'R':(bg.X+size.w),'B':(bg.Y+size.h),'L':(bg.X)};if(bgR.search('repeat-')!=-1){v=bgR.split('repeat-')[1].toUpperCase();c[altC[v].b1]=1;c[altC[v].b2]=size[altC[v].d]}if(c.B>size.H){c.B=size.H}el.vml.image.shape.style.clip='rect('+c.T+'px '+(c.R+fudge)+'px '+c.B+'px '+(c.L+fudge)+'px)'}else{el.vml.image.shape.style.clip='rect('+dC.T+'px '+dC.R+'px '+dC.B+'px '+dC.L+'px)'}},figurePercentage:function(bg,size,axis,position){var horizontal,fraction;fraction=true;horizontal=(axis=='X');switch(position){case'left':case'top':bg[axis]=0;break;case'center':bg[axis]=0.5;break;case'right':case'bottom':bg[axis]=1;break;default:position.search('%')!=-1?bg[axis]=parseInt(position,10)/100:fraction=false}bg[axis]=Math.ceil(fraction?((size[horizontal?'W':'H']*bg[axis])-(size[horizontal?'w':'h']*bg[axis])):parseInt(position,10));if(bg[axis]%2===0){bg[axis]++}return bg[axis]},fixPng:function(el){var lib,els,nodeStr,v,e;if(el.nodeName=='BODY'||el.nodeName=='TD'||el.nodeName=='TR'){return}el.isImg=false;if(el.nodeName=='IMG'){if(el.src.toLowerCase().search(/\.png$/)!=-1){el.isImg=true;el.style.visibility='hidden'}else{return}}else if(el.currentStyle.backgroundImage.toLowerCase().search('.png')==-1){return}lib=DD_belatedPNG;el.vml={color:{},image:{}};els={shape:{},fill:{}};for(v in el.vml){if(el.vml.hasOwnProperty(v)){for(e in els){if(els.hasOwnProperty(e)){nodeStr=lib.ns+':'+e;el.vml[v][e]=doc.createElement(nodeStr)}}el.vml[v].shape.stroked=false;if(el.nodeName=='IMG'){var width=el.width/96*72;var height=el.height/96*72;el.vml[v].fill.type='tile';el.vml[v].fill.size=width+'pt,'+height+'pt'}else if(el.currentStyle){var elStyle=el.currentStyle;if(elStyle.backgroundImage!='none'){var vmlBg=elStyle.backgroundImage;var img=doc.createElement("img");img.src=vmlBg.substr(5,vmlBg.lastIndexOf('")')-5);var run=img.runtimeStyle;var mem={w:run.width,h:run.height};run.width='auto';run.height='auto';w=img.width;h=img.height;run.width=mem.w;run.height=mem.h;var width=w/96*72;var height=h/96*72;el.vml[v].fill.type='tile';el.vml[v].fill.aspect='atleast';el.vml[v].fill.size=width+'pt,'+height+'pt'}}el.vml[v].shape.appendChild(el.vml[v].fill);el.parentNode.insertBefore(el.vml[v].shape,el)}}el.vml.image.shape.fillcolor='none';el.vml.color.fill.on=false;lib.attachHandlers(el);lib.giveLayout(el);lib.giveLayout(el.offsetParent);el.vmlInitiated=true;lib.applyVML(el)}};try{doc.execCommand("BackgroundImageCache",false,true)}catch(r){}DD_belatedPNG.createVmlNameSpace();DD_belatedPNG.createVmlStyleSheet();$.extend($.fn,{fixPng:function(){if([,]!=0){$.each(this,function(){DD_belatedPNG.fixPng(this)})}return this}})})(jQuery);
@@ -0,0 +1,7 @@
1
+ /*
2
+ - jQuery LinkScrubber Plugin 1.0.0.0 -
3
+ For documentation please visit:
4
+ http://www.crismanich.de/jquery/linkscubber/
5
+ */
6
+
7
+ $(document).ready(function(){$("a").bind("focus",function(){if(this.blur)this.blur();});});
@@ -0,0 +1,12 @@
1
+ /*
2
+ * SVGeezy.js 1.0
3
+ *
4
+ * Copyright 2012, Ben Howdle http://twostepmedia.co.uk
5
+ * Released under the WTFPL license
6
+ * http://sam.zoy.org/wtfpl/
7
+ *
8
+ * Date: Sun Aug 26 20:38 2012 GMT
9
+ * //call like so, pass in a class name that you don't want it to check and a filetype to replace .svg with
10
+ * svgeezy.init('nocheck', 'png');
11
+ */
12
+ var svgeezy=function(){return{init:function(a,b){this.avoid=a||!1,this.filetype=b||"png",this.svgSupport=this.supportsSvg(),this.svgSupport||(this.images=document.getElementsByTagName("img"),this.imgL=this.images.length,this.fallbacks())},fallbacks:function(){for(;this.imgL--;)if(!this.hasClass(this.images[this.imgL],this.avoid)||!this.avoid){var a=this.images[this.imgL].getAttribute("src");if(null===a)continue;if("svg"==this.getFileExt(a)){var b=a.replace(".svg","."+this.filetype);this.images[this.imgL].setAttribute("src",b)}}},getFileExt:function(a){var b=a.split(".").pop();return-1!==b.indexOf("?")&&(b=b.split("?")[0]),b},hasClass:function(a,b){return(" "+a.className+" ").indexOf(" "+b+" ")>-1},supportsSvg:function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")}}}();
@@ -0,0 +1,34 @@
1
+ $ ->
2
+ # チェックボックス、ラジオボタンにチェックを入れたら、親要素のlabel に .is-checked を付ける
3
+ $(":checked").parents("label").addClass "is-checked"
4
+ $("input").click (e) ->
5
+ t = e.target.type
6
+ chk = $(this).prop("checked")
7
+ name = $(this).attr("name")
8
+ if t is "checkbox"
9
+ if chk is true
10
+ $(this).parents("label").addClass "is-checked"
11
+ else
12
+ $(this).parents("label").removeClass "is-checked"
13
+ true
14
+ else if t is "radio"
15
+ if chk is true
16
+ $(this).parents('ul').each ->
17
+ $(this).find('label').removeClass "is-checked"
18
+ $('input[name=" + name + "]').parents("ul label").removeClass "is-checked"
19
+ $(this).parents('label').addClass "is-checked"
20
+ true
21
+
22
+ # すでにチェックが入ってるものにページ読み込みの時点で .is-checked を付ける
23
+ $(this).find(":checked").closest("label").addClass "is-checked"
24
+
25
+ # ラジオボタンの親要素をクリッカブルに .is-clickable も付ける
26
+ cf = $(':radio').parent()
27
+ cf.addClass('is-clickable')
28
+ cf.click ->
29
+ $(this).find(':radio').attr('is-checked', true)
30
+
31
+ rl = $(':radio').parents("label")
32
+ cl = $(':checkbox').parents("label")
33
+ rl.addClass 'radio-label'
34
+ cl.addClass 'checkbox-label'
@@ -0,0 +1,74 @@
1
+ /*--------------------------------------------------------------------------*
2
+ *
3
+ * footerFixed.js
4
+ *
5
+ * MIT-style license.
6
+ *
7
+ * 2007 Kazuma Nishihata [to-R]
8
+ * http://blog.webcreativepark.net
9
+ *
10
+ *--------------------------------------------------------------------------*/
11
+
12
+ new function(){
13
+
14
+ var footerId = "footer";
15
+ //メイン
16
+ function footerFixed(){
17
+ //ドキュメントの高さ
18
+ var dh = document.getElementsByTagName("body")[0].clientHeight;
19
+ //フッターのtopからの位置
20
+ document.getElementById(footerId).style.top = "0px";
21
+ var ft = document.getElementById(footerId).offsetTop;
22
+ //フッターの高さ
23
+ var fh = document.getElementById(footerId).offsetHeight;
24
+ //ウィンドウの高さ
25
+ if (window.innerHeight){
26
+ var wh = window.innerHeight;
27
+ }else if(document.documentElement && document.documentElement.clientHeight != 0){
28
+ var wh = document.documentElement.clientHeight;
29
+ }
30
+ if(ft+fh<wh){
31
+ document.getElementById(footerId).style.position = "relative";
32
+ document.getElementById(footerId).style.top = (wh-fh-ft-1)+"px";
33
+ }
34
+ }
35
+
36
+ //文字サイズ
37
+ function checkFontSize(func){
38
+
39
+ //判定要素の追加
40
+ var e = document.createElement("div");
41
+ var s = document.createTextNode("S");
42
+ e.appendChild(s);
43
+ e.style.visibility="hidden"
44
+ e.style.position="absolute"
45
+ e.style.top="0"
46
+ document.body.appendChild(e);
47
+ var defHeight = e.offsetHeight;
48
+
49
+ //判定関数
50
+ function checkBoxSize(){
51
+ if(defHeight != e.offsetHeight){
52
+ func();
53
+ defHeight= e.offsetHeight;
54
+ }
55
+ }
56
+ setInterval(checkBoxSize,1000)
57
+ }
58
+
59
+ //イベントリスナー
60
+ function addEvent(elm,listener,fn){
61
+ try{
62
+ elm.addEventListener(listener,fn,false);
63
+ }catch(e){
64
+ elm.attachEvent("on"+listener,fn);
65
+ }
66
+ }
67
+
68
+ addEvent(window,"load",footerFixed);
69
+ addEvent(window,"load",function(){
70
+ checkFontSize(footerFixed);
71
+ });
72
+ addEvent(window,"resize",footerFixed);
73
+
74
+ }
@@ -0,0 +1,7 @@
1
+ /*!
2
+ Autosize v1.18.4 - 2014-01-11
3
+ Automatically adjust textarea height based on user input.
4
+ (c) 2014 Jack Moore - http://www.jacklmoore.com/autosize
5
+ license: http://www.opensource.org/licenses/mit-license.php
6
+ */
7
+ !function(a){var b,c={className:"autosizejs",append:"",callback:!1,resizeDelay:10,placeholder:!0},d='<textarea tabindex="-1" style="position:absolute; top:-999px; left:0; right:auto; bottom:auto; border:0; padding: 0; -moz-box-sizing:content-box; -webkit-box-sizing:content-box; box-sizing:content-box; word-wrap:break-word; height:0 !important; min-height:0 !important; overflow:hidden; transition:none; -webkit-transition:none; -moz-transition:none;"/>',e=["fontFamily","fontSize","fontWeight","fontStyle","letterSpacing","textTransform","wordSpacing","textIndent"],f=a(d).data("autosize",!0)[0];f.style.lineHeight="99px","99px"===a(f).css("lineHeight")&&e.push("lineHeight"),f.style.lineHeight="",a.fn.autosize=function(d){return this.length?(d=a.extend({},c,d||{}),f.parentNode!==document.body&&a(document.body).append(f),this.each(function(){function c(){var b,c=window.getComputedStyle?window.getComputedStyle(m,null):!1;c?(b=m.getBoundingClientRect().width,0===b&&(b=parseInt(c.width,10)),a.each(["paddingLeft","paddingRight","borderLeftWidth","borderRightWidth"],function(a,d){b-=parseInt(c[d],10)})):b=Math.max(n.width(),0),f.style.width=b+"px"}function g(){var g={};if(b=m,f.className=d.className,j=parseInt(n.css("maxHeight"),10),a.each(e,function(a,b){g[b]=n.css(b)}),a(f).css(g),c(),window.chrome){var h=m.style.width;m.style.width="0px";{m.offsetWidth}m.style.width=h}}function h(){var e,h;b!==m?g():c(),f.value=!m.value&&d.placeholder?(a(m).attr("placeholder")||"")+d.append:m.value+d.append,f.style.overflowY=m.style.overflowY,h=parseInt(m.style.height,10),f.scrollTop=0,f.scrollTop=9e4,e=f.scrollTop,j&&e>j?(m.style.overflowY="scroll",e=j):(m.style.overflowY="hidden",k>e&&(e=k)),e+=o,h!==e&&(m.style.height=e+"px",p&&d.callback.call(m,m))}function i(){clearTimeout(l),l=setTimeout(function(){var a=n.width();a!==r&&(r=a,h())},parseInt(d.resizeDelay,10))}var j,k,l,m=this,n=a(m),o=0,p=a.isFunction(d.callback),q={height:m.style.height,overflow:m.style.overflow,overflowY:m.style.overflowY,wordWrap:m.style.wordWrap,resize:m.style.resize},r=n.width();n.data("autosize")||(n.data("autosize",!0),("border-box"===n.css("box-sizing")||"border-box"===n.css("-moz-box-sizing")||"border-box"===n.css("-webkit-box-sizing"))&&(o=n.outerHeight()-n.height()),k=Math.max(parseInt(n.css("minHeight"),10)-o||0,n.height()),n.css({overflow:"hidden",overflowY:"hidden",wordWrap:"break-word",resize:"none"===n.css("resize")||"vertical"===n.css("resize")?"none":"horizontal"}),"onpropertychange"in m?"oninput"in m?n.on("input.autosize keyup.autosize",h):n.on("propertychange.autosize",function(){"value"===event.propertyName&&h()}):n.on("input.autosize",h),d.resizeDelay!==!1&&a(window).on("resize.autosize",i),n.on("autosize.resize",h),n.on("autosize.resizeIncludeStyle",function(){b=null,h()}),n.on("autosize.destroy",function(){b=null,clearTimeout(l),a(window).off("resize",i),n.off("autosize").off(".autosize").css(q).removeData("autosize")}),h())})):this}}(window.jQuery||window.$);
@@ -0,0 +1,63 @@
1
+ /*global window,document,jQuery */
2
+
3
+ /*!
4
+ * Cheat Code: a jQuery Plugin
5
+ * @author: Trevor Morris (trovster)
6
+ * @url: http://www.trovster.com/lab/code/plugins/jquery.cheat-code.js
7
+ * @documentation: http://www.trovster.com/lab/plugins/cheat-code/
8
+ * @published: 10/05/2009
9
+ * @updated: 10/05/2009
10
+ * @license Creative Commons Attribution Non-Commercial Share Alike 3.0 Licence
11
+ * http://creativecommons.org/licenses/by-nc-sa/3.0/
12
+ */
13
+ if (typeof jQuery !== 'undefined') {
14
+ jQuery(function ($) {
15
+
16
+ var complete = function (o) {
17
+ var $overlay = $('<div class="overlay" />'),
18
+ $message = $('<div class="modal" />');
19
+
20
+ $overlay.add($message.text(o.message)).appendTo('body');
21
+ window.setTimeout(function () {
22
+ $message.fadeOut(500, function () {
23
+ $(this).remove();
24
+ $overlay.fadeOut(500, function () {
25
+ $(this).remove();
26
+ });
27
+ });
28
+ }, 1000);
29
+ },
30
+ unbind = function (o) {
31
+ if (o.unbind === true) {
32
+ $(this).unbind('keydown.cheatCode' + o.code.toString());
33
+ }
34
+ };
35
+
36
+ $.fn.extend({
37
+ cheatCode: function (options) {
38
+ var $$ = $(this),
39
+ s = $.extend({}, $.fn.cheatCode.defaults, options),
40
+ o = $.metadata ? $.extend({}, s, $$.metadata()) : s,
41
+ k = [];
42
+
43
+ return this.each(function () {
44
+ $$.bind('keydown.cheatCode' + o.code.toString(), function (event) {
45
+ k.push(event.keyCode);
46
+ if (k.toString().indexOf(o.code) >= 0) {
47
+ k = [];
48
+ o.activated.call(this, o);
49
+ unbind.call(this, o);
50
+ }
51
+ });
52
+ });
53
+ }
54
+ });
55
+
56
+ $.fn.cheatCode.defaults = {
57
+ code: '38,38,40,40,37,39,37,39,66,65',
58
+ unbind: true,
59
+ activated: function (o) {complete(o)},
60
+ message: 'Cheat Code Activated'
61
+ };
62
+ }(jQuery));
63
+ }
@@ -0,0 +1,195 @@
1
+ /* ======================================================
2
+ Script information
3
+
4
+ file name :jquery.css3form.js
5
+ book info :CSS3デザインプロフェッショナルガイド
6
+ author :秋葉秀樹、秋葉ちひろ、宮澤了祐
7
+ created :2011.05.28
8
+ update :-
9
+ script info :
10
+ ・チェックボックスの場合div.customCheckBoxが生成されます。
11
+ ・ラジオボタンの場合div.customRadioBoxが生成されます。
12
+ ・セレクトの場合div.customSelectorが生成されます。
13
+ ====================================================== */
14
+ $(function(){
15
+
16
+ $.fn.css3form = function(){
17
+ var form = $(this).addClass("css3form");
18
+
19
+ var checkRadioButton = function() {
20
+ var more = $(this).parents(".customRadioButton").parent();
21
+ if($(this).hasClass("more") && $(this).hasClass("checked")){
22
+ more.find(".moreQuestion").show(300);
23
+ }else{
24
+ more.find(".moreQuestion").hide(300);
25
+ }
26
+ }
27
+
28
+ var update_radio = function(radio){
29
+ if(radio.hasClass("css3form-radio"))return;
30
+ wrap = $("<ul></ul>").appendTo($("<div></div>").addClass("customRadioButton").insertBefore(radio));
31
+
32
+ $("input[name="+ radio.attr("name") + "]").each(function(){
33
+ ele = $(this).addClass("css3form-radio");
34
+ label = $("label[for="+ele.attr("id")+"]");
35
+ toggle_btn = $("<a></a>").attr("href","#").html(label.html());
36
+ wrap.append(toggle_btn);
37
+ toggle_btn.wrap("<li></li>");
38
+
39
+ func = function(_ele,_btn,_wrap){
40
+ return function(){
41
+ _ele.trigger("click");
42
+ _wrap.find(".checked").removeClass("checked");
43
+ _btn.addClass("checked");
44
+ checkRadioButton.apply(_btn);
45
+ return false;
46
+ }
47
+ }(ele,toggle_btn,wrap);
48
+
49
+ toggle_btn.click(func);
50
+ ele.hide();
51
+ label.hide();
52
+
53
+ if(ele.attr("checked")){
54
+ toggle_btn.addClass("checked");
55
+ }
56
+ if(ele.hasClass("more")){
57
+ toggle_btn.addClass("more");
58
+ }
59
+ });
60
+
61
+ };
62
+
63
+ var update_checkbox = function(check){
64
+ if(check.hasClass("css3form-checkbox"))return;
65
+ wrap = check.parent().find(".customCheckBox ul");
66
+ if(wrap.size() < 1)wrap = $("<ul></ul>").appendTo($("<div></div>").addClass("customCheckBox").insertBefore(check));
67
+
68
+
69
+ (function(){
70
+ ele = $(this).addClass("css3form-checkbox");
71
+ label = $("label[for="+ele.attr("id")+"]");
72
+ toggle_btn = $("<a></a>").attr("href","#").html(label.html());
73
+ wrap.append(toggle_btn);
74
+ toggle_btn.wrap("<li></li>");
75
+ func = function(_ele,_btn,_wrap){
76
+ return function(){
77
+ _ele.trigger("click");
78
+ _btn.toggleClass("checked");
79
+ return false;
80
+ }
81
+ }(ele,toggle_btn,wrap);
82
+
83
+ toggle_btn.click(func);
84
+ ele.hide();
85
+ label.hide();
86
+
87
+ if(ele.attr("checked")){
88
+ toggle_btn.addClass("checked");
89
+ }
90
+ }).apply(check);
91
+
92
+
93
+ };
94
+
95
+ var update_select = function(select){
96
+ wrap = $("<div><dl><dd><ul></ul></dd></dl></div>").addClass("customSelector").insertBefore(select);
97
+ dd = wrap.find("dd");
98
+ dd.css({"height": 0,"overflow":"hidden"}); // added
99
+ select.find("option").each(function(){
100
+ //blank
101
+ if($(this).val().length < 1){
102
+ var btn = $("<a></a>").addClass("customSelector-label")
103
+ .attr("href","javascript:void(0);")
104
+ .html($(this).html())
105
+ .click((function(_wrap){
106
+ return function(e){
107
+ _dd = _wrap.find("dd").toggleClass("open");
108
+ _dd.height(_dd.find("ul").height() * _dd.hasClass("open") );
109
+ return false;
110
+ }
111
+ }(wrap)
112
+ ));
113
+ wrap.find("dl").append($("<dt></dt>").append(btn));
114
+ $(window).bind("click",function(){
115
+ if(wrap.find("dd").hasClass("open")){
116
+ btn.trigger("click");
117
+ }
118
+ });
119
+ return;
120
+ }
121
+
122
+ toggle_btn = $("<a></a>").attr("href","javascript:void(0);").html($(this).html());
123
+ wrap.find("ul").append(toggle_btn);
124
+ toggle_btn.wrap("<li></li>");
125
+
126
+ func = function(_opt,_select,_wrap,_dd){
127
+ return function(){
128
+ _select.val(_opt.val());
129
+ _wrap.find(".customSelector-label").html(_opt.html());
130
+ _dd = _wrap.find("dd.open").removeClass("open").height(0);
131
+ return false;
132
+ }
133
+ }($(this),select,wrap,dd);
134
+
135
+ toggle_btn.click(func);
136
+
137
+ });
138
+
139
+ select.hide();
140
+ };
141
+
142
+
143
+
144
+ $(this).find("input[type=radio]").each(function(){
145
+ update_radio($(this));
146
+ });
147
+ $(this).find("input[type=checkbox]").each(function(){
148
+ update_checkbox($(this));
149
+ });
150
+ $(this).find("select").each(function(){
151
+ update_select($(this));
152
+ });
153
+ $(this).find("input[type=email]").each(function(){
154
+ $(this).bind("blur",function(){
155
+ var check_valid_email = function(value){
156
+ if(value.match(/^[A-Za-z0-9]+[\w-]+@[\w\.-]+\.\w{2,}$/)){
157
+ $(this).removeClass("mail_error");
158
+ form.unbind("submit",function(){ return false; });
159
+ return true;
160
+ }
161
+ $(this).addClass("mail_error");
162
+ form.bind("submit",function(){ return false; });
163
+ return false;
164
+ };
165
+
166
+ if(check_valid_email($(this).val())){
167
+ return true;
168
+ }
169
+
170
+ $(this).addClass("mail_error");
171
+ $(this).focus();
172
+
173
+ return false;
174
+ }).bind("keydown",function(){
175
+ $(this).removeClass("mail_error");
176
+ form.unbind("submit",function(){ return false; });
177
+ });
178
+ $(this).get(0).setAttribute("type","text");
179
+ });
180
+
181
+ //zipcode
182
+ $(".css3form_zipcode").bind("blur",function(){
183
+ val = $(this).val().replace(/(\d{3})-(\d{4})/,"$1$2");
184
+ if(val.length < 3)return;
185
+ target = $(".css3form_address");
186
+ //@see http://groovetechnology.co.jp/webservice/zipsearch/index.html
187
+ $.getJSON("http://groovetechnology.co.jp/ZipSearchService/v1/zipsearch?zipcode="+val+"&callback=?",function(data){
188
+ target.val(data.zipcode.a1.prefecture + data.zipcode.a1.city + data.zipcode.a1.town);
189
+ });
190
+ });
191
+
192
+
193
+ return $(this);
194
+ };
195
+ });
@@ -0,0 +1,13 @@
1
+ /*
2
+ Copyright (c) 2013 akinari tsugo
3
+ This script released under the MIT license (MIT-LICENSE.txt).
4
+ */
5
+ (function(g,h,l,m){var f,k;f=function(a){this.revision=this.build=this.minor=this.major=this.original=null;this.initialize(a)};f.prototype.initialize=function(a){var b=a.split(".");this.original=a;this.major=b&&b[0]?parseInt(b[0],10):null;this.minor=b&&b[1]?parseInt(b[1],10):null;this.build=b&&b[2]?parseInt(b[2],10):null;this.revision=b&&b[3]?parseInt(b[3],10):null};f.prototype.isEqual=function(a,b,c,d){return"number"!==typeof a?!1:"number"!==typeof b?this.major===a:"number"!==typeof c?this.major===
6
+ a&&this.minor===b:"number"!==typeof d?this.major===a&&this.minor===b&&this.build===c:this.major===a&&this.minor===b&&this.build===c&&this.revision===d};f.prototype.isOrLess=function(a,b,c,d){return"number"!==typeof a?!1:this.major!==a?this.major<a:"number"!==typeof b?!0:this.minor!==b?this.minor<b:"number"!==typeof c?!0:this.build!==c?this.build<c:"number"!==typeof d?!0:this.revision!==d?this.revision<d:!0};f.prototype.isLessThan=function(a,b,c,d){return"number"!==typeof a?!1:this.major!==a?this.major<
7
+ a:"number"!==typeof b?!1:this.minor!==b?this.minor<b:"number"!==typeof c?!1:this.build!==c?this.build<c:"number"!==typeof d?!1:this.revision!==d?this.revision<d:!1};f.prototype.isOrMore=function(a,b,c,d){return"number"!==typeof a?!1:this.major!==a?this.major>a:"number"!==typeof b?!0:this.minor!==b?this.minor>b:"number"!==typeof c?!0:this.build!==c?this.build>c:"number"!==typeof d?!0:this.revision!==d?this.revision>d:!0};f.prototype.isMoreThan=function(a,b,c,d){return"number"!==typeof a?!1:this.major!==
8
+ a?this.major>a:"number"!==typeof b?!1:this.minor!==b?this.minor>b:"number"!==typeof c?!1:this.build!==c?this.build>c:"number"!==typeof d?!1:this.revision!==d?this.revision>d:!1};f.prototype.toString=function(){return this.original};h=function(){this.original="";this.version=null;this.initialize(g.navigator.userAgent)};h.prototype.initialize=function(a){var b,c="",d=b="",e=null;a=a.toLowerCase();0<=a.indexOf("opera")?(0<=a.indexOf("opera mini")?(c="operamini",b=/opera mini\/([\d\.]+)/.exec(a)):0<=
9
+ a.indexOf("opera mobi")?(c="operamobile",b=/version\/([\d\.]+)/.exec(a)):(c="opera",b=/opera[\s\/]+([\d\.]+)/.exec(a)),e=b?b[1]:""):0<=a.indexOf("msie")||0<=a.indexOf("trident")?(c="msie",e=(b=/(msie|rv:?)\s?([\d\.]+)/.exec(a))?b[2]:""):0<=a.indexOf("firefox")?(c="firefox",e=(b=/firefox\/([\d\.]+)/.exec(a))?b[1]:""):0<=a.indexOf("chrome")||0<=a.indexOf("crios")?(c="chrome",e=(b=/[chrome|crios]\/([\d\.]+)/.exec(a))?b[1]:""):0<=a.indexOf("android")?(c="browser",e=(b=/version\/([\d\.]+)/.exec(a))?b[1]:
10
+ ""):0<=a.indexOf("silk")?(c="silk",e=(b=/silk\/([\d\.]*)/.exec(a))?b[1]:""):0<=a.indexOf("mercury")?(c="mercury",e=(b=/mercury\/([\d\.]+)/.exec(a))?b[1]:""):0<=a.indexOf("safari")?(c="safari",e=(b=/version\/([\d\.]+)/.exec(a))?b[1]:""):(c="unknown",e="");b=0<=a.indexOf("webkit")?"webkit":0<=a.indexOf("trident")?"trident":0<=a.indexOf("presto")?"presto":0<=a.indexOf("khtml")?"khtml":0<=a.indexOf("gecko")?"gecko":"unknown";d=0<=a.indexOf("arm")?"arm":0<=a.indexOf("win64")?0<=a.indexOf("ia64")?"ia64":
11
+ "x64":"x86";this.original=c;this[c]=!0;this[b]=!0;this[d]=!0;this.version=!g.__BACKWARD_COMPATIBILITY_ENABLED?new f(e):e};h.prototype.is=function(a){return"string"===typeof a&&a.toLowerCase()===this.original};k=function(){this.original="";this.initialize(g.navigator.userAgent)};k.prototype.initialize=function(a){var b="",c="",d="",e="",c=null;a=a.toLowerCase();(c=/iphone|ipod|ipad|android|windows phone|silk|blackberry|symbian|mobile/.exec(a))?0<=a.indexOf("silk")?(b="tablet",c="android"):(b=0<=a.indexOf("android")&&
12
+ 0>a.indexOf("mobile")||0<=a.indexOf("ipad")?"tablet":"mobile",c=c[0].replace(" ","")):0<=a.indexOf("windows")?(b="pc",c="windows",e=(d=/windows nt ([\d\.]+)/.exec(a))?d[1]:"",d=0<=a.indexOf("arm")?"arm":0<=a.indexOf("win64")?0<=a.indexOf("ia64")?"ia64":"x64":0<=a.indexOf("wow64")?"x64":"x86"):(0<=a.indexOf("mac")?(b="pc",c="mac"):0<=a.indexOf("linux")?(b="pc",c="linux"):c=b="unknown",d="unknown");this.type=b;this.original=c;this[b]=!0;this[c]=!0;this[d]=!0;this.version=new f(e)};k.prototype.is=function(a){return"string"===
13
+ typeof a?(a=a.toLowerCase(),a===this.original||a===this.type):!1};l.browser=new h;l.platform=new k;l.depend=function(){var a,b,c,d;c=arguments;a=0;for(b=c.length;a<b;a++)if(d=c[a],(!0===d.on||d.on===m)&&"function"===typeof d.exe)return d.exe();g.console&&g.console.log&&g.console.log('Not implemented default process in "$.depend" function.');return m}})(window,document,jQuery);