From 97125f7ae248cde8aa2043a6cba22dd72816867a Mon Sep 17 00:00:00 2001 From: Tom Laermans Date: Sun, 5 Feb 2012 19:16:55 +0000 Subject: [PATCH] source html5shim javascript locally, fixes FS#177 git-svn-id: http://www.observium.org/svn/observer/trunk@2857 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/index.php | 3 ++- html/js/html5.js | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 html/js/html5.js diff --git a/html/index.php b/html/index.php index 442832669a..3d71078365 100755 --- a/html/index.php +++ b/html/index.php @@ -150,8 +150,9 @@ if ($config['page_refresh']) { echo("","article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block}","audio{display:none}","canvas,video{display:inline-block;*display:inline;*zoom:1}","[hidden]{display:none}audio[controls]{display:inline-block;*display:inline;*zoom:1}","mark{background:#FF0;color:#000}",""].join(""),h.insertBefore(j.lastChild,h.firstChild)}return a}};e.shivDocument(b),a.html5=e;if(c||!a.attachEvent)return;a.attachEvent("onbeforeprint",function(){if(a.html5.supportsXElement||!b.namespaces)return;b.namespaces.shiv||b.namespaces.add("shiv");var c=-1,d=new RegExp("^("+a.html5.elements.join("|")+")$","i"),e=b.getElementsByTagName("*"),g=e.length,j,k=i(h(function(a,b){var c=[],d=a.length;while(d)c.unshift(a[--d]);d=b.length;while(d)c.unshift(b[--d]);c.sort(function(a,b){return a.sourceIndex-b.sourceIndex}),d=c.length;while(d)c[--d]=c[d].styleSheet;return c}(b.getElementsByTagName("style"),b.getElementsByTagName("link"))));while(++c