website: remove js for removed elements
This commit is contained in:
1 parent
d3757fb6b4
commit
8ba12c9d0d
1 file changed
-17
@@ -27,21 +27,4 @@ window.addEventListener("load", () => {
|
||||
logo.classList.remove("rolling");
|
||||
}
|
||||
});
|
||||
|
||||
const yarnButton = document.querySelector(".showYarnButton");
|
||||
const npmButton = document.querySelector(".showNpmButton");
|
||||
const getStartedSection = document.querySelector(".getStartedSection");
|
||||
|
||||
npmButton.addEventListener("click", (event) => {
|
||||
event.preventDefault();
|
||||
npmButton.classList.add("active");
|
||||
yarnButton.classList.remove("active");
|
||||
getStartedSection.classList.add("getStartedSection--npm");
|
||||
});
|
||||
yarnButton.addEventListener("click", (event) => {
|
||||
event.preventDefault();
|
||||
yarnButton.classList.add("active");
|
||||
npmButton.classList.remove("active");
|
||||
getStartedSection.classList.remove("getStartedSection--npm");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user