2022-06-25 20:52:55 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="">
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2022-07-22 23:14:19 +00:00
|
|
|
<title id="streamName">{{name}}</title>
|
2022-06-25 20:52:55 +00:00
|
|
|
<meta name="author" content="Your Name">
|
2022-07-21 23:21:05 +00:00
|
|
|
<meta name="description" content="{{description}}">
|
2022-06-25 20:52:55 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<link rel="stylesheet" href="">
|
|
|
|
<link rel="icon" type="image/x-icon" href=""/>
|
2022-07-24 23:01:05 +00:00
|
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
|
2022-06-25 20:52:55 +00:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2022-07-21 05:42:38 +00:00
|
|
|
<header>
|
|
|
|
</header>
|
|
|
|
<main>
|
2022-07-24 23:01:05 +00:00
|
|
|
<div class="container" style="background-color:rgba(0,0,0,0.1);padding:1rem">
|
|
|
|
<div class="row" style="background-color:rgb(256,256,256);padding:1rem;">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<h2 style="text-align:left">Stream Title: <em><span id="streamTitle">{{streamTitle}}</span></em></h2>
|
|
|
|
</div>
|
|
|
|
<div class="col">
|
|
|
|
<h3 style="text-align:right">Stream online? <em><span id="streamOnline">{{online}}</span></em></h3>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<p>Current Viewers: <span id="currentViewers">{{viewerCount}}</span></p>
|
|
|
|
</div>
|
|
|
|
<div class="col">
|
|
|
|
<p>Session Max Viewers: <span id="sessionMaxViewerCount">{{sessionMaxViewerCount}}</span></p>
|
|
|
|
</div>
|
|
|
|
<div class="col">
|
|
|
|
<p>Overall Max Viewers: <span id="overallMaxViewerCount">{{overallMaxViewerCount}}</span></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<div class="container" style="background-color:rgba(0,0,0,0.2)">
|
|
|
|
<div class="card" style="padding:1rem;margin:0.5rem 0">
|
|
|
|
<h4 class="card-title">Current tags:</h4>
|
|
|
|
<p id="tags" class="card-text" style="padding:1rem">{{tags}}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row" style="margin-top:1rem">
|
|
|
|
<div class="col">
|
|
|
|
<button type="button" class="btn btn-light mx-auto d-block" style="width:12em" data-bs-toggle="modal" data-bs-target="#streamTitleModal">Update Stream Title</button>
|
|
|
|
{{!<div class="modal fade" id="streamTitleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h5 class="modal-title" id="exampleModalLabel">Update Stream Title</h5>
|
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form onsubmit="updateStreamTitle(document.getElementById('streamTitleInput').value)" style="width:100%" id="streamTitleForm">
|
|
|
|
<input type="text" name="streamTitle" id="streamTitleInput" style="width:100%" />
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
|
|
|
|
<button type="button submit" form="streamTitleForm" class="btn btn-primary">Save changes</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col">
|
|
|
|
<button type="button" class="btn btn-light mx-auto d-block" style="width:12em" data-bs-toggle="modal" data-bs-target="#tagsModal">Update Tags</button>
|
|
|
|
{{!<div class="modal fade" id="tagsModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h5 class="modal-title" id="exampleModalLabel">Update Tags</h5>
|
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form onsubmit="updateTags(document.getElementById('tagsInput').value)" style="width:100%" id="tagsForm">
|
|
|
|
<input type="text" name="tagsInput" id="tagsInput" style="width:100%" />
|
|
|
|
</form>
|
|
|
|
<p class="small text-center">Seperate tags by comma.</p>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
|
|
|
|
<button type="button submit" form="streamTitleForm" class="btn btn-primary">Save changes</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-21 05:42:38 +00:00
|
|
|
</main>
|
|
|
|
<footer>
|
|
|
|
</footer>
|
2022-07-24 23:01:05 +00:00
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
|
|
|
|
<script src="/static/script.js"></script>
|
2022-06-25 20:52:55 +00:00
|
|
|
</body>
|
|
|
|
|
2022-07-24 23:01:05 +00:00
|
|
|
<!-- vim: foldmethod=manual
|
|
|
|
-->
|
2022-06-25 20:52:55 +00:00
|
|
|
</html>
|