Removed console.log calls

This commit is contained in:
Author 2023-08-26 14:45:21 -04:00
parent 6b4ea47476
commit 83c15f40cb

View file

@ -70,8 +70,6 @@
hiddenClass = "hidden"; hiddenClass = "hidden";
revealedClass = "visible"; revealedClass = "visible";
function switchClasses(element, toRemove, toInsert){ function switchClasses(element, toRemove, toInsert){
console.log(toRemove);
console.log(element.classList);
element.classList.remove(toRemove); element.classList.remove(toRemove);
element.classList.add(toInsert); element.classList.add(toInsert);
} }
@ -84,7 +82,6 @@
id = button.textContent; id = button.textContent;
ids = ["about", "projects", "contact"]; ids = ["about", "projects", "contact"];
ids.filter(i => i !== id).forEach(hide); ids.filter(i => i !== id).forEach(hide);
console.log("All hidden!");
element = document.getElementById(id); element = document.getElementById(id);
if(element.classList.contains(revealedClass)){ if(element.classList.contains(revealedClass)){
switchClasses(element, revealedClass, hiddenClass); switchClasses(element, revealedClass, hiddenClass);