From 8f27f8d216bc4de260ce8f35b70e9f58700e859e Mon Sep 17 00:00:00 2001 From: arianagiroux Date: Tue, 19 Jul 2022 14:56:41 -0600 Subject: [PATCH] Cleans up the visual design of the web-page. --- index.html | 21 +++++++++++++++++++++ resources/script.js | 6 ++++-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index d18f666..e34cf2b 100644 --- a/index.html +++ b/index.html @@ -9,11 +9,28 @@ +
+
+

Stream Name Stream Title

+
+
+ +
+
+

Viewers

+

Current Viewers: 0

+

Total Viewers During Stream:

0

+
+
+ +
+
+

Current Viewers: . Session Peak Viewers: .

Stream Online?

@@ -23,4 +40,8 @@ + + + + \ No newline at end of file diff --git a/resources/script.js b/resources/script.js index 4c61440..f7780fd 100644 --- a/resources/script.js +++ b/resources/script.js @@ -41,7 +41,9 @@ async function updateSessionPeak(viewers) { async function Main() { // update visual elements using data from 'api/admin/status' - updateElements(await getStatus()) + // updateElements(await getStatus()) + const response = await fetch(api_url + 'yp', {mode:'no-cors'}) + const data = await response.json() // update the broadcast title // postEndpoint(`` @@ -51,4 +53,4 @@ async function Main() { // .then(data => console.log(data)) } -Main() \ No newline at end of file +// Main()