PageSourceSearch

https://volgatermy.ru/local/templates/thermae/include/popup-sale/script.js?17707511281656

js volgatermy.ru collected 2026-09-30 13:23:47 UTC 1,656 bytes, 42 lines download raw bytes

1$(document).ready(function(){
2	$('.js-scs-popup-sale-close').on('click', function(){
3		$('.scs-popup-sale').remove();
4
5		document.cookie = "popupSaleHidden=Y";
6	});
7
8	startStyledCountdown(window.countdownDate);
9});
10
11function startStyledCountdown(targetDate) {
12    const target = new Date(targetDate).getTime();
13    
14    function updateCountdown() {
15        const now = new Date().getTime();
16        const distance = target - now;
17        
18        if (distance < 0) {
19            document.getElementById('countdown-days').textContent = '00';
20            document.getElementById('countdown-hours').textContent = '00';
21            document.getElementById('countdown-minutes').textContent = '00';
22            document.getElementById('countdown-seconds').textContent = '00';
23            return;
24        }
25        
26        const days = Math.floor(distance / (1000 * 60 * 60 * 24));
27        const hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
28        const minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
29        const seconds = Math.floor((distance % (1000 * 60)) / 1000);
30
31        document.getElementById('countdown-days').textContent = days.toString().padStart(2, '0');
32        document.getElementById('countdown-hours').textContent = hours.toString().padStart(2, '0');
33        document.getElementById('countdown-minutes').textContent = minutes.toString().padStart(2, '0');
34        document.getElementById('countdown-seconds').textContent = seconds.toString().padStart(2, '0');
35        
36        if (distance > 0) {
37            requestAnimationFrame(updateCountdown);
38        }
39    }
40    
41    updateCountdown();
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.