Skip to content

Commit

Permalink
Update sus.js
Browse files Browse the repository at this point in the history
  • Loading branch information
HarshSingh21 authored Oct 17, 2023
1 parent b843112 commit 3607f6c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sus.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
let searchForm = document.querySelector('.search-form');


document.querySelector('#search-btn').onclick = () =>{
searchForm.classList.toggle('active');
cart.classList.remove('active');
Expand Down Expand Up @@ -54,4 +55,4 @@ function prev(){
slides[index].classList.remove('active');
index = (index - 1 + slides.length) % slides.length;
slides[index].classList.add('active');
}
}

0 comments on commit 3607f6c

Please sign in to comment.