1$(function() { 2 //menu toggle 3 $(document).on('click touchend', function(e) { 4 if (!$(e.target).closest('.menu-open,.menu-close').length) { 5 $('.menu-btn').fadeOut('fast', function() { 6 $('.menu-close').fadeIn('fast'); 7 $('.menu-open').stop().slideUp('fast'); 8 }); 9 } 10 }); 11 // menu open 12 $('.menu-close').click(function(event) { 13 $('.menu-close').fadeOut('fast', function() { 14 $('.menu-btn').fadeIn('fast'); 15 $('.menu-open').stop().slideDown('fast'); 16 }); 17 }); 18 // menu close 19 $('.menu-btn').click(function(event) { 20 $('.menu-btn').fadeOut('fast', function() { 21 $('.menu-close').fadeIn('fast'); 22 $('.menu-open').stop().slideUp('fast'); 23 }); 24 }); 25 26 //accordion 27 $('.accordion > dd').hide(); 28 $('.accordion > dt').click(function(e){ 29 $('+dd', this).slideToggle(); 30 $(this).toggleClass('active'); 31 }) 32});
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.