feat: show song count
Some checks failed
Code Analysis / SonarQube (push) Failing after 45s

This commit is contained in:
Naomi Carrigan 2025-03-24 15:31:29 -07:00
parent b9478fe13f
commit 76749ba6b8
Signed by: naomi
SSH Key Fingerprint: SHA256:rca1iUI2OhAM6n4FIUaFcZcicmri0jgocqKiTTAfrt8

View File

@ -12,6 +12,7 @@
<h1>Naomi's Music Library</h1> <h1>Naomi's Music Library</h1>
<section> <section>
<p>An interactive explorer for the music Naomi listens to.</p> <p>An interactive explorer for the music Naomi listens to.</p>
<p id="count">Loading library...</p>
</section> </section>
<div style="display: none;"> <div style="display: none;">
<span>Search Artists: </span> <span>Search Artists: </span>
@ -44,6 +45,7 @@
songList.push(...songs); songList.push(...songs);
artistQuery.parentElement.style.display = "block"; artistQuery.parentElement.style.display = "block";
titleQuery.parentElement.style.display = "block"; titleQuery.parentElement.style.display = "block";
document.getElementById('count').innerText = `Naomi currently has ${songs.length} songs.`;
updateTable(songs); updateTable(songs);
} }
const updateTable = (songs) => { const updateTable = (songs) => {