1$(document).ready(function () { 2 3 "use strict"; 4 5 6 /* SANDWICH BTN 7 ------------ */ 8 9 $(document).ready(function(){ 10 $('#nr-menu-trigger').click(function(){ 11 $('#nr-menu-trigger').toggleClass('open'); 12 $('body').toggleClass('nr-menu-is-active'); 13 }); 14 $('#nr-menu-trigger-close').click(function(){ 15 $('body').removeClass('nr-menu-is-active'); 16 $('#nr-menu-trigger').removeClass('open'); 17 }); 18 $('#nr-menu-trigger-back').click(function(){ 19 $('body').removeClass('nr-menu-is-active'); 20 $('#nr-menu-trigger').removeClass('open'); 21 }); 22 }); 23 24 25 /* SUBMENU 26 ------------ */ 27 $('.menu-item-has-children > a').on('click', function (a) { 28 a.preventDefault(); 29 30 $(document).mouseup(function (e){ 31 var container = $(".sub-menu"); 32 if (!container.is(e.target) && container.has(e.target).length === 0){ 33 container.removeClass('open'); 34 } 35 }); 36 var hijo = $(this).next(); 37 $(hijo).toggleClass('open'); // Añade y Quita la clase dropdown-open 38 39 }); 40 41 42 /* SCROLL TOP 43 ------------ */ 44 45 $(function() { 46 $(window).scroll(function() { 47 if($(this).scrollTop() != 0) { 48 $('#toTop').fadeIn(); 49 } else { 50 $('#toTop').fadeOut(); 51 } 52 }); 53 54 $('#toTop').click(function() { 55 $('body,html').animate({scrollTop:0},800); 56 }); 57 }); 58 59});
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.