From 252eb2caf3b7b2a636bb33a00d6433594106fba5 Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Wed, 16 Jun 2010 20:57:13 +1000 Subject: [PATCH] Add html5shiv --- layouts/_head.html | 3 +++ output/js/html5.js | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 output/js/html5.js diff --git a/layouts/_head.html b/layouts/_head.html index 8e16790..e9d8de5 100644 --- a/layouts/_head.html +++ b/layouts/_head.html @@ -1,6 +1,9 @@ <%= [@item[:title], 'WezM.net'].compact.join(' • ') %> + diff --git a/output/js/html5.js b/output/js/html5.js new file mode 100644 index 0000000..ac89535 --- /dev/null +++ b/output/js/html5.js @@ -0,0 +1,5 @@ +// html5shiv MIT @rem remysharp.com/html5-enabling-script +// iepp v1.5.1 MIT @jon_neal iecss.com/print-protector +/*@cc_on(function(p,e){var q=e.createElement("div");q.innerHTML="i";q.childNodes.length!==1&&function(){function r(a,b){if(g[a])g[a].styleSheet.cssText+=b;else{var c=s[l],d=e[j]("style");d.media=a;c.insertBefore(d,c[l]);g[a]=d;r(a,b)}}function t(a,b){for(var c=new RegExp("\\b("+m+")\\b(?!.*[;}])","gi"),d=function(k){return".iepp_"+k},h=-1;++h\\s*$","i");i.innerHTML=a.outerHTML.replace(/\r|\n/g," ").replace(c,a.currentStyle.display=="block"?"":"");c=i.childNodes[0];c.className+=" iepp_"+ +d;c=f[f.length]=[a,c];a.parentNode.replaceChild(c[1],c[0])}t(e.styleSheets,"all")});p.attachEvent("onafterprint",function(){for(var a=-1,b;++a