minimaly-css
Advanced tools
Comparing version
@@ -146,9 +146,10 @@ // Minimaly.js | ||
//navbar | ||
// Navbar toggle for mobile | ||
document.addEventListener("DOMContentLoaded", () => { | ||
document.querySelectorAll(".nav-toggle").forEach((btn) => { | ||
btn.addEventListener("click", () => { | ||
const nav = btn.nextElementSibling; | ||
nav.classList.toggle("open"); | ||
}); | ||
const nav = document.querySelector("nav"); | ||
const button = nav.querySelector("button"); | ||
button?.addEventListener("click", () => { | ||
nav.classList.toggle("open"); | ||
}); | ||
}); |
{ | ||
"name": "minimaly-css", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"description": "Minimal, semantic, avtomatik responsiv va interaktiv CSS framework", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.css", |
@@ -146,9 +146,10 @@ // Minimaly.js | ||
//navbar | ||
// Navbar toggle for mobile | ||
document.addEventListener("DOMContentLoaded", () => { | ||
document.querySelectorAll(".nav-toggle").forEach((btn) => { | ||
btn.addEventListener("click", () => { | ||
const nav = btn.nextElementSibling; | ||
nav.classList.toggle("open"); | ||
}); | ||
const nav = document.querySelector("nav"); | ||
const button = nav.querySelector("button"); | ||
button?.addEventListener("click", () => { | ||
nav.classList.toggle("open"); | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
24980
-1.59%1046
-1.88%