1(function ($) { 2 $(function () { 3 const BREAKPOINTS = { 4 md: 767, 5 sm: 575, 6 } 7 8 $(".usvote-menu-mobile-toggle").click(function () { 9 $('#navbar-main').slideToggle('fast', function () { 10 $(".usvote-menu-mobile-toggle").toggleClass('mobile-menu-active', $(this).is(':visible')); 11 }); 12 }); 13 14 // mobile main nav accordion 15 $('#block-usvf-main-menu ul.navbar-nav li.nav-item span.nav-link',).click(function () { 16 var $this = $(this); 17 var $parentLi = $this.parent('li.nav-item'); 18 var $liSiblings = $parentLi.siblings('li'); 19 var $childUl = $this.siblings('ul'); 20 21 if (Math.round($('body').width()) > BREAKPOINTS.md) { 22 return; 23 } 24 25 if ($childUl.is(':visible')) { 26 $childUl.removeAttr('style'); 27 } else { 28 $liSiblings.find('ul').removeAttr('style'); 29 $childUl.show(); 30 } 31 }); 32 }); 33})(jQuery);
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.