website: remove js for removed elements

This commit is contained in:
Georgii Dolzhykov committed 2021-02-15 02:09:07 +02:00
1 parent d3757fb6b4
commit 8ba12c9d0d
1 file changed
-17
-17
View File
@@ -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");
});
});