PageSourceSearch

https://service.essbay.de/_assets/1d08ad6d04e98e14156b3431099088f7…/Src/bootstrap.navbar.js?1743030309

js essbay.de collected 2026-10-04 13:25:11 UTC 2,429 bytes, 76 lines download raw bytes

1window.addEventListener('DOMContentLoaded', function () {
2
3	$('.navbar-submenu-toggle').click(function(event){
4        event.preventDefault();
5        // toggle is complete
6		if($(this).hasClass('bi-plus-circle')) {
7			$(this).removeClass('bi-plus-circle');
8			$(this).addClass('bi-dash-circle');
9		} else {
10			$(this).addClass('bi-plus-circle');
11			$(this).removeClass('bi-dash-circle');
12		}
13
14		// slide but hidden in desktop view afterwards...
15		//$(child).slideToggle("swing", function(){});
16    });
17
18	$('.navbar-submenu-toggle-no').click(function(event){
19        event.preventDefault();
20        // toggle is complete
21		if($(this).hasClass('bi-chevron-right')) {
22			$(this).removeClass('bi-chevron-right');
23			$(this).addClass('bi-chevron-down');
24		} else {
25			$(this).addClass('bi-chevron-right');
26			$(this).removeClass('bi-chevron-down');
27		}
28
29		// slide but hidden in desktop view afterwards...
30		//$(child).slideToggle("swing", function(){});
31    });
32
33	// mobile menu open
34	if(isMobile()) {
35		$('.nav-item.nav-item-ksw.active:not(.current)').each( function(){
36			$(this).children('.dropdown-menu').addClass('show');
37			$(this).children('.navbar-submenu-toggle-no').removeClass('bi-chevron-right');
38			$(this).children('.navbar-submenu-toggle-no').addClass('bi-chevron-down');
39		});
40	}
41
42	// mobile menu open
43	if(isMobile()) {
44		$('.nav-item.active:not(.current)').each( function(){
45			$(this).children('.dropdown-menu').addClass('show');
46			$(this).children('.navbar-submenu-toggle').removeClass('bi-plus-circle');
47			$(this).children('.navbar-submenu-toggle').addClass('bi-dash-circle');
48		});
49	}
50
51
52	const navbarCollapse = document.querySelectorAll('#mainnavigation.navbar-collapse');
53    navbarCollapse.forEach(
54        function (navbar) {
55			//
56			if($('#page-header').hasClass('navbar-fixed-top')) {
57				navbar.addEventListener('show.bs.collapse', function (event) {
58					if(event.target.id == 'mainnavigation') {
59						document.getElementById('page-header').classList.remove('navbar-fixed-top');
60						document.getElementById('body-bg').classList.remove('body-bg-top');
61						goTo('#body-bg');
62					}
63				});
64				navbar.addEventListener('hide.bs.collapse', function (event) {
65					if(event.target.id == 'mainnavigation') {
66						document.getElementById('page-header').classList.add('navbar-fixed-top');
67						document.getElementById('body-bg').classList.add('body-bg-top');
68					}
69				});
70			}
71        }
72    )
73
74
75});
76

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.