1 2; /* Start:"a:4:{s:4:"full";s:74:"/local/components/forus/banner/templates/.default/script.js?17908310391889";s:6:"source";s:59:"/local/components/forus/banner/templates/.default/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 3(function () { 4 function run() { 5 var offset = 8 * 60 * 60 * 1000; 6 var timers = []; 7 var intervalId = null; 8 9 document.querySelectorAll('.countdown').forEach(function (elem) { 10 if (elem.dataset.timerInit) return; 11 elem.dataset.timerInit = "Y"; 12 13 var dateStr = elem.dataset.downdate; 14 var output = elem.querySelector('.countdownStr'); 15 if (!dateStr || !output) return; 16 17 var end = new Date(dateStr).getTime() + offset; 18 if (isNaN(end)) return; 19 20 timers.push({ elem: elem, output: output, end: end, active: true }); 21 }); 22 23 if (timers.length === 0) return; 24 25 timers.forEach(function (t) { 26 t.output.classList.add('nowrap'); 27 }); 28 29 function updateAll() { 30 var now = Date.now() + offset; 31 32 timers.forEach(function (t) { 33 if (!t.active) return; 34 35 var diff = t.end - now; 36 37 if (diff <= 0) { 38 t.active = false; 39 var message = document.createTextNode("ÐейÑÑвие акÑии законÑилоÑÑ"); 40 t.elem.innerHTML = ''; 41 t.elem.appendChild(message); 42 return; 43 } 44 45 var d = Math.floor(diff / 86400000); 46 var h = Math.floor((diff % 86400000) / 3600000); 47 var m = Math.floor((diff % 3600000) / 60000); 48 var s = Math.floor((diff % 60000) / 1000); 49 50 t.output.textContent = d + "д : " + h + "Ñ : " + m + "м : " + s + "Ñ"; 51 }); 52 } 53 54 updateAll(); 55 intervalId = setInterval(updateAll, 1000); 56 } 57 58 if (document.readyState === "loading") { 59 document.addEventListener("DOMContentLoaded", run); 60 } else { 61 run(); 62 } 63})(); 64 65/* End */ 66;; /* /local/components/forus/banner/templates/.default/script.js?17908310391889*/
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.