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}); 40 41jQuery(document).ready(function($){ 42 // Scroll (in pixels) after which the "To Top" link is shown 43 var offset = 400, 44 //Scroll (in pixels) after which the "back to top" link opacity is reduced 45 offset_opacity = 1200, 46 //Duration of the top scrolling animation (in ms) 47 scroll_top_duration = 700, 48 //Get the "To Top" link 49 $back_to_top = $('.mia-backtotop'); 50 51 //Visible or not "To Top" link 52 $(window).scroll(function(){ 53 ( $(this).scrollTop() > offset ) ? $back_to_top.addClass('top-is-visible') : $back_to_top.removeClass('top-is-visible top-fade-out'); 54 if( $(this).scrollTop() > offset_opacity ) { 55 $back_to_top.addClass('top-fade-out'); 56 } 57 }); 58 59 //Smoothy scroll to top 60 $back_to_top.on('click', function(event){ 61 event.preventDefault(); 62 $('body,html').animate({ 63 scrollTop: 0 , 64 }, scroll_top_duration 65 ); 66 }); 67 68}); 69 70 71(function($) { 72 73 //* Make sure JS is enabled 74 document.documentElement.className = "js"; 75 76 $(document).ready( function() { 77 78 //* Run 0.25 seconds after document ready for any instances viewable on load 79 setTimeout( function() { 80 animateObject(); 81 }, 250); 82 83 }); 84 85 $(window).scroll( function() { 86 87 //* Run on scroll 88 animateObject(); 89 90 }); 91 92 function animateObject() { 93 94 //* Define your object via class 95 var object = $( '.fadeup-effect' ); 96 97 //* Loop through each object in the array 98 $.each( object, function() { 99 100 var windowHeight = $(window).height(), 101 offset = $(this).offset().top, 102 top = offset - $(document).scrollTop(), 103 percent = Math.floor( top / windowHeight * 100 ); 104 105 106 if ( percent < 80 ) { 107 108 $(this).addClass( 'fadeInUp' ); 109 110 } 111 }); 112 } 113 114})(jQuery); 115 116 117jQuery(function( $ ){ 118 119 $(window).scroll(function () { 120 if ($(window).scrollTop() > $(window).height()/.4) { 121 $('.adjacent-entry-pagination').fadeIn(); 122 } else { 123 $('.adjacent-entry-pagination').fadeOut(); 124 } 125 }); 126 127});
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.