1/* Mobile Navigation Script for Animation */ 2var menu_states = new Array(); 3var mobile_state = false; 4 5function mobile_toggle(){ 6 if(mobile_state){ 7 $('body').css('overflow', ''); 8 $('.mobile_menu').fadeOut('fast'); 9 mobile_state = false; 10 } else { 11 $('body').css('overflow', 'hidden'); 12 $('.mobile_menu').fadeIn('fast'); 13 mobile_state = true; 14 } 15} 16 17function mobile_dropdown(id){ 18 $('#dropdown_'+id).toggle(); 19} 20 21function child_dropdown(id,elem){ 22 elem.find('#child_drop_'+id).toggle(); 23} 24 25$(document).ready( function(){ 26 27 $('.mobile_menu .parent').on('click', function(e){ 28 console.log('parent click'); 29 e.stopPropagation(); 30 let id = $(this).attr('data-id'); 31 mobile_dropdown(id); 32 }); 33 34 $('.mobile_menu .child').click( function(e){ 35 let elem = $(this); 36 let id = $(this).data('id'); 37 e.stopPropagation(); 38 child_dropdown(id,elem); 39 }); 40 41 $('.mobile_menu .close').click( function(){ 42 mobile_toggle(); 43 }); 44 45 $('.mobile_toggle').click( function(){ 46 mobile_toggle(); 47 }); 48 49});
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.