js crap for IE to understand html5
This commit is contained in:
parent
1a34ffef4f
commit
75a99a343a
|
@ -0,0 +1,6 @@
|
||||||
|
// html5shiv MIT @rem remysharp.com/html5-enabling-script
|
||||||
|
// iepp v1.6.2 MIT @jon_neal iecss.com/print-protector
|
||||||
|
/*@cc_on(function(m,c){var z="abbr|article|aside|audio|canvas|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video";function n(d){for(var a=-1;++a<o;)d.createElement(i[a])}function p(d,a){for(var e=-1,b=d.length,j,q=[];++e<b;){j=d[e];if((a=j.media||a)!="screen")q.push(p(j.imports,a),j.cssText)}return q.join("")}var g=c.createElement("div");g.innerHTML="<z>i</z>";if(g.childNodes.length!==1){var i=z.split("|"),o=i.length,s=RegExp("(^|\\s)("+z+")",
|
||||||
|
"gi"),t=RegExp("<(/*)("+z+")","gi"),u=RegExp("(^|[^\\n]*?\\s)("+z+")([^\\n]*)({[\\n\\w\\W]*?})","gi"),r=c.createDocumentFragment(),k=c.documentElement;g=k.firstChild;var h=c.createElement("body"),l=c.createElement("style"),f;n(c);n(r);g.insertBefore(l,
|
||||||
|
g.firstChild);l.media="print";m.attachEvent("onbeforeprint",function(){var d=-1,a=p(c.styleSheets,"all"),e=[],b;for(f=f||c.body;(b=u.exec(a))!=null;)e.push((b[1]+b[2]+b[3]).replace(s,"$1.iepp_$2")+b[4]);for(l.styleSheet.cssText=e.join("\n");++d<o;){a=c.getElementsByTagName(i[d]);e=a.length;for(b=-1;++b<e;)if(a[b].className.indexOf("iepp_")<0)a[b].className+=" iepp_"+i[d]}r.appendChild(f);k.appendChild(h);h.className=f.className;h.innerHTML=f.innerHTML.replace(t,"<$1font")});m.attachEvent("onafterprint",
|
||||||
|
function(){h.innerHTML="";k.removeChild(h);k.appendChild(f);l.styleSheet.cssText=""})}})(this,document);@*/
|
|
@ -37,6 +37,9 @@
|
||||||
|
|
||||||
<xsl:call-template name="links" />
|
<xsl:call-template name="links" />
|
||||||
|
|
||||||
|
<xsl:comment>[if lt IE 9]>
|
||||||
|
<script src="<xsl:value-of select="$baseurl"/>script/ie-html5.js" type="text/javascript"></script>
|
||||||
|
<![endif]</xsl:comment>
|
||||||
<xsl:if test="/page/calendar-summary">
|
<xsl:if test="/page/calendar-summary">
|
||||||
<xsl:call-template name="make-script-tag">
|
<xsl:call-template name="make-script-tag">
|
||||||
<xsl:with-param name="name" select="'calendar'"/>
|
<xsl:with-param name="name" select="'calendar'"/>
|
||||||
|
|
Loading…
Reference in New Issue