PageSourceSearch

https://ebilim.isito.kg/assets/js/party.js

js isito.kg collected 2026-10-08 07:23:01 UTC 2,234 bytes, 53 lines download raw bytes

1document.addEventListener("DOMContentLoaded", function () {
2    const authPageWrapper = document.querySelector(".auth-page-wrapper");
3    const background_1 = document.getElementById("party_background_1");
4    const background_2 = document.getElementById("party_background_2");
5    const background_3 = document.getElementById("party_background_3");
6    const partyHat = document.getElementById("party_hat");
7    const hatImage = document.createElement("img");
8
9    const today = new Date();
10    const currentYear = today.getFullYear();
11
12    const startNewYear = new Date(`${currentYear}-12-15`);
13    const endNewYear = new Date(`${currentYear}-01-15`);
14   
15
16    const isNewYear = (today >= startNewYear ||  today <= endNewYear);
17    if (isNewYear) {
18        background_1.classList.add("ftco-section", "snow1");
19        background_2.classList.add("snow2");
20        background_3.classList.add("snow3");
21        authPageWrapper.classList.remove("auth-bg-cover");
22        hatImage.src = "/lib/image/shapka13.svg";
23        hatImage.alt = "Santa Hat";
24        hatImage.classList.add("party_hat_santa-image");
25        partyHat.appendChild(hatImage);
26    }
27
28    const isKalpak = (today.getMonth() === 2 && (today.getDate() === 4 || today.getDate() === 5));
29    if (isKalpak) {
30        hatImage.src = "/img/kalpak.png";
31        hatImage.alt = "Santa Hat";
32        hatImage.classList.add("party_hat_kalpak-image");
33        partyHat.appendChild(hatImage);
34    }
35
36    const isValentinesDay = (today.getMonth() === 1 && today.getDate() === 14);
37    if (isValentinesDay) {
38        authPageWrapper.classList.remove("auth-bg-cover");
39        authPageWrapper.classList.add("valentine_background");
40    }
41
42    const isFirstSpringDay = (today.getMonth() === 2 && today.getDate() === 1);
43    if (isFirstSpringDay) {
44        authPageWrapper.classList.remove("auth-bg-cover");
45        authPageWrapper.classList.add("snowdrop_background");
46    }
47
48    const is8march = (today.getMonth() === 2 && (today.getDate() === 7 || today.getDate() === 8));
49    if (is8march) {
50        authPageWrapper.classList.remove("auth-bg-cover");
51        authPageWrapper.classList.add("eight_march_background");
52    }
53});

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.