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'])) {
$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);
echo "<label for='bottomText'> $line</label></div>";
}
echo "</fieldset>";
+
+echo "<fieldset><legend>Notes</legend>";
+echo "<textarea name='notes' rows='10' style='width: 100%;'>";
+echo $note;
+echo "</textarea>";
+echo "</fieldset>";
+
echo "</div><div class='third'>";
echo "<fieldset><legend>Banner text</legend>";
for ($i = 0; $i < count($text['bannerText']); $i++) {
<li><s>Make the top banner look better</s></li>
<li><s>Add some kind of rating into the item file and make it display</s></li>
<li>add marquee of the current buyers of the product and figure out how to do this (potentially hard?)</li>
+ <li><s>Add producer notes to the interface and autocue</s></li>
</ul>
<p>
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, <s>arrange screentest with Jack</s>.
top: 10px;
left: 10px;
}
-#notes {
- margin: 40px;
+#notes, #message {
+ margin: 20px;
}
#timer {
position: absolute;
bottom: 0;
left: 0;
+ margin: 20px;
}
</style>
<script>
function frame() {
var slider = document.getElementById("slider");
var notes = document.getElementById("notes");
+ var message = document.getElementById("message");
var timers = document.getElementById("timer");
notes.style.fontSize = `${slider.value}px`;
+ message.style.fontSize = `${slider.value}px`;
timers.style.fontSize = `${slider.value}px`;
}
stock.innerHTML = data[itemId].stockCount;
})
+ fetch("../note", {cache: "no-store"})
+ .then(data => data.text())
+ .then(data => {
+ const messageContainer = document.getElementById("message");
+ messageContainer.innerHTML = data.replaceAll("\n", "<br>");
+ })
}
setInterval(frame, 50);
setInterval(update, 1000);
</script>
</head>
- <body>
+ <body onload="frame(); update();">
<input type="range" min="30" max="100" value="45" id="slider">
<div style="font-size: 50px;" id="notes">some test text!</div>
+ <div style="font-size: 50px; color: yellow;" id="message">Producer Notes!</div>
<div id="timer">
T1: <span style="background-color: red;" class="time"></span> -
T2: <span style="background-color: green;" class="time"></span> -