1(function($) { 2 moveNewsletterSubmitBtnNextToInputText(); 3 4 $( ".menu-wrap:has(.pf-cssmenu-main-menu-dark)" ).addClass( "dark" ); 5 6 // Homepage arrow icon 7 // ------------------------------------ 8 $('.scroll-trigger a').on('click', function(e) { 9 e.preventDefault(); 10 $('html, body').animate({ 11 scrollTop: $('.home-search').outerHeight() 12 }, 1000); 13 }); 14 15 // Scroll to an anchor on the same page 16 // ------------------------------------ 17 $('a[href*="#"]:not(a[href="#"])').on('click', function() { 18 if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { 19 var target = $(this.hash); 20 target = target.length ? target : $('[id=' + this.hash.slice(1) +']') || $('[name=' + this.hash.slice(1) +']'); 21 if (target.length) { 22 $('html, body').animate({ 23 scrollTop: target.offset().top - 100 24 }, 1000); 25 return false; 26 } 27 } 28 }); 29 30 31 /* Move the Submit Btn Next to Input Text 32 ------------------------------------------------------------------ 33 * Find the submit button and moves it next to the input text. 34 */ 35 function moveNewsletterSubmitBtnNextToInputText() { 36 $newsletterForm = $('.newsletter-form'); 37 $newsletterFormInputText = $newsletterForm.find('.text-off, .text-on'); 38 $newsletterFormSubmit = $newsletterForm.parent().siblings('table').find('input[type="submit"]'); 39 // move the button to right of the input text 40 $newsletterFormInputText.after( $newsletterFormSubmit ); 41 $newsletterFormSubmit.css('marginLeft', '10px'); 42 } 43 44 $(window).on('load', function() { 45 // support for older browsers that do no support CSS "vh" 46 $('.home-search').css('min-height', $(window).height() ); 47 48 // AutoScroll to form error 49 if ( $('.form-error-1').length) { 50 $('html, body').animate({ 51 scrollTop: $('.form-error-1').offset().top - 100 52 }, 1000); 53 } 54 }); 55 56 $(window).on('resize', function() { 57 // support for older browsers that do no support CSS "vh" 58 $('.home-search').css('min-height', $(window).height() ); 59 }); 60})(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.