-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
47 lines (40 loc) · 1.42 KB
/
index.html
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
47
<html>
<head>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="radio.js"></script>
<script>
$(document).ready(function() {
$('#url .value').text(radio.url);
radio.getSessionId(function(radio) {
$('#session-id .value').text(radio.sessionId);
radio.getFriendlyName(function(radio) {
$('#friendly-name .value').text(radio.friendlyName);
});
radio.getVolumeSteps(function(radio) {
$('#volume-steps .value').text(radio.volumeSteps);
});
radio.getPlayInfoName(function(radio) {
$('#play-info-name .value').text(radio.playInfoName);
});
radio.getPlayInfoText(function(radio) {
$('#play-info-text .value').text(radio.playInfoText);
});
radio.getVolume(function(radio) {
$('#volume .value').text(radio.volume);
});
});
});
</script>
</head>
<body>
<div id="url">URL: <span class="value"></span></div>
<div id="session-id">Session ID: <span class="value"></span></div>
<div id="friendly-name">Friendly name: <span class="value"></span></div>
<div id="volume-steps">Volume steps: <span class="value"></span></div>
<div id="volume">Current volume: <span class="value"></span></div>
<div id="play-info-name">
Now playing: <span class="value"></span>
<div id="play-info-text">[<span class="value"></span>]</div>
</div>
</body>
</html>