This commit is contained in:
Chandika Nurdiansyah 2023-01-18 14:44:21 +07:00
parent 3c8e0a3d9d
commit 5e80324c0b
1 changed files with 13 additions and 0 deletions

13
luasrc/app.js Normal file
View File

@ -0,0 +1,13 @@
(function() {
// your page initialization code here
// the DOM will be available here
const toggler = document.querySelector(".toggler")
console.log(toggler)
toggler.addEventListener("click", function(e){
var element = document.querySelector(".navbar");
element.classList.toggle("active");
}, false)
})();