move onclick to js file
This commit is contained in:
parent
e914d68c2d
commit
e816bb4d7b
3 changed files with 298 additions and 4 deletions
|
|
@ -10,10 +10,10 @@ function toggle_gototop() {
|
|||
}
|
||||
}
|
||||
|
||||
function gototop() {
|
||||
document.getElementById("gototop").addEventListener("click", function(event) {
|
||||
document.body.scrollTop = 0; // For Safari
|
||||
document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
|
||||
}
|
||||
});
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue