PageSourceSearch

https://kawin77jp.com/themes/3/js/global.js?v=2.1.0.3%20Currency%20for%20LCAI%20&%20Telegram%20Bot%20Updates

js kawin77jp.com collected 2026-10-10 00:01:14 UTC 16,239 bytes, 588 lines download raw bytes

1'use strict';
2
3var Slider = new slider();
4
5function slider() {
6    init();
7
8    function init() {
9        document_ready();
10    }
11
12    function document_ready() {
13        $(document).ready(function () {
14            homeSlider();
15            lottoSwiper();
16            gameCategorySlider();
17			progGameSwiper();
18            mobileGamesSwiper();
19        });
20    }
21
22    function homeSlider() {
23        var swiper = new Swiper('.main-slider', {
24            preloadImages: false,
25            lazy: true,
26            loop: true,
27            slidesPerView: 1,
28            autoplay: {
29                delay: 3000,
30                disableOnInteraction: false,
31            },
32            pagination: {
33                el: '.swiper-pagination',
34                dynamicBullets: true,
35            },
36            navigation: {
37                nextEl: '.swiper-button-next',
38                prevEl: '.swiper-button-prev',
39            },
40        });
41    }
42
43    function lottoSwiper() {
44        var swiper = new Swiper('.lotto-swiper', {
45            loop: true,
46            slidesPerView: 5,
47            centeredSlides: true,
48            autoplay: {
49                delay: 3000,
50                disableOnInteraction: false,
51            },
52            breakpoints: {
53                1600: {
54                    slidesPerView: 5,
55                    spaceBetween: 20,
56                },
57                1300: {
58                    slidesPerView: 5,
59                    spaceBetween: 20,
60                },
61                768: {
62                    slidesPerView: 3,
63                    spaceBetween: 10,
64                },
65                425: {
66                    slidesPerView: 2,
67                    spaceBetween: 10,
68                },
69                375: {
70                    slidesPerView: 1,
71                    spaceBetween: 10,
72                },
73                320: {
74                    slidesPerView: 1,
75                    spaceBetween: 10,
76                },
77            }
78        });
79    }
80
81    function gameCategorySlider() {
82        var swiper = new Swiper('.game-category-slider', {
83            loop: true,
84            slidesPerView: 1,
85            autoplay: {
86                delay: 3000,
87                disableOnInteraction: false,
88            },
89            pagination: {
90                el: '.swiper-pagination',
91                dynamicBullets: true,
92            },
93            preloadImages: false,
94            lazy: true
95        });
96    }
97
98	function progGameSwiper() {
99		var swiper = new Swiper('.prog-game-swiper', {
100			slidesPerView: 3,
101			slidesPerColumn: 2,
102			slidesPerColumnFill: 'row',
103			direction: 'horizontal',
104			spaceBetween: 10,
105			observer: true,
106			observeParents: true,
107			pagination: {
108				el: '.swiper-pagination',
109				clickable: true,
110			},
111		});
112    }
113
114    function mobileGamesSwiper() {
115        var swiper = new Swiper('.mobile-games-swiper', {
116            loop: false,
117            slidesPerView: 3,
118            preloadImages: false,
119            lazy: true,
120            spaceBetween: 10,
121            autoplay: {
122                delay: 3000,
123                disableOnInteraction: false,
124            },
125            pagination: {
126                el: '.swiper-pagination',
127                dynamicBullets: true,
128                clickable: true,
129            },
130            breakpoints: {
131                768: {
132                    slidesPerView: 5,
133                    spaceBetween: 15,
134                },
135            }
136        });
137    }
138
139}
140
141var Bank = new bank();
142
143function bank() {
144    init();
145
146    function init() {
147        document_ready();
148    }
149
150    function document_ready() {
151        $(document).ready(function () {
152            bankSlider();
153            progressBar();
154        });
155    }
156
157    function bankSlider() {
158        var swiper = new Swiper('.pembarayan-swiper', {
159            slidesPerView: 4,
160            slidesPerColumn: 2,
161            slidesPerColumnFill: 'row',
162            direction: 'horizontal',
163            spaceBetween: 10,
164            autoplay: {
165                delay: 2000,
166            },
167            pagination: {
168                el: '.swiper-pagination',
169                clickable: true,
170            },
171        });
172    }
173
174    function progressBar() {
175        $('.progress-bar').each(function () {
176            var min = $(this).attr('aria-valuemin');
177            var max = $(this).attr('aria-valuemax');
178            var now = $(this).attr('aria-valuenow');
179            var siz = (now - min) * 100 / (max - min);
180            $(this).css('width', siz + '%');
181        });
182    }
183}
184
185var Game = new game();
186
187function game()
188{
189	init();
190
191	function init()
192	{
193		document_ready();
194	}
195
196	function document_ready()
197	{
198		$(document).ready(function(){
199            customerProductGameSlider();
200            gameFavoritSwiper();
201			providerFavoritSwiper();
202		});
203    }
204
205    function customerProductGameSlider()
206    {
207        var customerProductSwiper = new Swiper('.slider-cstmr', {
208            slidesPerView: 1,
209            autoplay: 
210            {
211                delay: 2000,
212            },
213            pagination: 
214            {
215                el: '.swiper-pagination',
216                clickable: true,
217            },
218        });
219    }
220
221    function gameFavoritSwiper()
222    {
223        var gameSwiper = new Swiper('.slide-game-favorit', {
224            slidesPerView: 1,
225            autoplay: 
226            {
227                 delay: 2000,
228            },
229            pagination: 
230            {
231                el: '.swiper-pagination',
232                clickable: true,
233            },
234            navigation: 
235            {
236                nextEl: '.swiper-button-next',
237                prevEl: '.swiper-button-prev',
238            },
239        });
240    }
241
242    function providerFavoritSwiper()
243    {
244        var providerSwiper = new Swiper('.slide-prov-favorit', {
245            slidesPerView: 1,
246            autoplay: 
247            {
248                delay: 2000,
249            },
250            pagination: 
251            {
252                el: '.swiper-pagination',
253                clickable: true,
254            },
255            navigation: 
256            {
257                nextEl: '.swiper-button-next',
258                prevEl: '.swiper-button-prev',
259            },
260        });
261    }
262}
263
264filterPromoSelection("all");
265promoFilterActive();
266
267function filterPromoSelection(c) {
268    var x, i;
269    x = document.getElementsByClassName("promo-item-holder");
270    if (c == "all") c = "";
271    for (i = 0; i < x.length; i++) {
272        filterPromoRemoveClass(x[i], "show");
273        if (x[i].className.indexOf(c) > -1) filterPromoAddClass(x[i], "show");
274    }
275}
276
277function filterPromoAddClass(element, name) {
278    var i, arr1, arr2;
279    arr1 = element.className.split(" ");
280    arr2 = name.split(" ");
281    for (i = 0; i < arr2.length; i++) {
282        if (arr1.indexOf(arr2[i]) == -1) {element.className += " " + arr2[i];}
283    }
284}
285
286function filterPromoRemoveClass(element, name) {
287    var i, arr1, arr2;
288    arr1 = element.className.split(" ");
289    arr2 = name.split(" ");
290    for (i = 0; i < arr2.length; i++) {
291        while (arr1.indexOf(arr2[i]) > -1) {
292        arr1.splice(arr1.indexOf(arr2[i]), 1);
293        }
294    }
295    element.className = arr1.join(" ");
296}
297
298function promoFilterActive() {
299    // Add active class to the current button (highlight it)
300    var btnFilterGame = $("#promo-filter .filter-promo");
301
302    for (var i = 0; i < btnFilterGame.length; i++) {
303        btnFilterGame[i].addEventListener("click", function () {
304            var current = document.getElementsByClassName("active");
305            if (current.length > 0) {
306                current[0].className = current[0].className.replace("active", "");
307            }
308            this.className += " active";
309        });
310    }
311}
312
313filterGameSelection("all");
314gameFilterActive();
315
316function filterGameSelection(c) {
317    var x, i;
318    x = document.getElementsByClassName("slot-game-item");
319    if (c == "all") c = "";
320    for (i = 0; i < x.length; i++) {
321        filterGameRemoveClass(x[i], "show");
322        if (x[i].className.indexOf("x" + c) > -1) filterGameAddClass(x[i], "show");
323    }
324}
325
326function filterGameAddClass(element, name) {
327    var i, arr1, arr2;
328    arr1 = element.className.split(" ");
329    arr2 = name.split(" ");
330    for (i = 0; i < arr2.length; i++) {
331        if (arr1.indexOf(arr2[i]) == -1) {
332            element.className += " " + arr2[i];
333        }
334    }
335}
336
337function filterGameRemoveClass(element, name) {
338    var i, arr1, arr2;
339    arr1 = element.className.split(" ");
340    arr2 = name.split(" ");
341    for (i = 0; i < arr2.length; i++) {
342        while (arr1.indexOf(arr2[i]) > -1) {
343            arr1.splice(arr1.indexOf(arr2[i]), 1);
344        }
345    }
346    element.className = arr1.join(" ");
347}
348
349
350
351function gameFilterActive() {
352    // Add active class to the current button (highlight it)
353    const btnFilterGame = $("#game-filter .filter-tab");
354
355    for (var i = 0; i < btnFilterGame.length; i++) {
356        btnFilterGame[i].addEventListener("click", function () {
357            var current = document.getElementsByClassName("active");
358            if (current.length > 0) {
359                current[0].className = current[0].className.replace("active", "");
360            }
361            this.className += " active";
362        });
363    }
364}
365
366'use strict';
367
368var Local = new local();
369
370function local() {
371    init();
372
373    function init() {
374        document_ready();
375    }
376
377    function document_ready() {
378        $(function () {
379            homeJackpot();
380            flagToggle();
381            headerDate();
382            sideNav();
383            sideNavOff();
384            floatingContact();
385            bonusMultiSelect();
386            progressBonus();
387            initMarquee();
388        });
389    }
390
391    function homeJackpot() {
392        var amount = document.getElementById('amount');
393        var start = new Date("February 1, 2020 00:00:00");
394
395        var current;
396        update();
397
398        setInterval(update, 100);
399
400        function update() {
401            var current = ((new Date() - start) / (24 * 3600 * 2000));
402            current = current * 99999999;
403            if (amount) amount.innerText = formatMoney(current);
404        }
405
406        function formatMoney(amount) {
407            var dollars = Math.floor(amount).toString().split('');
408            var cents = (Math.round((amount % 1) * 100) / 100).toString().split('.')[1];
409            if (typeof cents == 'undefined') {
410                cents = '00';
411            } else if (cents.length == 1) {
412                cents = cents + '0';
413            }
414
415            var i = 0;
416
417            var str = '';
418            for (i = dollars.length - 1; i >= 0; i--) {
419                str += dollars.splice(0, 1);
420                if (i % 3 == 0 && i != 0) str += ',';
421            }
422            return str;
423        }
424    }
425
426    function flagToggle() {
427        $(function () {
428            $('.header-flag').on("click", function (event) {
429                event.stopPropagation();
430                $(".flag-dropdown").slideToggle("fast");
431            });
432            $(".flag-dropdown").on("click", function (event) {
433                event.stopPropagation();
434            });
435        });
436
437        $(document).on("click", function () {
438            $(".flag-dropdown").hide();
439        });
440    }
441
442    function headerDate() {
443        var datetime = null,
444            date = null;
445
446        var update = function () {
447            date = moment(new Date())
448            datetime.html(date.format('ddd, MMMM D, h:mm:ss A'));
449        };
450
451        $(function () {
452            datetime = $('#headerTime')
453            update();
454            setInterval(update, 1000);
455        });
456    }
457
458    function sideNav() {
459        const $menuLeft = $('.sidenav');
460        const $nav_list = $('.sidenav-toggle');
461        $nav_list.on("click", function () {
462            $(this).toggleClass('active');
463            $menuLeft.toggleClass('sidenav-open');
464            document.getElementById("overlay").style.display = "block";
465        });
466    }
467
468    function sideNavOff() {
469        const $menuLeft = $('.sidenav');
470        const $overlay = $('#overlay');
471        const $sidenav_login = $('.sidenav-login');
472        const $sidenav_balance = $('.wallet-amount')
473        const $sidenav_voucher = $('.sidenav-voucher')
474
475        $overlay.on("click", function () {
476            $menuLeft.removeClass('sidenav-open');
477            document.getElementById("overlay").style.display = "none";
478        });
479
480        $sidenav_login.on("click", function () {
481            $menuLeft.removeClass('sidenav-open');
482            document.getElementById("overlay").style.display = "none";
483        });
484
485        $sidenav_balance.on("click", function () {
486            $menuLeft.removeClass('sidenav-open');
487            document.getElementById("overlay").style.display = "none";
488        });
489
490        $sidenav_voucher.on("click", function () {
491            $menuLeft.removeClass('sidenav-open');
492            document.getElementById("overlay").style.display = "none";
493        });
494    }
495
496    function floatingContact() {
497        $(document).ready(function () {
498            $('#floating-contact-widget').click(function (event) {
499                event.stopPropagation();
500                $('#floating-contact-widget .floating-contact__item, #floating-contact-widget .btn-close').toggleClass('show-contact-info');
501                $('#floating-contact-widget .icons, #floating-contact-widget .static').toggleClass('hide');
502            });
503            $(".floating-contact__item").on("click", function (event) {
504                event.stopPropagation();
505            });
506        });
507
508        $(document).on("click", function () {
509            $('#floating-contact-widget .floating-contact__item, #floating-contact-widget .btn-close').removeClass('show-contact-info');
510            $('#floating-contact-widget .icons, #floating-contact-widget .static').removeClass('hide');
511        });
512    }
513
514    function bonusMultiSelect() {
515        $('.multi-select-game').selectpicker({
516            liveSearch: true,
517            actionsBox: true,
518            width: '100%',
519            virtualScroll: 50,
520        });
521    }
522
523    function progressBonus() {
524        $('.prog-bonus').each(function () {
525            const startColor = '#72b9ff';
526            const endColor = '#0081ff';
527
528            var circle = new ProgressBar.Circle(this, {
529                color: '#666666',
530                easing: 'linear',
531                strokeWidth: 10,
532                trailWidth: 10,
533                duration: 1500,
534                text: {
535                    value: '0%'
536                }
537            });
538
539            var value = ($(this).attr('value') / 100);
540
541            circle.animate(value, {
542                from: {
543                    color: startColor
544                },
545                to: {
546                    color: endColor
547                },
548                step: function (state, circle, bar) {
549                    circle.path.setAttribute('stroke', state.color);
550                    circle.setText((circle.value() * 100).toFixed(0) + '%');
551                }
552            });
553        });
554    }
555    function initMarquee() {
556    const mqs = document.querySelectorAll('.marquee');
557    if (!mqs.length) return;
558    if (!document.getElementById('mq-style')) {
559        const s = document.createElement('style');
560        s.id = 'mq-style';
561        s.innerHTML = `
562            @keyframes mq-run {
563                0% { transform: translateX(0); }
564                100% { transform: translateX(-100%); }
565            }
566            .mq-content {
567                display: inline-block;
568                padding-left: 100%;
569                white-space: nowrap;
570                will-change: transform;
571            }
572        `;
573        document.head.appendChild(s);
574    }
575    mqs.forEach(mq => {
576        const txt = mq.innerText.trim();
577        if (!txt) return;
578        const containerItem = mq.closest('.container-item');
579        if (containerItem) {
580            containerItem.style.minWidth = "0";
581            containerItem.style.overflow = "hidden";
582        }
583        mq.style.cssText = "display:block; overflow:hidden; width:100%; min-width:0; flex:1;";
584        const duration = (txt.length * 0.15) + 15;
585        mq.innerHTML = `<span class="mq-content" style="animation: mq-run ${duration}s linear infinite;">${txt}</span>`;
586    });
587}
588}

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.