PageSourceSearch

https://www.kingbet.net/wp-content/themes/nx-theme-child/sticky-bo…/sticky-bottom-navigation-public.js?v=1.0.4

js kingbet.net collected 2026-10-02 20:14:34 UTC 1,453 bytes, 34 lines download raw bytes

1document.addEventListener('DOMContentLoaded', function(){
2    const sticky_bottom_navigation_outter_container = document.querySelector(".nx-bottom-sticky-menu");
3
4    if (sticky_bottom_navigation_outter_container) {
5        fetch('/nx-bottom-nav/')
6            .then(response => response.json())
7            .then(response => {
8                if (response) {
9                    // Insert raw HTML into the container
10                    sticky_bottom_navigation_outter_container.insertAdjacentHTML('beforeend', response);
11                    document.dispatchEvent(new Event('observeNewImages'));
12                    sticky_bottom_navigation_outter_container.classList.remove('is-hidden');
13                }
14            })
15            .catch(e => console.error("Sticky menu fetch failed:", e));
16    }
17
18    document.addEventListener('click', function(e){
19        if(e.target.classList.contains("bottom-nav-toggle")){
20            let expandableNavID = e.target.getAttribute('data-menu')
21            let bottomNav = document.querySelector('.bottom-child-nav[data-menu="'+expandableNavID+'"]');
22            if(bottomNav){
23                bottomNav.classList.add('active');
24            }
25        }
26
27        if(e.target.classList.contains("close-bottom-nav")){
28            let bottomNav = document.querySelector('.bottom-child-nav.active');
29            if(bottomNav){
30                bottomNav.classList.remove('active');
31            }
32        }
33    });
34});

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.