1$(document).ready(function (e) { 2 document.querySelector('.second-button').addEventListener('click', function () { 3 4 document.querySelector('.animated-icon2').classList.toggle('open'); 5 }); 6}); 7 8$(document).ready(function () { 9 10 $('ul.nav li.dropdown > a').click(function (e) { 11 var $target = $(e.target); 12 var activeNav = $(this).siblings(); 13 if ($target.is('b') || $(this).attr('href') == '#') { 14 // The anchor tag only has one sibling - the submenu it controls 15 $(this).siblings().toggle("fast"); 16 17 // Now walk up the parent chain: 18 // - look for other li's (menu items at the same level) 19 // - hide any lower down ul's (submenus) they may have. Use find else you leave traces of children's child menus. 20 $(this).parentsUntil('ul.nav', 'li').siblings().find('ul').hide(); 21 return false; 22 } 23 }); 24 document.addEventListener('click', function (event) { 25 $('.dropdown-menu').parentsUntil('ul.nav', 'li').siblings().find('ul').hide(); 26 return false; 27 }); 28 $(window).scroll(function () { 29 $('.dropdown-menu').hide(); 30 }); 31 $(document).ready(function () { 32 $('#Body').css('overflow', 'auto'); 33 var navMobile = document.getElementById('Body'); 34 var styleNavMobile = window.getComputedStyle(navMobile); 35 $('.animated-icon2').click(function (e) { 36 if (styleNavMobile.overflow === 'auto') { 37 e.preventDefault(); 38 $('#Body').css('overflow', 'hidden'); 39 } 40 else if (styleNavMobile.overflow === 'hidden') { 41 e.preventDefault(); 42 $('#Body').css('overflow', 'auto'); 43 } 44 }); 45 }); 46});
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.