Skip to content

Commit

Permalink
Update play.js
Browse files Browse the repository at this point in the history
  • Loading branch information
iamsonukushwaha authored Mar 5, 2024
1 parent ada72b2 commit 1a36d34
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion js/play.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,19 @@ let previous = document.querySelector('#pre'),
let timer, link, All_song, max, gen, index_no;

// for mobile sidenav
const iconElement = menu_btn.querySelector('i');
menu_btn.addEventListener("click", () => {
if (menu_btn.classList.contains("active")) {
menu_btn.classList.remove("active");
sidenav.style.left = "-100%"
sidenav.style.left = "-100%";
iconElement.classList.add('bi-list');
iconElement.classList.remove('bi-x-square-fill');

} else {
menu_btn.classList.add("active");
sidenav.style.left = "0"
iconElement.classList.remove('bi-list');
iconElement.classList.add('bi-x-square-fill');
}
});

Expand Down

0 comments on commit 1a36d34

Please sign in to comment.