1(function($){ 2 3 $(function(){ 4 $('.js-nav__toggle').on('click', function() { 5 if($(this).hasClass('-open')) { 6 nav_open(); 7 } else { 8 nav_close() 9 } 10 }); 11 12 $('.js-nav__menu a').on('click', function() { 13 nav_close() 14 }); 15 }); 16 17 function nav_open() { 18 $('.js-nav__toggle .-open').hide(); 19 $('.js-nav__toggle .-close').show(); 20 $('.js-nav__toggle').removeClass('-open').addClass('-close'); 21 $('.js-nav__menu').fadeIn('300'); 22 } 23 24 function nav_close() { 25 $('.js-nav__toggle .-close').hide(); 26 $('.js-nav__toggle .-open').show(); 27 $('.js-nav__toggle').removeClass('-close').addClass('-open'); 28 $('.js-nav__menu').fadeOut('300'); 29 } 30 31}(jQuery));
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.