-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrnet.html
65 lines (55 loc) · 1.43 KB
/
rnet.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
---
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" type="text/css" media="all" href="somafm.css" />
<script src="somafm.js"></script>
<style>
body
{
font: 12pt 'Segoe UI', 'Helvetica Neue', 'Helvetica', sans-serif;
}
.button
{
display: inline-block;
width: 40px;
height: 40px;
padding: 5px;
background-color: rgb(67, 131, 214);
color: white;
border: 1px solid silver;
cursor: pointer;
margin: 5px;
}
</style>
<script>
function rnet(cmd)
{
loadXMLDoc('/cgi-bin/rnet.cgi?'+cmd, parse_rnet );
}
function parse_rnet()
{
}
function rnet_zoneon(zone)
{
rnet("on " + zone)
}
function rnet_zoneoff(zone)
{
rnet("off " + zone)
}
</script>
<p><a href="somafm.html">Music Player</a></p>
{% assign zone_names = "zero, Foyer, Deck, Kitchen, Dining Room, Family Room, Front Porch" | split: ", " %}
{% for zone in (1..6) %}
<h1>{{zone_names[zone]}}</h1>
<span class='button' onclick='rnet_zoneon({{zone}})'>On</span>
<span class='button' onclick='rnet_zoneoff({{zone}})'>Off</span>
<span class='button' onclick='rnet("source {{zone}} 1")'>1</span>
<span class='button' onclick='rnet("source {{zone}} 2")'>2</span>
<!--
<span class='button' onclick='rnet("source 1 3")'>3</span>
<span class='button' onclick='rnet("source 1 4")'>4</span>
<span class='button' onclick='rnet("source 1 5")'>5</span>
<span class='button' onclick='rnet("source 1 6")'>6</span>
-->
{% endfor %}