Add devcontainer configuration and Dependabot setup
- Created a new devcontainer.json file for an Alpine-based development environment. - Added a Dependabot configuration file to automate dependency updates for devcontainers.
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
const scrollUp = () => {
|
||||
const scrollUpElement = document.querySelector(".scroll-up");
|
||||
if (scrollUpElement) {
|
||||
scrollUpElement.addEventListener("click", () => {
|
||||
window.scroll({ top: 0, left: 0, behavior: "smooth" });
|
||||
});
|
||||
|
||||
window.addEventListener("scroll", () => {
|
||||
const scrollCount = window.scrollY;
|
||||
|
||||
if (scrollCount < 300) {
|
||||
scrollUpElement.classList.remove("active");
|
||||
}
|
||||
if (scrollCount > 300) {
|
||||
scrollUpElement.classList.add("active");
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
const scrollUp = () => {
|
||||
const scrollUpElement = document.querySelector(".scroll-up");
|
||||
if (scrollUpElement) {
|
||||
scrollUpElement.addEventListener("click", () => {
|
||||
window.scroll({ top: 0, left: 0, behavior: "smooth" });
|
||||
});
|
||||
|
||||
window.addEventListener("scroll", () => {
|
||||
const scrollCount = window.scrollY;
|
||||
|
||||
if (scrollCount < 300) {
|
||||
scrollUpElement.classList.remove("active");
|
||||
}
|
||||
if (scrollCount > 300) {
|
||||
scrollUpElement.classList.add("active");
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user