1// on load function 2window.onload = function() { 3 if (document.getElementById('fullscreen-menu-popup-nav')) { 4 document.getElementById('fullscreen-menu-popup-nav').style.overflow = "hidden"; 5 } 6} 7 8// on ready function 9jQuery_navigation(function() { 10 jQuery_navigation('.open-nav-menu, .close-nav-menu, .open-close-toggle').on('click', function() { 11 if (jQuery_navigation(this).hasClass("open-nav-menu")) { 12 openNav(popupStyleView); 13 } else if (jQuery_navigation(this).hasClass("close-nav-menu")) { 14 jQuery_navigation('.fullscreen-menu-icon.open-close-toggle.active').removeClass('active'); 15 closeNav(popupStyleView); 16 } else { 17 if (jQuery_navigation(this).hasClass('active')) { 18 closeNav(popupStyleView); 19 jQuery_navigation(this).removeClass('active'); 20 } else { 21 jQuery_navigation(this).addClass('active'); 22 openNav(popupStyleView); 23 } 24 } 25 }); 26 27 jQuery_navigation('.nav-menu-icon').on('click', function() { 28 // Set the effect type 29 var effect = 'slide'; 30 31 // Set the options for the effect type chosen 32 var options = { 33 direction : popupDirection 34 }; 35 36 // Set the duration (default: 400 milliseconds) 37 var duration = 500; 38 39 jQuery_navigation('#menu-popup-nav').toggle(effect, options, duration); 40 jQuery_navigation(this).toggleClass('active') 41 }); 42 43}); 44 45function hideUnhideSubPages(page) { 46 if (page.hasAttribute('href')) { 47 page = page.nextElementSibling; 48 } 49 var liElement = page.parentElement; 50 if (liElement.children.length > 2) { 51 var ulElement = liElement.children[2]; 52 if (ulElement) { 53 if (ulElement.style.display === 'block') { 54 jQuery_navigation(ulElement).slideUp(); 55 jQuery_navigation(page).removeClass('fa-caret-up'); 56 jQuery_navigation(page).addClass('fa-caret-down'); 57 } else { 58 jQuery_navigation(ulElement).slideDown(); 59 ulElement.style.display = 'block'; 60 jQuery_navigation(page).removeClass('fa-caret-down'); 61 jQuery_navigation(page).addClass('fa-caret-up'); 62 } 63 } 64 } 65} 66 67function openNav(popupStyleView) { 68 document.getElementById('fullscreen-menu-popup-nav').style.overflow = "auto"; 69 document.body.style.overflow = "hidden"; 70 if (popupStyleView === "left-to-right-style") { 71 document.getElementById("fullscreen-menu-popup-nav").style.width = "100%"; 72 } else { 73 document.getElementById("fullscreen-menu-popup-nav").style.height = "100%"; 74 } 75} 76 77function closeNav(popupStyleView) { 78 document.getElementById('fullscreen-menu-popup-nav').style.overflow = "hidden"; 79 document.body.style.overflow = "auto"; 80 if (popupStyleView === "left-to-right-style") { 81 document.getElementById("fullscreen-menu-popup-nav").style.width = "0%"; 82 } else { 83 document.getElementById("fullscreen-menu-popup-nav").style.height = "0%"; 84 } 85} 86 87jQuery_navigation(document).ready(function(){
88 var windowWidth = jQuery_navigation(window).width(); 89 jQuery_navigation(window).resize(function(){ 90 if (jQuery_navigation(window).width() != windowWidth) { 91 if(jQuery_navigation('#menu-popup-nav') !== undefined && jQuery_navigation('#menu-popup-nav') !== null ){ 92 jQuery_navigation('#menu-popup-nav').hide(); 93 if(jQuery_navigation("#navigation_menu_open_button") !== undefined && jQuery_navigation("#navigation_menu_open_button") !== null){ 94 jQuery_navigation("#navigation_menu_open_button").removeClass('active'); 95 } 96 } 97 } 98 }); 99});
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.