PageSourceSearch

https://elpalaciotropical.com/menu.js

js elpalaciotropical.com collected 2026-10-07 19:38:27 UTC 542 bytes, 31 lines download raw bytes

1/*_________________Menu de Navegación______________*/
2
3const hamburguer = document.querySelector('.menu');
4const menu = document.querySelector('.menu-navegacion');
5
6console.log(menu)    
7console.log(hamburguer) 
8
9hamburguer.addEventListener('click', ()=>{
10    menu.classList.toggle('spread')
11})
12
13
14window.addEventListener('click', e=>{
15    if(menu.classList.contains('spread') && e.target != menu && e.target != hamburguer){
16
17
18        menu.classList.toggle('spread')
19    }
20} )
21
22/*_________________Menu de Navegación______________*/
23
24
25
26
27
28
29
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.