This repository has been archived on 2024-05-09. You can view files and clone it, but cannot push or open issues or pull requests.
icytv/templates/dashboard.html

154 lines
4.7 KiB
HTML
Raw Normal View History

2018-08-06 13:16:24 +00:00
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
window.STREAM_KEY = "{{ stream }}"
</script>
2019-10-23 10:43:31 +00:00
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="/dist/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="/dist/css/dashboard.css">
2018-08-06 13:16:24 +00:00
<meta charset="utf-8">
<title>IcyTV Dashboard</title>
</head>
<body>
<nav class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0">
<a class="navbar-brand col-sm-3 col-md-2 mr-0" href="/">IcyTV</a>
<ul class="navbar-nav px-3">
<li class="nav-item text-nowrap">
<a class="nav-link" href="/logout">Sign out</a>
</li>
</ul>
</nav>
<div class="container-fluid">
<div class="row">
<nav class="col-md-2 d-none d-md-block bg-light sidebar">
<div class="sidebar-sticky">
<ul class="nav flex-column">
<li class="nav-item">
2019-10-23 10:43:31 +00:00
<a class="nav-link active go-page" href="#dashboard" data-page="dashboard">
<i class="fa fa-home" aria-hidden="true"></i>
2018-08-06 13:16:24 +00:00
Dashboard <span class="sr-only">(current)</span>
</a>
</li>
2019-10-23 10:43:31 +00:00
<li class="nav-item">
<a class="nav-link go-page" href="#links" data-page="links">
<i class="fa fa-link" aria-hidden="true"></i>
Manage Links
</a>
</li>
2018-08-06 13:16:24 +00:00
</ul>
</div>
</nav>
2019-10-23 10:43:31 +00:00
<main role="main" class="page col-md-9 ml-sm-auto col-lg-10 pt-3 px-4" id="page-dashboard">
2018-08-06 13:16:24 +00:00
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pb-2 mb-3 border-bottom">
<h1 class="h2">Dashboard</h1>
</div>
<iframe allowfullscreen src="" id="myStream" width="1542" height="651" style="display: block; width: 1542px; height: 651px;"></iframe>
<h1 class="h2">Information</h1>
<p class="lead">
2018-08-06 21:15:23 +00:00
<div class="row">
<div class="col-2">
<label>Live</label>
</div>
<div class="col">
<span id="stream_live">No</span>
</div>
</div>
2018-08-06 13:16:24 +00:00
<div class="row">
<div class="col-2">
<label>Stream Server</label>
</div>
<div class="col">
<span>{{ server }}</span>
</div>
</div>
<div class="row">
<div class="col-2">
<label>Stream Key</label>
</div>
<div class="col">
<a href="#" id="show_key">Show Stream Key</a>
</div>
</div>
<div class="row">
<div class="col-2">
<label>Stream Link</label>
</div>
<div class="col">
<a href="" id="stream_url"></a>
</div>
</div>
</p>
2018-08-06 21:15:23 +00:00
<h1 class="h2">Metrics</h1>
<table class="table">
<tbody>
<tr>
<th>Time</th>
<th>Bytes</th>
<th>Video</th>
<th>Audio</th>
</tr>
<tr>
<td><span id="stat_time">&nbsp;</span></td>
<td><span id="stat_bytes">&nbsp;</span></td>
<td>
<table>
<tr>
<th>Width</th>
<th>Height</th>
<th>Frame Rate</th>
<th>Codec</th>
</tr>
<tr>
<td><span id="stat_video_width">&nbsp;</span></td>
<td><span id="stat_video_height">&nbsp;</span></td>
<td><span id="stat_video_frame_rate">&nbsp;</span></td>
<td><span id="stat_video_codec">&nbsp;</span></td>
</tr>
</table>
</td>
<td>
<table>
<tr>
<th>Channels</th>
<th>Sample Rate</th>
<th>Codec</th>
</tr>
<tr>
<td><span id="stat_audio_channels">&nbsp;</span></td>
<td><span id="stat_audio_sample_rate">&nbsp;</span></td>
<td><span id="stat_audio_codec">&nbsp;</span></td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
2018-08-06 13:16:24 +00:00
</main>
2019-10-23 10:43:31 +00:00
<main role="main" class="page col-md-9 ml-sm-auto col-lg-10 pt-3 px-4" id="page-links" style="display: none;">
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pb-2 mb-3 border-bottom">
<h1 class="h2">My Links</h1>
</div>
<p>These links will be automatically available from under the player. You can use it to link your social medias, chats or personal website.</p>
<table class="list table" id="link-list"></table>
<p>Link name can only contain 120 characters and forbids the use of HTML tags.</p>
<form id="add-link">
<input placeholder="Name" id="add-link-name" name="name" />
<input placeholder="URL" id="add-link-url" name="url" />
<input type="submit" value="Add URL">
</form>
</main>
2018-08-06 13:16:24 +00:00
</div>
</div>
<script src="/dist/main.bundle.js"></script>
</body>
</html>