1//it works for small pieces of code, you still have to do most by hand. Just like you do at night
2https://properprogramming.com/tools/jquery-to-javascript-converter/
1 let toggleBtn = document.querySelector("#navbar-toggle");
2 let collapse = document.querySelector("#navbar-collapse");
3
4 toggleBtn.onclick = () => {
5 collapse.classList.toggle("hidden");
6 collapse.classList.toggle("flex");
7 };
1 let toggleBtn = document.querySelector("#navbar-toggle");
2 let collapse = document.querySelector("#navbar-collapse");
3
4 toggleBtn.onclick = () => {
5 collapse.classList.toggle("hidden");
6 collapse.classList.toggle("flex");
7 };