]> git.plutz.net Git - serve0/blob - templates/playpanel.html.sh
f3a9f158b2a5a043e4dcf22e53fe0f635c69de42
[serve0] / templates / playpanel.html.sh
1 # Copyright 2016 Paul Hänsch
2 #
3 # This file is part of Serve0
4
5 # Serve0 is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Affero General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9
10 # Serve0 is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU Affero General Public License for more details.
14
15 # You should have received a copy of the GNU Affero General Public License
16 # along with Serve0  If not, see <http://www.gnu.org/licenses/>. 
17
18 cat <<EOF
19   <div class="panel" id="playctl">
20      <a class="panel toggle" href="#">Hide</a>
21      <form action="?action=playctl" method="post">
22        <button type="submit" name="seek" value="-60">&lt;&lt;&lt;</button>
23        <button type="submit" name="seek" value="-10">&lt;&lt;</button>
24        <button type="submit" name="ctl" value="stop">&#x25a0;</button>
25        <button type="submit" name="ctl" value="pause">|| / &#x25b6;</button>
26        <button type="submit" name="seek" value="+10">&gt;&gt;</button>
27        <button type="submit" name="seek" value="+60">&gt;&gt;&gt;</button>
28        <br>
29        <button type="submit" name="amp" value="off">Amp Off</button>
30        <button type="submit" name="amp" value="on">Amp On</button>
31        <br>
32        $(for n in $(seq 0 5 100); do
33          printf '<button class="%s" type="submit" name="vol" value="%s">&nbsp;</button>' "$([ "$volume" = "$n" ] && printf selected)" "$n"
34        done)
35        <br>
36        <button type="submit" name="osd" value="progression">Progress</button>
37      </form>
38   </div>
39 EOF
40
41 # vi:set filetype=html: