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,20 +1,20 @@
|
||||
const smoothScroll = () => {
|
||||
var links = document.querySelectorAll('a[href^="#"]');
|
||||
if (!links.length) {
|
||||
return;
|
||||
}
|
||||
links.forEach(function (link) {
|
||||
link.addEventListener("click", function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
var targetId = this.getAttribute("href").substring(1);
|
||||
|
||||
var targetElement = document.getElementById(targetId);
|
||||
if (targetElement) {
|
||||
targetElement.scrollIntoView({ behavior: "smooth" });
|
||||
} else {
|
||||
window.scroll({ top: 0, left: 0, behavior: "smooth" });
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
const smoothScroll = () => {
|
||||
var links = document.querySelectorAll('a[href^="#"]');
|
||||
if (!links.length) {
|
||||
return;
|
||||
}
|
||||
links.forEach(function (link) {
|
||||
link.addEventListener("click", function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
var targetId = this.getAttribute("href").substring(1);
|
||||
|
||||
var targetElement = document.getElementById(targetId);
|
||||
if (targetElement) {
|
||||
targetElement.scrollIntoView({ behavior: "smooth" });
|
||||
} else {
|
||||
window.scroll({ top: 0, left: 0, behavior: "smooth" });
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user