1jQuery(function( $ ){ 2 3 4 $( '.nav-primary .genesis-nav-menu, .nav-secondary .genesis-nav-menu' ).addClass( 'responsive-menu' ).before('<div class="responsive-menu-icon"></div>'); 5 6 $( '.responsive-menu-icon' ).click(function(){ 7 $(this).next( '.nav-primary .genesis-nav-menu, .nav-secondary .genesis-nav-menu' ).slideToggle(); 8 }); 9 10 $( window ).resize(function(){ 11 if ( window.innerWidth > 800 ) { 12 $( '.nav-primary .genesis-nav-menu, .nav-secondary .genesis-nav-menu, nav .sub-menu' ).removeAttr( 'style' ); 13 $( '.responsive-menu > .menu-item' ).removeClass( 'menu-open' ); 14 } 15 }); 16 17 $( '.responsive-menu > .menu-item' ).click(function(event){ 18 if ( event.target !== this ) 19 return; 20 $(this).find( '.sub-menu:first' ).slideToggle(function() { 21 $(this).parent().toggleClass( 'menu-open' ); 22 }); 23 }); 24 25 $('#main-nav-search-link').click(function(){ 26 $('.search-div').show('1200'); 27 }); 28 29 $("*", document.body).click(function(event){ 30 // event.stopPropagation(); 31 var el = $(event.target); 32 var gsfrm = $(el).closest('form'); 33 if(el.attr('id') !='main-nav-search-link' && el.attr('role') != 'search' && gsfrm.attr('role') != 'search'){ 34 $('.search-div').hide('1200'); 35 } 36 }); 37 38}); 39 40jQuery(document).ready(function($){ 41 // Scroll (in pixels) after which the "To Top" link is shown 42 var offset = 400, 43 //Scroll (in pixels) after which the "back to top" link opacity is reduced 44 offset_opacity = 1200, 45 //Duration of the top scrolling animation (in ms) 46 scroll_top_duration = 700, 47 //Get the "To Top" link 48 $back_to_top = $('.harper-backtotop'); 49 50 //Visible or not "To Top" link 51 $(window).scroll(function(){ 52 ( $(this).scrollTop() > offset ) ? $back_to_top.addClass('top-is-visible') : $back_to_top.removeClass('top-is-visible top-fade-out'); 53 if( $(this).scrollTop() > offset_opacity ) { 54 $back_to_top.addClass('top-fade-out'); 55 } 56 }); 57 58 //Smoothy scroll to top 59 $back_to_top.on('click', function(event){ 60 event.preventDefault(); 61 $('body,html').animate({ 62 scrollTop: 0 , 63 }, scroll_top_duration 64 ); 65 }); 66 67}); 68 69 70(function($) { 71 72 //* Make sure JS is enabled 73 document.documentElement.className = "js"; 74 75 $(document).ready( function() { 76 77 //* Run 0.25 seconds after document ready for any instances viewable on load 78 setTimeout( function() { 79 animateObject(); 80 }, 250); 81 82 }); 83 84 $(window).scroll( function() { 85 86 //* Run on scroll 87 animateObject(); 88 89 }); 90 91 function animateObject() { 92 93 //* Define your object via class 94 var object = $( '.fadeup-effect' ); 95 96 //* Loop through each object in the array 97 $.each( object, function() { 98 99 var windowHeight = $(window).height(), 100 offset = $(this).offset().top, 101 top = offset - $(document).scrollTop(), 102 percent = Math.floor( top / windowHeight * 100 ); 103 104 105 if ( percent < 80 ) { 106 107 $(this).addClass( 'fadeInUp' ); 108 109 } 110 }); 111 } 112 113})(jQuery); 114 115 116jQuery(function( $ ){ 117 118 $(window).scroll(function () { 119 if ($(window).scrollTop() > $(window).height()/.4) { 120 $('.adjacent-entry-pagination').fadeIn(); 121 } else { 122 $('.adjacent-entry-pagination').fadeOut(); 123 } 124 }); 125 126 127 // Sticky Header options 128 var options = { 129 offset: '.sticky-start' 130 }; 131 132 // Initialize with options 133 var header = new Headhesive('.site-header', options); 134 135 136});
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.