1/* document ready */ 2jQuery(document).ready(function() { 3 // Toggle Mobile Menu 4 // jQuery( '.navbar-toggle' ).on('click', function(e) { 5 // e.preventDefault(); 6 // mobileMenu(); 7 // }); 8 // jQuery( '.dropdown-item.active' ).on('click', function() { 9 // mobileMenu(); 10 // }); 11 // mobile configs 12 if (jQuery(window).width() < 992) { 13 // adding main menu data toggles for mobile drop down 14 jQuery('.dropdown-toggle').each(function() { 15 jQuery( this ).attr('data-toggle', 'dropdown'); 16 }); 17 jQuery( '#top-right-menu .menu-item-has-children > a' ).on('click', function(e) { 18 e.preventDefault(); 19 jQuery( this ).toggleClass('show-sub'); 20 }); 21 } 22}); 23/* document ready */ 24 25/* window ready */ 26jQuery(window).on('load', function() { 27 initAddClass(); 28}); 29/* window ready */ 30 31function initAddClass() { 32 var win = jQuery(window); 33 var fixedClass = 'fixed-position'; 34 var stickyTop = jQuery('.header-frame').offset().top; 35 var stickyHeight = jQuery('.header-frame').outerHeight(); 36 var header = jQuery('#header'); 37 var fixedSpacer = jQuery('#fixed-spacer'); 38 39 function onScroll() { 40 if (win.scrollTop() >= stickyTop) { 41 header.addClass(fixedClass); 42 fixedSpacer.css('height', stickyHeight+'px'); 43 } else { 44 header.removeClass(fixedClass); 45 fixedSpacer.css('height', '0'); 46 } 47 } 48 onScroll(); 49 win.on('scroll resize orientationchange', onScroll); 50} 51// function mobileMenu() { 52// jQuery('body').toggleClass('no-overflow'); 53// var alertHeight = jQuery('#alert-bar').outerHeight(); 54// var navbarHeight = jQuery('.navbar-header').outerHeight(); 55// var menuHeight = alertHeight + navbarHeight; 56// jQuery('#site-main-nav').css('max-height', 'calc(100vh - '+menuHeight+'px)'); 57// jQuery('.navbar-toggler').toggleClass('open'); 58// jQuery('#nav-icon').toggleClass('open'); 59// }
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.