1$(document).ready(function(){ 2 3 $('body').append('<div class="cover"></div><div class="cover-2"></div>'); 4 5 $('.menu-btn').click( 6 function() { 7 $('header nav').slideToggle(); 8 $(this).toggleClass('active'); 9 $('.cover').fadeToggle(); 10 $('.search').hide(); 11 $('.search-btn').removeClass('active'); 12 $('.cover-2').fadeOut(); 13 }); 14 15 16 $('.search-btn').click( 17 function() { 18 $('.search').slideToggle(); 19 $(this).toggleClass('active'); 20 $('.cover-2').fadeToggle(); 21 $('header nav').hide(); 22 $('.menu-btn').removeClass('active'); 23 $('.cover').fadeOut(); 24 }); 25 26 $('.show-info').click( 27 function() { 28 $('.media-info').slideToggle(); 29 $(this).toggleClass('active'); 30 }); 31 32 33 34 35 36 $(window).scroll(function() { 37 if($(this).scrollTop() != 0) { 38 $('#scroll-top').fadeIn(); 39 } else { 40 $('#scroll-top').fadeOut(); 41 } 42 }); 43 $('#scroll-top').click(function() { 44 $('body,html').animate({scrollTop:0},800); 45 }); 46 47 48 49 50}); 51 52 53 54 55$(document).click(function(event) { 56 $('.cover, .cover-2').click( 57 function() { 58 $('header nav, .search').slideUp(); 59 $('.menu-btn, .search-btn').removeClass('active'); 60 $('.cover, .cover-2').fadeOut(); 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.