GREYHOUND BET

0%
'); //iFrameWindow.close(); if (iFrameWindow.body === null) {// null in IE iFrameWindow.write(""); } iFrameBody = iFrameWindow.body; iFrame.contentWindow.addEventListener('error', function (e) { e.preventDefault(); }, false); if (fileData.css !== 'import') { for (var f in fileData.css) { this.hashSum.css[f] = fileData.css[f]; } for (var f in this.hashSum.css) { if (!webApp.isAndroid && !webApp.isWPhone) { this.sum += this.hashSum.css[f]; this.count++; } //setTimeout(function (f) { var link = document.createElement('link'); link.type = 'text/css'; link.rel = 'stylesheet'; link.href = f; link.media = 'all'; if (!webApp.isAndroid) { link.onload = this.fileReady.bind(this); } iFrameBody.appendChild(link); //}, context.count*20, f); } } if (fileData.js != 'import') { for (var f in this.hashSum.js) { if (!webApp.isAndroid_2) { this.sum += this.hashSum.js[f]; this.count++; //setTimeout(function (f) { var script = document.createElement('script'); script.setAttribute('src', f); script.setAttribute('type', 'text/javascript'); script.async = false; script.defer = true; script.onload = this.fileReady.bind(this); iFrameBody.appendChild(script); //}, context.count*20, f); } else { document.write(''); } } } if (!this.count) { this.fileCreate(); } //console.log('Sum:'); //console.dir(this.hashSum); }, fileReady: function (e) { this.count--; var url = e.target.src || e.target.href; /*console.log(url); var d = new Date(); console.log(d.getMinutes() + ' : ' + d.getSeconds() + ' : ' + d.getMilliseconds());*/ var bytes = this.hashSum.js[url] || this.hashSum.css[url]; this.percent += Math.round(bytes * 100 / this.sum); this.percent > 98 ? this.percent = 100 : this.percent = this.percent; this.bar.style.width = this.percent + '%'; this.val.innerHTML = this.percent + '%'; if (!this.count) { //console.log('Load!'); this.fileCreate(); } }, fileCreate: function () { var docFragment = document.createDocumentFragment(); var head = document.head || document.getElementsByTagName('head')[0]; for (var f in this.hashSum.css) { var link = document.createElement('link'); link.type = 'text/css'; link.rel = 'stylesheet'; link.href = f; link.media = 'all'; docFragment.appendChild(link); } head.appendChild(docFragment); if (!webApp.isAndroid_2) { var docFragment = document.createDocumentFragment(); var body = document.getElementsByTagName('body')[0] || document.documentElement; for (var f in this.hashSum.js) { var script = document.createElement('script'); script.setAttribute('src', f); script.setAttribute('type', 'text/javascript'); script.defer = true; script.async = false; // if ( !webApp.isIE10 ) { // script.async = false; // } // else { // script.setAttribute('async', false); // } docFragment.appendChild(script); } body.appendChild(docFragment); } window.scrollTo(0, 1); setTimeout(function () { webApp.fl.box.innerHTML = ''; body.removeChild(webApp.fl.box); }, 500); } };