PageSourceSearch

https://estatein.io/wp-content/themes/sport-theme-7mvip/assets/bongda7mnew/js/scripts.js?v=1790994664

js estatein.io collected 2026-10-10 00:31:22 UTC 4,771 bytes, 135 lines download raw bytes

1(function ($) {
2    $(document).ready(function () {
3        function setCookieWithDomain(key, value) {
4            const cleanedValue = value.trim().replace(/\s+/g, '');
5            const domain = '.' + location.hostname.replace(/^www\./, '');
6            const maxAge = 60 * 60 * 24 * 30; // 30 ngày
7            document.cookie = `${key}=${cleanedValue}; path=/; domain=${domain}; max-age=${maxAge}`;
8        }
9        
10        $('body').on('click', '.icon_setting_7mnew', function(e) {
11            e.stopPropagation();
12            $(this).toggleClass('active');
13            $('.content_setting').toggleClass('active');
14        });
15        
16        $('body').on('click','.setting_default .w7m_dropdown-toggle',function(e){
17           $(this).next().toggleClass('active'); 
18        });
19        
20        $('body').on('click','.setting_default .w7m_setting-timezone--item',function(e){
21            $('.w7m_setting-timezone--item').removeClass('is_active');
22            $(this).addClass('is_active');
23            let newText = '';
24            const text = $(this).text().trim();
25            if(text){
26                newText = 'GMT '+text;
27            }
28            $('.w7m_setting-timezone span').text(newText);
29            $('.w7m_dropdown-toggle').trigger('click');
30            const cleanedText = text.replace(/\s+/g, '');
31            
32            setCookieWithDomain('Time_Zone',cleanedText);
33
34
35        });
36        $('body').on('click', '.setting_default .w7m_radio', function(e) {
37            const $this = $(this);
38        
39            $this.siblings().find('.is_active').removeClass('is_active');
40
41            $this.find('.w7m_radio-dotted').addClass('is_active');
42
43            const $parentStyle = $this.closest('.w7m_filter_league');
44        
45            if ($parentStyle.length > 0) {
46                
47                const $allRadios = $parentStyle.find('.w7m_radio');
48                const indexData = $allRadios.index($this);
49        
50        
51                let datavalue = '';
52                if (indexData === 0) {
53                    datavalue = 'league';
54                } else if (indexData === 1) {
55                    datavalue = 'time';
56                } else {
57                    datavalue = '';
58                }
59                if (datavalue) {
60                    setCookieWithDomain('orderby', datavalue);
61                }
62            }
63            
64            const $parentStyleOdd = $this.closest('.w7m_filter_styleOdd');
65            
66            if ($parentStyleOdd.length > 0) {
67                
68                const $allRadios = $parentStyleOdd.find('.w7m_radio');
69                const indexData = $allRadios.index($this);
70        
71        
72                let datavalue = '';
73                if (indexData === 0) {
74                    datavalue = '4';
75                } else if (indexData === 1) {
76                    datavalue = '1';
77                } else if(indexData === 2){
78                    datavalue = '2';
79                } else if(indexData === 3){
80                    datavalue = '3';
81                } else if(indexData === 4){
82                    datavalue = '5';
83                } else {
84                    datavalue = '';
85                }
86                if (datavalue) {
87                    setCookieWithDomain('oddsType', datavalue);
88                }
89            }
90            
91            
92        });
93
94        $('body').on('click','.setting_default .w7m_setting-rate--item',function(e){
95            $(this).parent().find('.is_active').removeClass('is_active');
96            $(this).addClass('is_active');
97            const thisIndex = $(this).index();
98            let datavalue = ''
99            if(thisIndex === 0){
100                datavalue = '1x2';
101            }else if(thisIndex === 1){
102                datavalue = 'HDP';
103            }else if(thisIndex === 3){
104                datavalue = 'ou';
105            }else{
106                datavalue = ''
107            }
108            if (datavalue) {
109                setCookieWithDomain('oddsShow', datavalue);
110            }
111        });
112    
113        $(document).on('click', function(e) {
114            if (
115                !$(e.target).closest('.content_setting').length &&
116                !$(e.target).closest('.w7m_setting-timezone--item').length
117            ) {
118                $('.icon_setting_7mnew').removeClass('active');
119                $('.content_setting').removeClass('active');
120            }
121        });
122        
123        $('body').on('click','.close_setting_7mn',function(e){
124            $('.icon_setting_7mnew').trigger('click');
125        })
126        
127        
128        $('.widget-title').click(function () {
129            var widgetBody = $(this).closest('.sidebar_box');
130            widgetBody.toggleClass('hidden');
131        });
132        
133    });
134    
135})(jQuery);

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.