1$(function() { 2 3 /** 4 * Mobile Nav 5 * 6 * Hubspot Standard Toggle Menu 7 */ 8 9 $('.custom-menu-primary').addClass('js-enabled'); 10 11 /* Mobile button with three lines icon */ 12 $('.custom-menu-primary .hs-menu-wrapper').before('<div class="mobile-trigger"><i></i></div>'); 13 14 /* Uncomment for mobile button that says 'MENU' 15 $('.custom-menu-primary .hs-menu-wrapper').before('<div class="mobile-trigger">MENU</div>'); 16 */ 17 18 $('.custom-menu-primary .flyouts .hs-item-has-children > a').after(' <div class="child-trigger"></div>'); 19 $('.mobile-trigger').click(function() { 20 $(this).next('.custom-menu-primary .hs-menu-wrapper').slideToggle(250); 21 $('body').toggleClass('mobile-open'); 22 $('.child-trigger').removeClass('child-open'); 23 $('.hs-menu-children-wrapper').slideUp(250); 24 return false; 25 }); 26 27 $('.child-trigger').click(function() { 28 $(this).parent().siblings('.hs-item-has-children').find('.child-trigger').removeClass('child-open'); 29 $(this).parent().siblings('.hs-item-has-children').find('.hs-menu-children-wrapper').slideUp(250); 30 $(this).next('.hs-menu-children-wrapper').slideToggle(250); 31 $(this).next('.hs-menu-children-wrapper').children('.hs-item-has-children').find('.hs-menu-children-wrapper').slideUp(250); 32 $(this).next('.hs-menu-children-wrapper').children('.hs-item-has-children').find('.child-trigger').removeClass('child-open'); 33 $(this).toggleClass('child-open'); 34 return false; 35 }); 36 37 $('.custom-header-top .language').click(function() { 38 $('body').toggleClass('language-open'); 39 }); 40 $('.custom-search .search .search-btn').click(function() { 41 $(this).parent().parent().next('div#search-mobile-wrapper').toggleClass('search-open'); 42 }); 43 /* 44 $('.c-footer__main-items li a').click(function(event) { 45 event.preventDefault(); 46 $(this).parent().parent().find(".accordion-menu").toggleClass('click-open'); 47 }); 48 */ 49 50 $(document).ready(function(){ 51 $("body").click(function(){ 52 $("li.hs-item-has-children").removeClass('clicked'); 53 }); 54 $('.hs-item-has-children > a').click(function(event){ 55 event.preventDefault(); 56 event.stopPropagation(); 57 $(this).parent().siblings().removeClass('clicked'); 58 $(this).parent("li.hs-item-has-children").toggleClass('clicked'); 59 }); 60 $('.custom-menu-primary .hs-menu-wrapper > ul > li > ul').click(function(event){ 61 event.stopPropagation(); 62 $(this).parent("li.hs-item-has-children").addClass('clicked'); 63 }); 64 }); 65 $('.custom-header-top .search .search-btn ').click(function() { 66 $('#search-mobile-wrapper').slideToggle(); 67 $('body').toggleClass('search-click'); 68 }); 69 70}); 71 72 73$('.next-posts-link.load-more').click(function(e) { 74 e.preventDefault(); 75 $('.blog-listing-wrapper:not(.simple-listing)').jscroll({ 76 autoTrigger: true, 77 contentSelector: '.blog-listing-wrapper', 78 nextSelector: 'a.next-posts-link:last' 79 }); 80 $(this).stop(); 81 });
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.