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 $(".et_top_search").before('<div class="mobile-trigger"><span class="mobile_menu_bar mobile_menu_bar_toggle"></span></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"><i></i></div>');*/ 19 $('.mobile-trigger').click(function() { 20 $('.custom-menu-primary .hs-menu-wrapper').slideToggle(); 21 $('body').toggleClass('mobile-open'); 22 $('.child-trigger').removeClass('child-open'); 23 return false; 24 }); 25 26 $('.child-trigger').click(function() { 27 $(this).parent().siblings('.hs-item-has-children').find('.child-trigger').removeClass('child-open'); 28 $(this).parent().siblings('.hs-item-has-children').find('.hs-menu-children-wrapper').slideUp(); 29 $(this).next('.hs-menu-children-wrapper').slideToggle(); 30 $(this).next('.hs-menu-children-wrapper').children('.hs-item-has-children').find('.hs-menu-children-wrapper').slideUp(); 31 $(this).next('.hs-menu-children-wrapper').children('.hs-item-has-children').find('.child-trigger').removeClass('child-open'); 32 $(this).toggleClass('child-open'); 33 return false; 34 }); 35 36 $(".et_top_search").click(function() { 37 var c = $(".et_search_form_container"); 38 if (c.hasClass("et_pb_is_animating")) { 39 return 40 } 41 $(".et_menu_container").removeClass("et_pb_menu_visible et_pb_no_animation").addClass("et_pb_menu_hidden"); 42 c.removeClass("et_pb_search_form_hidden et_pb_no_animation").addClass("et_pb_search_visible et_pb_is_animating"); 43 setTimeout(function() { 44 $(".et_menu_container").addClass("et_pb_no_animation"); 45 c.addClass("et_pb_no_animation").removeClass("et_pb_is_animating") 46 }, 1000); 47 c.find("input").focus(); 48 a() 49 }); 50 51 function b() { 52 if ($(".et_search_form_container").hasClass("et_pb_is_animating")) { 53 return 54 } 55 $(".et_menu_container").removeClass("et_pb_menu_hidden et_pb_no_animation").addClass("et_pb_menu_visible"); 56 $(".et_search_form_container").removeClass("et_pb_search_visible et_pb_no_animation").addClass("et_pb_search_form_hidden et_pb_is_animating"); 57 setTimeout(function() { 58 $(".et_menu_container").addClass("et_pb_no_animation"); 59 $(".et_search_form_container").addClass("et_pb_no_animation").removeClass("et_pb_is_animating") 60 }, 1000) 61 } 62 $(".et_close_search_field").click(function() { b() }); 63 64 function a() { 65 var c = $(".et_search_form_container"); 66 var e = $("body"); 67 if (c.hasClass("et_pb_search_visible")) { 68 var d = $("#main-header").innerHeight() 69 } 70 } 71 $(window).scroll(function() { a() }); 72 $(document).mouseup(function(d) { 73 var c = $("#main-header"); 74 if ($(".et_menu_container").hasClass("et_pb_menu_hidden")) { 75 if (!c.is(d.target) && c.has(d.target).length === 0) { b() } 76 } 77 }); 78});
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.