Cleans up the visual design of the web-page.
This commit is contained in:
parent
658c676be8
commit
8f27f8d216
2 changed files with 25 additions and 2 deletions
21
index.html
21
index.html
|
@ -9,11 +9,28 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="">
|
||||
<link rel="icon" type="image/x-icon" href=""/>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header></header>
|
||||
<main>
|
||||
<div class="container" style="width: 100%">
|
||||
<h1 id="stream-name" style="margin: 1rem">Stream Name <small id="stream-title">Stream Title</small></h1>
|
||||
<div class="row" style="width: 100%">
|
||||
<div class="col-1">
|
||||
<!-- spacer -->
|
||||
</div>
|
||||
<div id="viewers" class="col">
|
||||
<h2>Viewers</h2>
|
||||
<p>Current Viewers: <span id="current-viewers">0</span></p>
|
||||
<p>Total Viewers During Stream: <p id="session-viewers">0</p></p>
|
||||
</div>
|
||||
<div class="col-1">
|
||||
<!-- spacer -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p>Current Viewers: <span id="currentViewers"></span>. Session Peak Viewers: <span id="sessionPeak"></span>.</p>
|
||||
<p>Stream Online? <span id="online"></span></p>
|
||||
</main>
|
||||
|
@ -23,4 +40,8 @@
|
|||
<script type="text/javascript" src="resources/data.js"></script>
|
||||
<script type="text/javascript" src="resources/script.js"></script>
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
|
||||
|
||||
</html>
|
|
@ -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()
|
||||
// Main()
|
||||
|
|
Loading…
Reference in a new issue