1 2 3$(document).ready(function() { 4 5 $('.nav-item-level-1 .more').on('click', function(event) { 6 7 8 if (window.matchMedia('(max-width: 1019px)').matches) { 9 10 event.preventDefault(); 11 event.stopPropagation(); 12 // $(this).toggleClass("submenu-opened"); 13 14 var elem = $(this).parent().find('> ul'); 15 16 $(this).parent().parent().find('> li > ul').each(function() { 17 $(this).not(elem).slideUp('fast'); 18 $(this).parent().not(elem.parent()).removeClass('open'); 19 }); 20 21 $(this).parent().toggleClass('open'); 22 elem.slideToggle('fast'); 23 24 } else { 25 26 } 27 28 }); 29 30 31 $('.navbar-toggler').click(function() { 32 console.log('toggled'); 33 $('body').toggleClass('nav-opened') 34 }); 35 //console.log( $('.nav-level-1 .nav-item-level-1.dropdown') ); 36 37 // $('.nav-level-1 .dropdown').on('mouseover', function(event) { 38 // event.preventDefault(); 39 // event.stopPropagation(); 40 // $(this).toggleClass("open"); 41 // // $(this).toggleClass("submenu-opened"); 42 // $(this).parent().find('> ul').slideToggle('fast'); 43 // }); 44});
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.