1export default class Countdown{constructor(target){this.selector=target||".js-countdown";this.init(this.selector)}init(target){$(target).each(function(){var timer;var $timerWrapper=$(this);var deadline=$(this).data("deadline");var totalTime=$(this).data("total-time");timer=setInterval(function(){var deadline=$timerWrapper.data("deadline");var timer=$timerWrapper.find(".timer").text();if(!timer)createTimer($timerWrapper);timeBetweenDates(deadline,$timerWrapper)},1E3);function createTimer(timerTarget){timerTarget.html("\x3cp class\x3d'timer'\x3e\x3c/p\x3e")} 2function timeBetweenDates(toDate,target){var dateEntered=toDate;if(dateEntered<=0)location.reload();else{var seconds=Math.floor(dateEntered/1E3);var minutes=Math.floor(seconds/60);var hours=Math.floor(minutes/60);var days=Math.floor(hours/24);minutes%=60;seconds%=60;if(minutes<10)minutes="0"+minutes;if(minutes==0)minutes="00";target.find(".timer").text(hours+":"+minutes+" h");target.data("deadline",target.data("deadline")-1E3)}}})}};
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.