1( function( $ ) { 2 'use strict'; 3 4 $( document ).ready( function() { 5 6 $( '.is-menu a' ).on( 'click', function( e ) { 7 8 // Cancels the default actions. 9 e.stopPropagation(); 10 e.preventDefault(); 11 12 if ( 'static' === $( this ).parent().parent().css( 'position' ) ) { 13 $( this ).parent().parent().css( 'position', 'relative' ); 14 } 15 16 if ( $( this ).parent().hasClass( 'dropdown' ) ) { 17 $( this ).parent().find( 'form' ).fadeToggle(); 18 } else if ( $( this ).parent().hasClass( 'sliding' ) ) { 19 $( this ).parent().find( 'form' ).animate( { width: '310' } ); 20 $( this ).parent().find( 'form input[type="search"], form input[type="text"]' ).focus(); 21 $( this ).parent().addClass( 'open' ); 22 } else if ( $( this ).parent().hasClass( 'full-width-menu' ) ) { 23 $( this ).parent().addClass( 'active-search' ); 24 $( this ).parent().find( 'form' ).animate( { width: '100%' } ); 25 $( this ).parent().addClass( 'open' ); 26 $( this ).parent().find( 'form input[type="search"], form input[type="text"]' ).focus(); 27 } else if ( $( this ).parent().hasClass( 'popup' ) ) { 28 29/* Premium Code Stripped by Freemius */ 30 31 } 32 33 $( '.is-menu form input[type="search"], .is-menu form input[type="text"]' ).focus(); 34 } ); 35 36/* Premium Code Stripped by Freemius */ 37 38 } ); 39 40 41/* Premium Code Stripped by Freemius */ 42 43 44 $( '.is-menu form input[type="search"], .is-menu form input[type="text"]' ).on( 'click', function( e ) { 45 e.stopPropagation(); 46 return false; 47 } ); 48 49 $( 'form.is-search-form, form.search-form' ).on( 'hover', function( e ) { 50 $( this ).append( $( this ).next( ".is-link-container" ).remove() ); 51 } ); 52 53 $( window ).click( function( e ) { 54 if ( 0 === e.button ) { 55 if ( $( '.is-menu' ).hasClass( 'open' ) ) { 56 $( '.is-menu form' ).animate( 57 { width: '0' }, 58 400, 59 function() { 60 $( '.is-menu' ).removeClass( 'active-search' ); 61 $( '.is-menu' ).removeClass( 'open' ); 62 } 63 ); 64 } else if ( $( '.is-menu' ).hasClass( 'dropdown' ) ) { 65 $( '.is-menu form' ).fadeOut(); 66 } 67 } 68 }); 69} )( 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.