PageSourceSearch

https://gaza-aid-data.gov.il/scripts/MiniSite/MiniSiteCountUp.js?v=248baca6-3b7a-4354-ad40-21158ca11729

js gaza-aid-data.gov.il collected 2026-10-02 04:13:17 UTC 2,602 bytes, 89 lines download raw bytes

1addEventListener('load', (event) => {
2    
3    var link = document.createElement('link');
4
5    link.type = "text/css";
6    link.rel = "stylesheet";
7    link.href = "/css/MiniSiteCountUp.min.css?v=123e4567-e89b-12d3-a456-426614174000";
8
9    document.head.appendChild(link);
10
11    const HE = {
12        days: 'ימים',
13        hours: 'שעות',
14        minutes: 'דקות',
15        seconds: 'שניות',
16    }
17
18    const EN = {
19        days: 'Days',
20        hours: 'Hours',
21        minutes: 'Minutes',
22        seconds: 'Seconds',
23    }
24
25    var htmlLang = document.querySelector('html').getAttribute('lang');
26
27    const TEXTS = (htmlLang === 'he') ? HE : EN;
28
29    function updateCountUp() {
30        const now = new Date();
31        const targetDate = new Date('2023-10-07T06:20:00');
32        const difference = now - targetDate;
33
34        const seconds = Math.floor((difference / 1000) % 60);
35        const minutes = Math.floor((difference / (1000 * 60)) % 60);
36        const hours = Math.floor((difference / (1000 * 60 * 60)) % 24);
37        const days = Math.floor(difference / (1000 * 60 * 60 * 24));
38
39        const padNumber = (num) => {
40            return num.toString().padStart(2, '0');
41        };
42
43        const values = [padNumber(days), padNumber(hours), padNumber(minutes), padNumber(seconds)];
44
45        const countupElements = document.querySelectorAll('.mst-countup');
46
47        countupElements.forEach((countupElement) => {
48            const countupWrapper = countupElement.querySelector('.mst-countup-wrapper');
49
50            if (countupWrapper) {
51                countupWrapper.querySelectorAll('.mst-countup-value').forEach((element, index) => {
52                    element.textContent = values[index];
53                });
54
55                countupWrapper.querySelectorAll('.mst-countup-label').forEach((element, index) => {
56                    element.textContent = TEXTS[Object.keys(TEXTS)[index]];
57                });
58            }
59        });
60    }
61
62    function startCountUp() {
63        updateCountUp();
64        intervalId = setInterval(updateCountUp, 1000);
65    }
66
67    function stopCountUp() {
68        clearInterval(intervalId);
69    }
70
71    startCountUp();
72
73
74    // cleanup
75    const observer = new MutationObserver((mutations) => {
76        mutations.forEach((mutation) => {
77            if (!document.getElementById('countup')) {
78                stopCountUp();
79            }
80        });
81    });
82
83    observer.observe(document.body, {
84        childList: true,
85        subtree: true
86    });
87
88
89})

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.