From a4345d1cb398c73159efd1426e638c8e9bac5723 Mon Sep 17 00:00:00 2001 From: renata-aline Date: Mon, 22 Jul 2024 18:24:17 -0300 Subject: [PATCH] main.js changed --- src/scripts/main.js | 60 --------------------------------------------- 1 file changed, 60 deletions(-) diff --git a/src/scripts/main.js b/src/scripts/main.js index 037cdb88c4..ad9a93a7c1 100644 --- a/src/scripts/main.js +++ b/src/scripts/main.js @@ -1,61 +1 @@ 'use strict'; -// function toggleMenuClose() { -// var menu = document.getElementById('nav-bar__menu'); -// if (menu.style.display === 'flex') { -// menu.style.display = 'none'; -// } else { -// menu.style.display = 'flex'; -// } -// } - - - -// document.addEventListener("DOMContentLoaded", function() { -// const nav = document.getElementById("menu"); -// const openIcon = document.querySelector(".nav__toggle__icon--open"); -// const closeIcon = document.querySelector(".nav__toggle__icon--close"); - -// openIcon.addEventListener("click", function() { -// nav.classList.add("open"); -// }); - -// closeIcon.addEventListener("click", function() { -// nav.classList.remove("open"); -// }); -// }); - - -// document.addEventListener("DOMContentLoaded", function() { -// const nav = document.getElementById("menu"); -// const navToggle = document.getElementById("nav-toggle"); -// const openIcon = document.getElementById("open-icon"); -// const closeIcon = document.getElementById("close-icon"); - -// // Verifica se está na tela inicial -// function checkHomePage() { -// if (window.location.hash === "#home" || window.location.hash === "") { -// navToggle.style.display = "block"; -// } else { -// navToggle.style.display = "none"; -// } -// } - -// // Inicialmente verifica a URL -// checkHomePage(); - -// // Adiciona evento de clique nos ícones de abertura e fechamento do menu -// openIcon.addEventListener("click", function() { -// nav.classList.add("open"); -// openIcon.style.display = "none"; -// closeIcon.style.display = "block"; -// }); - -// closeIcon.addEventListener("click", function() { -// nav.classList.remove("open"); -// openIcon.style.display = "block"; -// closeIcon.style.display = "none"; -// }); - -// // Atualiza o ícone do menu ao mudar de página -// window.addEventListener("hashchange", checkHomePage); -// });