1// Fixed header on scroll 2(function ($) { 3 $(window).scroll(function(){ 4 let sticky_header = $('header'); 5 let upper_header = $('#upper-header'); 6 let width = $(window).width(); 7 let sticky_mobileHeader = $('#mobile-header'); 8 scroll = $(window).scrollTop(); 9 10 if (scroll >= 50 && width >=1024) { 11 12 sticky_header.addClass('fixed'); 13 upper_header.addClass('fixed'); 14 } 15 else { 16 sticky_header.removeClass('fixed'); 17 upper_header.removeClass('fixed'); 18 } 19 20 if (scroll >= 50 && width <=1023) 21 { 22 sticky_mobileHeader.addClass('fixed'); 23 upper_header.addClass('fixed'); 24 sticky_header.addClass('mobile-fixed'); 25 } 26 else { 27 sticky_mobileHeader.removeClass('fixed'); 28 sticky_header.removeClass('mobile-fixed'); 29 } 30 }); 31 })(jQuery); 32 33// (function($) { 34// $(document).on('click', 'a[href^="#"]', function (event) { 35// event.preventDefault(); 36// 37// var headerSize = 80; 38// if ($('#post-48').length > 0) { 39// headerSize = 180; 40// } 41// 42// $('html, body').animate({ 43// scrollTop: $($.attr(this, 'href')).offset().top - headerSize 44// }, 500); 45// }); 46// })(jQuery); 47 48// (function(jQuery) { 49// if(!jQuery('.team-member-block')){ 50// var adjustAnchor = function() { 51// 52// var jQueryanchor = jQuery(':target'), 53// fixedElementHeight = 150; 54// 55// if (jQueryanchor.length > 0) { 56// jQuery('html, body') 57// .stop() 58// .animate({ 59// scrollTop: jQueryanchor.offset().top - fixedElementHeight 60// }, 500); 61// } 62// }; 63// 64// jQuery(window).on('hashchange load', function() { 65// adjustAnchor(); 66// }); 67// 68// jQuery('html, body').animate({ 69// scrollTop: jQuery(jQuery.attr(this, 'href')).offset().top - fixedElementHeight 70// }, 500); 71// } 72// })(jQuery); 73 74 75 (function ($) { 76 $('.mobile-menu-toggle').click(function() { 77 if ($('.mobile-menu-toggle').hasClass('is-active')) { 78 $('.mobile-menu-toggle').removeClass('is-active'); 79 $('#site-navigation').removeClass('is-active'); 80 $('.mobile-menu-toggle').attr('aria-expanded', 'false'); 81 } 82 else { 83 $('.mobile-menu-toggle').addClass('is-active'); 84 $('#site-navigation').addClass('is-active'); 85 $('.mobile-menu-toggle').attr('aria-expanded', 'true'); 86 } 87 }); 88 89 $('#primary-menu .menu-item > a').click(function(e) { 90 if ($('.mobile-menu-toggle').hasClass('is-active') && $('.mobile-menu-toggle').is(':visible') && $(this).parent().hasClass('menu-item-has-children')) { 91 $(this).parent().find('ul').addClass('mobile-show'); 92 93 e.preventDefault(); 94 } 95 }); 96 97 $('.sub-menu .back').click(function() { 98 console.log($('.mobile-show')); 99 $('.mobile-show').removeClass('mobile-show'); 100 }); 101 102 if($('header').hasClass('info-message')){ 103 $('ul.sub-menu.depth-0 ').addClass('message-showed') 104 } 105 106 $('.close-btn').on('click', function(e){ 107 e.preventDefault(); 108 $(this).parents('.message-container').addClass('close'); 109 $('header').removeClass('info-message'); 110 $('ul.sub-menu.depth-0 ').removeClass('message-showed') 111 112 }) 113 114 115 })(jQuery); 116 117 118 119 (function ($) { 120 $('.team-member-block .toggle-bio').on('click', function(e){ 121 e.preventDefault(); 122 $(this).parents('.team-member-block').toggleClass('open-bio'); 123 }) 124 $('.team-member-block .close-btn').on('click', function(e){ 125 126 $(this).parents('.team-member-block').removeClass('open-bio'); 127 128 }) 129 130 131 })(jQuery); 132 133 (function ($) { 134 $('#primary-menu > li.menu-item-type-custom > a').on('click', function(e){ 135 136 e.preventDefault(); 137 138 }) 139 140 })(jQuery); 141 142// equalize heights of elements with equal-height class 143 (function ($) { 144 if($('.equal-height').length>0){ 145 var maxheight = 0; 146 147 $('.equal-height').each(function () { 148 maxheight = ($(this).height() > maxheight ? $(this).height() : maxheight); 149 }); 150 $('.equal-height').height(maxheight); 151 } 152 })(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.