PageSourceSearch

https://xmati.ai/wp-content/themes/astra/assets/new/js/counter.js

js xmati.ai collected 2026-10-05 15:17:07 UTC 2,465 bytes, 74 lines download raw bytes

1$(function () {
2    $('.counter').each(function () {
3        $(this).prop('Counter', 0).animate({
4            Counter: $(this).text()
5        }, {
6            duration: 4000,
7            easing: 'swing',
8
9            step: function (now) {
10                $(this).text(Math.ceil(now));
11            }
12        });
13    });
14    $(document).on('hover', '.card-container', function () {
15        $('.card-container').removeClass('active');
16        $(this).addClass('active');
17    });
18});
19
20// wow js
21new WOW().init();
22
23
24// comingsoon page countdown js
25$(function () {
26    if (document.getElementById("days") !== null) {
27        const second = 1000,
28            minute = second * 60,
29            hour = minute * 60,
30            day = hour * 24;
31
32        let today = new Date(),
33            dd = String(today.getDate()).padStart(2, "0"),
34            mm = String(today.getMonth() + 1).padStart(2, "0"),
35            yyyy = today.getFullYear(),
36            nextYear = '2025',
37            dayMonth = "9/24/",
38            birthday = dayMonth + yyyy;
39
40        today = mm + "/" + dd + "/" + yyyy;
41        if (today > birthday) {
42            birthday = dayMonth + nextYear;
43        }
44        //end
45
46        const countDown = new Date(birthday).getTime(),
47            x = setInterval(function () {
48                const now = new Date().getTime(),
49                    distance = countDown - now;
50
51                let days = Math.floor(distance / (day));
52                let hours = Math.floor((distance % (day)) / (hour));
53                let minutes = Math.floor((distance % (hour)) / (minute));
54                let seconds = Math.floor((distance % (minute)) / second);
55
56                document.getElementById("days").innerText = days,
57                    document.getElementById("hours").innerText = hours,
58                    document.getElementById("minutes").innerText = minutes,
59                    document.getElementById("seconds").innerText = seconds;
60
61                //do something later when date is reached
62                if (distance < 0) {
63                    clearInterval(x);
64                    var items = document.querySelectorAll(".compaign_countdown");
65                    for (var i = 0; i <= items.length; i++) {
66                        if (typeof items[i] !== 'undefined') {
67                            items[i].style.display = "none";
68                        }
69                    }
70                }
71                //seconds
72            }, 0)
73    }
74}());

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.