From: will Date: Wed, 28 Aug 2024 15:25:12 +0000 (+0100) Subject: Added producer note to the interface and the autocue X-Git-Url: https://git.ozva.co.uk/?a=commitdiff_plain;h=b756cf48d6d26eeb5960534cf76f3eccb52495a2;p=shopping-channel Added producer note to the interface and the autocue --- diff --git a/auth/index.php b/auth/index.php index 37a572b..ee10732 100644 --- a/auth/index.php +++ b/auth/index.php @@ -22,6 +22,10 @@ $data = fread($file, filesize("../data.json")); fclose($file); $data = json_decode($data, true); +$file = fopen("../note", "r") or die("unable to open file!"); +$note = fread($file, filesize("../note")); +fclose($file); + $clockIncrement = 10; if (!empty($_POST['update'])) { @@ -107,6 +111,16 @@ if (!empty($_POST['update'])) { $data['timer3End'] = time() + $seconds; } + if (!empty($_POST['notes'])) { + $note = $_POST['notes']; + } else { + $note = ""; + } + + $file = fopen("../note", "w"); + fwrite($file, $note); + fclose($file); + $json = json_encode($data); $file = fopen("../data.json", "w"); fwrite($file, $json); @@ -310,6 +324,13 @@ for ($i = 0; $i < count($text['bottomText']); $i++) { echo ""; } echo ""; + +echo "
Notes"; +echo ""; +echo "
"; + echo "
"; echo "
Banner text"; for ($i = 0; $i < count($text['bannerText']); $i++) { @@ -522,6 +543,7 @@ for ($i = 0; $i < 360; $i += $clockIncrement) {
  • Make the top banner look better
  • Add some kind of rating into the item file and make it display
  • add marquee of the current buyers of the product and figure out how to do this (potentially hard?)
  • +
  • Add producer notes to the interface and autocue
  • and then still to do in the admin department: Talk to Joe about the GFX system, ask Ash about the lighting desk sAcn input and to setup things, makerspace the clock, text people about things, arrange screentest with Jack. diff --git a/autocue/index.html b/autocue/index.html index cb23a14..4b53a5c 100644 --- a/autocue/index.html +++ b/autocue/index.html @@ -11,13 +11,14 @@ body { top: 10px; left: 10px; } -#notes { - margin: 40px; +#notes, #message { + margin: 20px; } #timer { position: absolute; bottom: 0; left: 0; + margin: 20px; } - +

    some test text!
    +
    Producer Notes!
    T1: - T2: - diff --git a/note b/note new file mode 100644 index 0000000..fdd0d69 --- /dev/null +++ b/note @@ -0,0 +1,4 @@ +8 blue +6 bat +2 crystals +7 cat lookin' things \ No newline at end of file