Spaces:
Runtime error
Runtime error
Update public/script.js
Browse files- public/script.js +1 -1
public/script.js
CHANGED
|
@@ -61,7 +61,7 @@ function updateNavigationVisibility(searchQuery, totalPages) {
|
|
| 61 |
document.getElementById('search-bar').addEventListener('keyup', debounce(() => {
|
| 62 |
currentPage = 1; // Reset to the first page on new search or clearing search
|
| 63 |
loadMusicList();
|
| 64 |
-
},
|
| 65 |
|
| 66 |
function loadMusicList() {
|
| 67 |
const searchQuery = document.getElementById('search-bar').value.toLowerCase();
|
|
|
|
| 61 |
document.getElementById('search-bar').addEventListener('keyup', debounce(() => {
|
| 62 |
currentPage = 1; // Reset to the first page on new search or clearing search
|
| 63 |
loadMusicList();
|
| 64 |
+
}, 1000)); // 500 milliseconds delay
|
| 65 |
|
| 66 |
function loadMusicList() {
|
| 67 |
const searchQuery = document.getElementById('search-bar').value.toLowerCase();
|