File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ <h1>Lyrics Search</h1>
23
23
< div id ="result " class ="container result ">
24
24
< p > Results will be displayed here</ p >
25
25
</ div >
26
- <!-- Add a Loading Spinner -->
26
+ <!-- Show a Loading Spinner -->
27
27
< div id ="loader " class ="loader "> </ div >
28
28
< script src ="script.js "> </ script >
29
29
</ body >
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ let searches = JSON.parse(localStorage.getItem("searches")) || [];
8
8
let lastSearchResults = [ ] ;
9
9
const apiURL = "https://lrclib.net/api" ;
10
10
11
- // Add a Loading Spinner
11
+ // Show a Loading Spinner
12
12
function showLoader ( ) {
13
13
loader . style . display = "grid" ;
14
14
}
@@ -27,7 +27,7 @@ async function searchSongs(term) {
27
27
if ( lastSearchResults . length ) {
28
28
saveSearch ( term ) ;
29
29
}
30
- // Add Error Handling
30
+ // Handle Errors Gracefully
31
31
} catch ( error ) {
32
32
result . innerHTML = "<p>Failed to fetch results. Please try again.</p>" ;
33
33
lastSearchResults = [ ] ;
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ ul.songs li {
158
158
white-space : pre-wrap;
159
159
}
160
160
161
- /* Add a Loading Spinner */
161
+ /* Show a Loading Spinner */
162
162
.loader {
163
163
margin : auto;
164
164
width : 50px ;
You can’t perform that action at this time.
0 commit comments