-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
108 lines (99 loc) · 1.98 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<html>
<head>
<title>Spotify remote</title>
<meta name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1">
<style>
body {
background-color:#aaa;
font-family:Arial;
}
#content {
margin:auto;
width:300px;
min-height:300px;
text-align:center;
background:url('/art');
}
.button {
font-size:22pt;
width: 236px;
margin:3px;
height:50px;
}
.song {
padding:3px;
}
.name {
padding:1px;
font-size:18pt;
text-shadow:0 0 4px black;
color:white;
}
.artist {
padding:1px;
font-size:24pt;
text-shadow:0 0 4px black;
color:white;
}
#volume {
height:10px;
}
.volumebox {
height:19px;
width:19px;
float:left;
border:2px solid #333;
margin:1px;
}
.filled {
background-color:#222;
}
.volumebutton {
width:20px;
height:20px;
background-color:#eee;
float:left;
border:none;
margin-left:2px;
margin-right:2px;
margin-top:2px;
}
</style>
</head>
<body>
<div id="content">
<div class="song">
<div class="name">{{ track_name }}</div>
<div class="artist">{{ track_artist }}</div>
</div>
<div id="buttons">
<form action="/do" method="post">
{% for verb in verbs %}
<div class="buttonrow">
<input class="button" type="submit" name="verb" value="{{ verb }}" />
</div>
{% end %}
</form>
</div>
<div id="volume">
<div class="volumecontrol">
<form action="do" method="post">
<input class="volumebutton" type="submit" name="verb" value="-"/>
</form>
</div>
{% for i in xrange(0, volume_filled) %}
<div class="volumebox filled" ></div>
{% end %}
{% for i in xrange(0, volume_empty) %}
<div class="volumebox empty" /></div>
{% end %}
<div class="volumecontrol">
<form action="do" method="post">
<input class="volumebutton" type="submit" name="verb" value="+"/>
</form>
</div>
</div>
</div>
</body>
</html>