1//~ var siteNav, sectionNav; 2//~ //~ 3//~ $(function(){ 4 //~ $('.site-navigation').hide(); 5//~ 6 //~ siteNav = $('.top-nav-menu'); 7 //~ siteNav.on('click', function(e){ 8 //~ e.preventDefault(); 9//~ 10 //~ // Change background image to X 11 //~ // Fade in menu links 12 //~ if (siteNav.hasClass('menu-open-button')){ 13 //~ siteNav.removeClass('menu-open-button'); 14 //~ siteNav.addClass('menu-close-button'); 15 //~ $('.overlay').addClass('overlay-shade') 16 //~ $('.site-navigation').fadeIn(); 17 //~ } else if (siteNav.hasClass('menu-close-button')) { 18 //~ siteNav.removeClass('menu-close-button'); 19 //~ siteNav.addClass('menu-open-button'); 20 //~ $('.overlay').removeClass('overlay-shade') 21 //~ $('.site-navigation').fadeOut(); 22 //~ } 23 //~ }); 24//~ 25 //~ // sectionNav = $('div.top-nav-current-slide'); 26 //~ // sectionNav.on('click', function(){ 27//~ 28 //~ // alert('You clicked the sectionNav') 29 //~ // }); 30//~ }); 31//~ 32 33 34 35/* azza - 9/25 */ 36 37jQuery( document ).ready( function( $ ) { 38 39 40 41 42 $( '<link/>', { rel: 'stylesheet', type: 'text/css', href: 'https://lossur.es/short-docs/wp-content/themes/brooklyn/persistentmenu/style.css' } ).appendTo( 'head' ); 43 $( 'body' ).prepend( '<div class="persistentmenu"></div>' ); 44 45 46 47 48 $( '.persistentmenu' ).load( 'https://www.corsproxy.com/lossur.es/short-docs/wp-content/themes/brooklyn/persistentmenu/html.html', function() { 49 50 51 52 53 $( '.persistentmenu a, .persistentmenu input' ).click( function( e ) { 54 55 e.stopPropagation(); // prevent menu close on nav & email input box click 56 57 } ); 58 59 60 if ( $( '#wpadminbar' ).length > 0 ) { 61 $( '.persistentmenu .menu-button' ).css( 'top', '36px' ); 62 } 63 64 65 $( '.persistentmenu .menu-button.open' ).click( function() { 66 67 $( this ).hide(); 68 $( '.persistentmenu .menu-button.close' ).show(); 69 70 $( '.persistentmenu .overlay' ).fadeIn( 200, function() { 71 72 $( '.persistentmenu .site-navigation' ).show(); 73 74 $( 'body' ).css( 'overflow', 'hidden' ); // hide main site's scrollbar 75 76 } ); 77 78 } ); 79 80 81 82 83 $( '.persistentmenu .menu-button.close, .persistentmenu .site-navigation' ).click( function( e ) { 84 85 $( '.persistentmenu .menu-button.open' ).show(); 86 $( '.persistentmenu .menu-button.close' ).hide(); 87 $( '.persistentmenu .site-navigation' ).hide(); 88 $( '.persistentmenu .overlay' ).hide(); 89 90 $( 'body' ).css( 'overflow', 'auto' ); 91 92 } ); 93 94 95 96 97 } ); 98 99 100 101 102} ); 103 104
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.