From a291e4626aef4588325ac476e5d8f99718b09108 Mon Sep 17 00:00:00 2001 From: Kristy Fournier <124598538+kristy-fournier@users.noreply.github.com> Date: Sat, 12 Jul 2025 22:09:18 -0400 Subject: [PATCH] added options --- Client/index.html | 21 +++++++++++++++++++-- Client/scripts.js | 8 ++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/Client/index.html b/Client/index.html index 6012ac4..23420b7 100644 --- a/Client/index.html +++ b/Client/index.html @@ -81,13 +81,30 @@ changes visibility with JS-->

Volume of the music

-
+

Share the remote:

-

Version 1.0.2

+

Admin Settings

+

Note: Admin password must have been set from the server

+
+

Admin Password:

+

Enter to use admin restricted functions

+ +
+
+

Fine action control:

+

A check means that action is avalible to everyone

+
+
+
+
+
+
+
+

PartyJukebox is under an AGPLV3 liscense. You can access the source code here.

diff --git a/Client/scripts.js b/Client/scripts.js index a63ee01..10bbd5f 100644 --- a/Client/scripts.js +++ b/Client/scripts.js @@ -192,6 +192,14 @@ async function checkSettings(skipServer=false) { qrCodeGenerate() document.getElementById("alerttimetextbox").value = alertTime partyButtonState = document.getElementById("partymode-button").innerHTML; + checksforadmin = document.getElementById("admincheckholder") + // temporary + for (let i in checksforadmin.children) { + if (i.type == "checkbox") { + i.checked = true; + } + } + //ping the server here x = await getFromServer({setting: "getsettings"}, "settings"); if (!(skipServer) || partyButtonState=="N/A") { if (x["partymode"] == false) {