PageSourceSearch

https://felicia.md/bitrix/js/itdon.newyear/main.js?17660562342937

js felicia.md collected 2026-10-04 02:52:34 UTC 2,937 bytes, 90 lines download raw bytes

1ItDonNewYear = {
2    initOptions: function (params) {
3        this.active = params.activity;
4        this.hideGarland = params.hide_garland;
5        this.hideSnow = params.hide_snow;
6        this.shiftTop = params.shift_top;
7        this.hideGarlandMobile = params.hide_garland_mobile;
8        this.hideSnowBall = params.hide_snowball;
9    },
10    init: function (params) {
11        let isMobile;
12        isMobile = window.innerWidth < 1024;
13        this.initOptions(params);
14        if (this.active !== "Y") return;
15        if (this.hideGarland !== "Y") {
16            if (isMobile) {
17                if (this.hideGarlandMobile !== "Y") {
18                    this.getGarland();
19                }
20            } else {
21                this.getGarland();
22            }
23        }
24
25        if (this.hideSnow !== "Y") this.getSnow();
26    },
27
28    getGarland: function () {
29        let garland, garlandContainer, garlandNums;
30
31        garland = BX.create('DIV', {
32            props: { className: "garland" },
33            children: [
34                garlandContainer = BX.create('DIV', {
35                    props: { id: "itDon_garland", className: "garland_1" },
36                    children: [
37                        garlandNums = BX.create('DIV', {
38                            props: { className: "garland_nums" }
39                        })
40                    ],
41                    text: 1
42                })
43            ]
44        });
45        if (this.shiftTop) {
46            BX.style(garland, "margin-top", this.shiftTop + "px");
47        }
48
49        if (document.getElementById("panel") !== null) {
50            BX.insertAfter(garland, document.getElementById("panel"));
51        } else {
52            BX.prepend(garland, document.body);
53        }
54
55        function garlandSwitch() {
56            nums = garlandNums.innerHTML;
57            if (!nums) nums = 1;
58            if (nums == 1) {
59                garlandContainer.className = 'garland_1';
60                garlandNums.innerHTML = '2'
61            }
62            if (nums == 2) {
63                garlandContainer.className = 'garland_2';
64                garlandNums.innerHTML = '3'
65            }
66            if (nums == 3) {
67                garlandContainer.className = 'garland_3';
68                garlandNums.innerHTML = '1'
69            }
70        }
71        setInterval(garlandSwitch, 600);
72    },
73    getSnow: function () {
74        let showSnowBall;
75        showSnowBall = this.hideSnowBall !== "Y";
76
77        new Snow({
78            iconColor: '#a6e7ff',
79            showSnowBalls: showSnowBall,
80            showSnowBallsIsMobile: false,
81            showSnowflakes: true,
82            countSnowflake: 100,
83            snowBallsLength: 10,
84            snowBallIterations: 40,
85            snowBallupNum: 1,
86            snowBallIterationsInterval: 1000,
87            clearSnowBalls: 5000
88        });
89    }
90}

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.