PageSourceSearch

https://raduga.kg/media/mod_vbs_boostrapmenu/js/boostrapmenu.js?0d709b0ebbe44ff3dc8c018d4de884db

js raduga.kg collected 2026-10-07 19:14:54 UTC 1,816 bytes, 44 lines download raw bytes

1document.addEventListener("DOMContentLoaded", function(){
2    //alert('domloaded');
3    // make it as accordion for smaller screens
4    if (window.innerWidth < 992) {
5
6        // close all inner dropdowns when parent is closed
7        document.querySelectorAll('.navbar .dropdown').forEach(function(everydropdown){
8            everydropdown.addEventListener('hidden.bs.dropdown', function () {
9                // after dropdown is hidden, then find all submenus
10                this.querySelectorAll('.submenu').forEach(function(everysubmenu){
11                    // hide every submenu as well
12                    everysubmenu.style.display = 'none';
13                });
14            })
15        });
16
17        document.querySelectorAll('.dropdown-menu a').forEach(function(element){
18            element.addEventListener('click', function (e) {
19                let nextEl = this.nextElementSibling;
20                if(nextEl && nextEl.classList.contains('submenu')) {
21                    // prevent opening link if link needs to open dropdown
22                    e.preventDefault();
23                    if(nextEl.style.display == 'block'){
24                        nextEl.style.display = 'none';
25                    } else {
26                        nextEl.style.display = 'block';
27                    }
28
29                }
30            });
31        })
32    }
33// end if innerWidth
34
35    jQuery('.dropdown').hover(function() {
36        jQuery(this).children('a.nav-link').addClass('show');
37        jQuery(this).children('div').children('ul.dropdown-menu').addClass('show');
38    },
39    function() {
40        jQuery(this).children('a.nav-link').removeClass('show');
41        jQuery(this).children('div').children('ul.dropdown-menu').removeClass('show');
42    });
43});
44// DOMContentLoaded  end

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.