1/** 2* Price increment/discount by groups, categories and prices 3* 4* NOTICE OF LICENSE 5* 6* This product is licensed for one customer to use on one installation (test stores and multishop included). 7* Site developer has the right to modify this module to suit their needs, but can not redistribute the module in 8* whole or in part. Any other use of this module constitues a violation of the user agreement. 9* 10* DISCLAIMER 11* 12* NO WARRANTIES OF DATA SAFETY OR MODULE SECURITY 13* ARE EXPRESSED OR IMPLIED. USE THIS MODULE IN ACCORDANCE 14* WITH YOUR MERCHANT AGREEMENT, KNOWING THAT VIOLATIONS OF 15* PCI COMPLIANCY OR A DATA BREACH CAN COST THOUSANDS OF DOLLARS 16* IN FINES AND DAMAGE A STORES REPUTATION. USE AT YOUR OWN RISK. 17* 18* @author idnovate 19* @copyright 2023 idnovate 20* @license See above 21*/ 22 23function displayCountdown(countdown, countdown_selector, today, day_txt, hour_txt, minute_txt, second_txt) 24{ 25 let countDownDate = Date.parse(countdown.replace(/ /g,"T")+'Z'); 26 let now = Date.parse(today.replace(/ /g,"T")+'Z'); 27 28 var x = setInterval(function() { 29 var distance = countDownDate - now; 30 let days = Math.floor(distance / (1000 * 60 * 60 * 24)); 31 let hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); 32 let minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); 33 let seconds = Math.floor((distance % (1000 * 60)) / 1000); 34 35 $(countdown_selector).each(function() { 36 $(this).html(days + day_txt + ' ' + hours + hour_txt + ' ' + minutes + minute_txt + ' ' + seconds + second_txt); 37 }); 38 39 if (distance < 0) { 40 clearInterval(x); 41 $(countdown_selector).html(""); 42 } 43 now += 1000; 44 } 45 , 1000); 46}
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.