1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
| <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Zeromedia Web Client</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/mqttws31.js" type="text/javascript"></script>
<script src="zeromedia.js" type="text/javascript"></script>
</head>
<body onload="init();">
<div class="container">
<div class="row">
<div class="col-md-9 col-xs-12">
<h1>Zeromedia Web Client</h1>
<div id="mqtt" class="text-warning">MQTT: not connected</div>
<div id="error" class="text-danger"></div>
<div id="status">
<h2>Status</h2>
<div class="state"></div>
<div class="position">
Position: <span class="text"></span>
<input type="range" class="progress" value="0" max="100"></input>
</div>
<div class="volume">
Volume: <span class="text"></span>
<input type="range" class="progress" value="0" max="100"></input>
</div>
<div class="raw"></div>
</div>
<div id="command">
<h2>Commands</h2>
<a class="btn btn-default btn-lg" href="#" role="button" id="pause">Pause</a>
<a class="btn btn-default btn-lg" href="#" role="button" id="stop">Stop</a>
<a class="btn btn-default btn-lg" href="#" role="button" id="previous">Previous</a>
<a class="btn btn-default btn-lg" href="#" role="button" id="next">Next</a>
</div>
</div>
</div>
</div>
</body>
</html>
|