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()