Removed console.log calls
This commit is contained in:
parent
6b4ea47476
commit
83c15f40cb
1 changed files with 0 additions and 3 deletions
|
@ -70,8 +70,6 @@
|
|||
hiddenClass = "hidden";
|
||||
revealedClass = "visible";
|
||||
function switchClasses(element, toRemove, toInsert){
|
||||
console.log(toRemove);
|
||||
console.log(element.classList);
|
||||
element.classList.remove(toRemove);
|
||||
element.classList.add(toInsert);
|
||||
}
|
||||
|
@ -84,7 +82,6 @@
|
|||
id = button.textContent;
|
||||
ids = ["about", "projects", "contact"];
|
||||
ids.filter(i => i !== id).forEach(hide);
|
||||
console.log("All hidden!");
|
||||
element = document.getElementById(id);
|
||||
if(element.classList.contains(revealedClass)){
|
||||
switchClasses(element, revealedClass, hiddenClass);
|
||||
|
|
Loading…
Reference in a new issue