PageSourceSearch

https://niccars.co.nz/wp-content/themes/automotive/template/layout/navigation_header/navigation_header.js

js niccars.co.nz collected 2026-10-04 21:28:49 UTC 1,233 bytes, 39 lines download raw bytes

1const menuToggle = document.getElementById('menuToggle');
2console.log("header navigation running");
3
4jQuery(menuToggle).on('click', function() {
5    jQuery(this).toggleClass('active');
6    var htmlEl = jQuery('html');
7    //var htmlWidth = jQuery('html').width(); // Get width of html element
8    if (htmlEl.hasClass('open_menu')){
9        //htmlEl.css('width', '');
10        htmlEl.removeClass('open_menu');
11        htmlEl.removeClass('open_sub_menu');
12    } else {
13        //htmlEl.width(htmlWidth);
14        htmlEl.addClass('open_menu');
15    }
16    
17  });
18  
19function handleResize() {
20    jQuery('html').css('width', ''); // Remove inline width setting from html element
21    console.log('get spaceer info on resize');
22    setSpacer();
23  }
24
25
26function setSpacer(){
27  var headerHeight = jQuery("#header-container").height();
28  console.log("headerHeight" + headerHeight);
29  jQuery("#content_spacer").animate({ height: headerHeight }, 500); // 1000 milliseconds = 1 second
30}
31  // Attach resize event handler
32jQuery(window).on('resize', function() {
33    handleResize(); // Call the function on resize event
34});
35
36jQuery(document).ready(function() {
37  console.log('get spaceer info');
38  setSpacer();
39});

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.