Scorch/templates/index.html

55 lines
2.0 KiB
HTML
Raw Normal View History

2020-05-07 15:31:49 -04:00
<!DOCTYPE html>
<html lang="en">
<head>
<title>Scorch</title>
<link rel="stylesheet" type="text/css" href="/static/scorch.css">
2020-05-11 12:41:26 -04:00
<script>const ws_uri = "{{ url('ws') }}";</script>
2020-05-07 15:31:49 -04:00
<script type="text/javascript" src="/static/scorch.js"></script>
2020-05-11 12:41:26 -04:00
<script>window.onload = load;</script>
2020-05-07 15:31:49 -04:00
<meta name="viewport" content="width=device-width, initial-scale=0.8">
2020-06-15 09:57:23 -04:00
<meta name="description" content="A music streaming platform.">
2020-05-07 15:31:49 -04:00
</head>
<body>
<main>
2020-06-15 09:57:23 -04:00
<div id="header">
2020-06-17 07:17:16 -04:00
<object id="logo" aria-label="Scorch logo" data="/static/scorch.svg"></object>
2020-06-15 09:57:23 -04:00
<h1>Scorch</h1>
</div>
<div id="artistListContainer" class="list">
2020-06-16 10:11:38 -04:00
<select id="artistList" aria-label="Artist list" size="2" class="list" onchange="select_artist(this)">
2020-06-15 09:57:23 -04:00
{% for artist in artists %}
<option value="{{ artist }}">{{ artist }}</option>
{% endfor %}
</select>
</div>
<div id="albumListContainer" class="list">
2020-06-16 10:11:38 -04:00
<select id="albumList" aria-label="Artist list" size="2" class="list" onchange="select_album(this)">
2020-06-15 09:57:23 -04:00
</select>
</div>
<div id="trackListContainer" class="list">
2020-06-16 10:11:38 -04:00
<select id="trackList" aria-label="Artist list" size="2" class="list" onchange="select_track(this)">
2020-06-15 09:57:23 -04:00
</select>
</div>
<div id="playerContainer">
2020-06-16 10:11:38 -04:00
<span id="albumCover"><img alt="Album cover art" src=""></span>
2020-06-15 09:57:23 -04:00
<span id="playerControls">
<h4><span id="nowPlayingArtist"></span> - <span id="nowPlayingAlbum"></span></h4>
<h3 id="nowPlayingTitle"></h3>
<audio id="player" controls>
<source id="stream" src="" type="audio/ogg">
</audio>
<div>
<input type="checkbox" name="shuffle" id="shuffle" checked="true">
<label for="shuffle">Shuffle</label>
</div>
</span>
</div>
2020-08-14 22:36:20 -04:00
<div id="debugContainer">
<input type="checkbox" name="showDebug" id="showDebug" onchange="show_debug(this)">
<label for="showDebug">Show Debug Log</label>
<pre><ul id="debugLog" style="display:none"></ul></pre>
</div>
2020-05-07 15:31:49 -04:00
</main>
</body>
</html>