From da423f49aa01328f44bdaf7418e5d8c82bc4bf09 Mon Sep 17 00:00:00 2001 From: Kristy Fournier <124598538+kristy-fournier@users.noreply.github.com> Date: Wed, 27 Nov 2024 15:59:30 -0500 Subject: [PATCH] just updating some comments --- Client/scripts.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Client/scripts.js b/Client/scripts.js index b020315..bc36002 100644 --- a/Client/scripts.js +++ b/Client/scripts.js @@ -50,7 +50,7 @@ function getCookie(cname) { } return ""; } -//someone more organised than me would have set all these elements to variables so they dont have to get them 50 times +//someone more organised than me would have set all these html elements to variables so they dont have to get them 50 times async function controlButton(buttonType) { if (buttonType == "pp") { getFromServer({control: "play-pause"}, "controls") @@ -124,10 +124,10 @@ async function searchSongs(searchTerm){ newItem.appendChild(head3); newItem.appendChild(head4); document.getElementById("songlist").appendChild(newItem); - //display error if no results } if (optionslist.length == 0) { + //display error if no results document.getElementById("songlist").innerHTML = "