1 /** 2 * Contus Support Interactive. 3 * 4 * NOTICE OF LICENSE 5 * 6 * This source file is subject to the EULA 7 * that is bundled with this package in the file PRICE COUNTDOWN-LICENSE.txt. 8 * 9 * ================================================================= 10 * MAGENTO EDITION USAGE NOTICE 11 * ================================================================= 12 * This package designed for Magento 1.4.x and 1.5.x COMMUNITY edition 13 * Contus Support does not guarantee correct work of this package 14 * on any other Magento edition except Magento 1.4.x and 1.5.x COMMUNITY edition. 15 * ================================================================= 16 */ 17 18 if (typeof(BackColor)=="undefined") 19 BackColor = "white"; 20 if (typeof(ForeColor)=="undefined") 21 ForeColor= "black"; 22 if (typeof(DisplayFormat)=="undefined") 23 DisplayFormat = "<span class='days'>%%D%%</span><span class='hours'>%%H%%</span><span class='mins'>%%M%%</span><span class='secs'>%%S%%</span>"; 24 if (typeof(CountActive)=="undefined") 25 CountActive = true; 26 if (typeof(FinishMessage)=="undefined") 27 FinishMessage = ""; 28 if (typeof(CountStepper)!="number") 29 CountStepper = -1; 30 if (typeof(LeadingZero)=="undefined") 31 LeadingZero = true; 32 CountStepper = Math.ceil(CountStepper); 33 if (CountStepper == 0) 34 CountActive = false; 35 var SetTimeOutPeriod = (Math.abs(CountStepper)-1)*1000 + 990; 36 function calcage(secs, num1, num2) { 37 s = ((Math.floor(secs/num1)%num2)).toString(); 38 if (LeadingZero && s.length < 2) 39 s = "0" + s; 40 return "<b>" + s + "</b>"; 41 } 42 function CountBack(secs,iid,j) { 43 if (secs < 0) { 44 document.getElementById(iid).innerHTML = FinishMessage; 45 document.getElementById('caption'+j).style.display = "none"; 46 document.getElementById('heading'+j).style.display = "none"; 47 return; 48 } 49 DisplayStr = DisplayFormat.replace(/%%D%%/g, calcage(secs,86400,100000)); 50 DisplayStr = DisplayStr.replace(/%%H%%/g, calcage(secs,3600,24)); 51 DisplayStr = DisplayStr.replace(/%%M%%/g, calcage(secs,60,60)); 52 DisplayStr = DisplayStr.replace(/%%S%%/g, calcage(secs,1,60)); 53 document.getElementById(iid).innerHTML = DisplayStr; 54 if (CountActive) 55 setTimeout(function(){CountBack((secs+CountStepper),iid,j)}, SetTimeOutPeriod); 56 }
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.