PageSourceSearch

https://atu.edu.tr/timerscript.js

js atu.edu.tr collected 2026-10-02 05:53:16 UTC 899 bytes, 31 lines download raw bytes

1const daysEl = document.getElementById("days");
2const hoursEl = document.getElementById("hours");
3const minsEl = document.getElementById("mins");
4const secondsEl = document.getElementById("seconds");
5
6const newYears = "23 April 2026";
7
8function countdown() {
9    const newYearsDate = new Date(newYears);
10    const currentDate = new Date();
11
12    const totalSeconds = (newYearsDate - currentDate) / 1000;
13
14    const days = Math.floor(totalSeconds / 3600 / 24);
15    const hours = Math.floor(totalSeconds / 3600) % 24;
16    const mins = Math.floor(totalSeconds / 60) % 60;
17    const seconds = Math.floor(totalSeconds) % 60;
18
19    daysEl.innerHTML = days;
20    hoursEl.innerHTML = formatTime(hours);
21    minsEl.innerHTML = formatTime(mins);
22    secondsEl.innerHTML = formatTime(seconds);
23}
24
25function formatTime(time) {
26    return time < 10 ? `0${time}` : time;
27}
28
29countdown();
30
31setInterval(countdown, 1000);

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.