{I" class:ETI"ProcessedAsset;FI"logical_path;TI"libs/h5utils.js;FI" pathname;TI"R/Users/zigomir/development/rubber_ring/app/assets/javascripts/libs/h5utils.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+³ÖtQI" length;Ti½I" digest;TI"%df65696188c0ff3eecf141d966b9f5c1;FI" source;TI"½// For discussion and comments, see: http://remysharp.com/2009/01/07/html5-enabling-script/ /*@cc_on'abbr article aside audio canvas details figcaption figure footer header hgroup mark menu meter nav output progress section summary time video'.replace(/\w+/g,function(n){document.createElement(n)})@*/ var addEvent = (function () { if (document.addEventListener) { return function (el, type, fn) { if (el && el.nodeName || el === window) { el.addEventListener(type, fn, false); } else if (el && el.length) { for (var i = 0; i < el.length; i++) { addEvent(el[i], type, fn); } } }; } else { return function (el, type, fn) { if (el && el.nodeName || el === window) { el.attachEvent('on' + type, function () { return fn.call(el, window.event); }); } else if (el && el.length) { for (var i = 0; i < el.length; i++) { addEvent(el[i], type, fn); } } }; } })(); (function () { var pre = document.createElement('pre'); pre.id = "view-source" // private scope to avoid conflicts with demos addEvent(window, 'click', function (event) { if (event.target.hash == '#view-source') { // event.preventDefault(); if (!document.getElementById('view-source')) { // pre.innerHTML = ('\n\n' + document.documentElement.innerHTML + '\n').replace(/[<>]/g, function (m) { return {'<':'<','>':'>'}[m]}); var xhr = new XMLHttpRequest(); // original source - rather than rendered source xhr.onreadystatechange = function () { if (this.readyState == 4 && this.status == 200) { pre.innerHTML = this.responseText.replace(/[<>]/g, function (m) { return {'<':'<','>':'>'}[m]}); prettyPrint(); } }; document.body.appendChild(pre); // really need to be sync? - I like to think so xhr.open("GET", window.location, true); xhr.send(); } document.body.className = 'view-source'; var sourceTimer = setInterval(function () { if (window.location.hash != '#view-source') { clearInterval(sourceTimer); document.body.className = ''; } }, 200); } }); })(); ;TI"dependency_digest;TI"%5c51cdb4e668d8a286476695e2554e31;FI"required_paths;T[I"R/Users/zigomir/development/rubber_ring/app/assets/javascripts/libs/h5utils.js;FI"dependency_paths;T[{I" path;TI"R/Users/zigomir/development/rubber_ring/app/assets/javascripts/libs/h5utils.js;FI" mtime;TI"2013-04-22T08:20:35+02:00;TI" digest;TI"%7a0d41b0da1c5ad1b68ab5837ed4ddc3;FI" _version;TI"%a3b89b66a8471f3e75abb239e3b35c7d;F