1/** 2 * This script adds the jquery effects to the Altitude Pro Theme. 3 * 4 * @package Altitude\JS 5 * @author StudioPress 6 * @license GPL-2.0+ 7 */ 8 9jQuery(function( $ ){ 10 11 if( $( document ).scrollTop() > 0 ){ 12 $( '.site-header' ).addClass( 'dark' ); 13 } 14 15 // Add opacity class to site header. 16 $( document ).on('scroll', function(){ 17 18 if ( $( document ).scrollTop() > 0 ){ 19 $( '.site-header' ).addClass( 'dark' ); 20 21 } else { 22 $( '.site-header' ).removeClass( 'dark' ); 23 } 24 25 }); 26 27 28 /* Header Sticky Menu */ 29 $(window).scroll(function() { 30 var scroll = $(window).scrollTop(); 31 32 //>=, not <= 33 if (scroll >= 350) { 34 //clearHeader, not clearheader - caps H 35 $(".header-sticky-menu").addClass("sticky-on"); 36 } else { 37 $(".header-sticky-menu").removeClass("sticky-on"); 38 } 39 }); //missing ); 40 41 42 $(".header-sticky-menu .widget_nav_menu .widget-wrap div").prepend("<div class='responsive-menu-wrap'>Menu</div>"); 43 44 $(document).ready(function(){ 45 $(".responsive-menu-wrap").click(function(){ 46 $(".header-sticky-menu .widget_nav_menu .widget-wrap ul.menu").toggle(1000); 47 }); 48 }); 49 50 51 // For added search icon 52 $(".genesis-nav-menu .search-form").prepend("<div class='search-icon'></div>"); 53 54 55 // For Searcr bar 56 $('.genesis-nav-menu .search-form .search-icon').click(function () { 57 $('.genesis-nav-menu .search-form input[type="search"]').toggleClass('expanded'); 58 }); 59 60 61 62});
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.