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";
|
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);
|
||||||
|
|
Loading…
Reference in a new issue