From: will Date: Mon, 19 Aug 2024 13:42:48 +0000 (+0100) Subject: Added cue values in the JSON X-Git-Url: https://git.ozva.co.uk/?a=commitdiff_plain;h=b9a0839c1c255cd8db2e350ef0acb3f247244c49;p=shopping-channel Added cue values in the JSON --- diff --git a/auth/index.php b/auth/index.php index b492c6a..86b6fbc 100644 --- a/auth/index.php +++ b/auth/index.php @@ -25,6 +25,8 @@ $data = json_decode($data, true); if (!empty($_POST['update'])) { $data['itemId'] = (int)$_POST['item']; + $data['showingMain'] = var_export(!empty($_POST['main']), true); + $data['showingAll'] = var_export(!empty($_POST['all']), true); $data['showingExtra'] = var_export(!empty($_POST['extra']), true); $data['showingTimer'] = var_export(!empty($_POST['timer']), true); $data['showingBanner'] = var_export(!empty($_POST['banner']), true); @@ -161,14 +163,26 @@ for ($i = 0; $i < count($items); $i++) { echo ""; echo "
"; } -$checked = ""; +$checkedExtra = ""; if ($data['showingExtra'] == "true") { - $checked = " checked='checked' "; + $checkedExtra = " checked='checked' "; +} +$checkedMain = ""; +if ($data['showingMain'] == "true") { + $checkedMain = " checked='checked' "; +} +$checkedAll = ""; +if ($data['showingAll'] == "true") { + $checkedAll = " checked='checked' "; } ?>
- > - + > +
+ > +
+ > +
@@ -204,7 +218,7 @@ if ($data['round'] == "true") {
'> -
+
'>
@@ -319,7 +333,7 @@ echo ""; Doomsday clock"; echo "
"; -echo ""; +echo ""; for ($i = 0; $i < 360; $i += 10) { $checked = ""; if ($clock['currentPosition'] == $i) { diff --git a/clock.json b/clock.json index c36e628..1250412 100755 --- a/clock.json +++ b/clock.json @@ -1 +1 @@ -{"currentPosition":270,"movementSpeed":10,"function":"ease"} \ No newline at end of file +{"currentPosition":270,"movementSpeed":10,"function":"ease","lightingCues":["true", "false", "true"]} diff --git a/data.json b/data.json index 0d0c88c..7d87692 100755 --- a/data.json +++ b/data.json @@ -1 +1 @@ -{"topText":["It's here!"],"bottomText":["It's here!"],"bannerText":"Buy XMDV!","itemId":1,"currency":{"prefix":"$","postfix":" hairs"},"discount":0,"prefix":"true","round":"true","priceChange":50,"showingExtra":"false","showingTimer":"true","showingBanner":"true","showingSigil":["true","true","false","false"],"timerEnd":1722808645,"timerOffset":-500} \ No newline at end of file +{"topText":["It's here!"],"bottomText":["It's here!"],"bannerText":"The quant we created!","itemId":1,"currency":{"prefix":"$","postfix":" hairs"},"discount":70,"prefix":"false","round":"true","priceChange":50,"showingMain":"true","showingAll":"true","showingExtra":"true","showingTimer":"true","showingBanner":"true","showingSigil":["false","false","false","false"],"timerEnd":1722808645,"timerOffset":-500} \ No newline at end of file diff --git a/index.html b/index.html index 8ddd25d..1d2ff3e 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@