mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-02-24 21:09:49 -06:00
scroll onclick nav
This commit is contained in:
@@ -6,6 +6,7 @@ function onLoaded() {
|
||||
let navs = document.querySelectorAll('.navElement');
|
||||
navs.forEach(function (element) {
|
||||
element.onclick = function () {
|
||||
window.scrollTo(0, 0);
|
||||
toggleMenu();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user