1/** 2 * File navigation.js. 3 * 4 * Handles toggling the navigation menu for small screens and enables TAB key 5 * navigation support for dropdown menus. 6 */ 7 8 9const $ = jQuery 10$(".hamburger-wrapper").click(function() { 11 event.preventDefault(); 12 if ($("#side-nav").css("visibility") == 'hidden' ) { 13 $("#side-nav").css("opacity", "1"); 14 $("#side-nav").css("visibility", "visible"); 15 $("body").css("overflow-y", "hidden"); 16 } else { 17 $("#side-nav").css("visiblity", ""); 18 // $(".pulse").css("background-color", "#000"); 19 $("#side-nav").css("opacity", "0"); 20 $("#side-nav").css("visibility", "hidden"); 21 $("body").css("overflow-y", "visible"); 22 23 } 24}); 25 26$('#menu-principal').on('click', '.submenu-toggle', function (e) { 27 e.preventDefault(); 28 const $li = $(this).closest('li'); 29 $li.toggleClass('open'); 30 }); 31
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.