1/** 2* Template Name: ComingSoon 3* Updated: Jul 27 2023 with Bootstrap v5.3.1 4* Template URL: https://bootstrapmade.com/comingsoon-free-html-bootstrap-template/ 5* Author: BootstrapMade.com 6* License: https://bootstrapmade.com/license/ 7*/ 8(function() { 9 "use strict"; 10 11 /** 12 * Easy selector helper function 13 */ 14 const select = (el, all = false) => { 15 el = el.trim() 16 if (all) { 17 return [...document.querySelectorAll(el)] 18 } else { 19 return document.querySelector(el) 20 } 21 } 22 23 /** 24 * Countdown timer 25 */ 26 let countdown = select('.countdown'); 27 const output = countdown.innerHTML; 28 29 const countDownDate = function() { 30 let timeleft = new Date(countdown.getAttribute('data-count')).getTime() - new Date().getTime(); 31 32 let days = Math.floor(timeleft / (1000 * 60 * 60 * 24)); 33 let hours = Math.floor((timeleft % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); 34 let minutes = Math.floor((timeleft % (1000 * 60 * 60)) / (1000 * 60)); 35 let seconds = Math.floor((timeleft % (1000 * 60)) / 1000); 36 37 countdown.innerHTML = output.replace('%d', days).replace('%h', hours).replace('%m', minutes).replace('%s', seconds); 38 } 39 countDownDate(); 40 setInterval(countDownDate, 1000); 41 42})()
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.