1 // Calling the function 2$(function() { 3 $('.toggle-nav').click(function() { 4 toggleNavigation(); 5 }); 6}); 7 8 9// The toggleNav function itself 10function toggleNavigation() { 11 if ($('#container').hasClass('display-nav')) { 12 // Close Nav 13 $('#container').removeClass('display-nav'); 14 } else { 15 // Open Nav 16 $('#container').addClass('display-nav'); 17 } 18} 19 20 21// SLiding codes 22$("#toggle > li > div").click(function () { 23 if (false == $(this).next().is(':visible')) { 24 $('#toggle ul').slideUp(); 25 } 26 27 var $currIcon=$(this).find("span.the-btn"); 28 29 $("span.the-btn").not($currIcon).addClass('fa-plus').removeClass('fa-minus'); 30 31 $currIcon.toggleClass('fa-minus fa-plus'); 32 33 $(this).next().slideToggle(); 34 35 $("#toggle > li > div").removeClass("active"); 36 $(this).addClass('active'); 37 38 $('#toggle .upper .upper').addClass('nav3'); 39});
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.