-# Copyright 2014 - 2016 Paul Hänsch
+# Copyright 2014 - 2017 Paul Hänsch
#
# This file is part of Serve0
#
</select>
<!-- input type="submit" name="submit" value="Find" -->
- <a class="panel" href="${info:+?p=list&${page_this}}${directory:+?p=browse&d=${directory}&${page_this}}#$(urlsafe $info)">Dismiss</a>
+ <a class="panel" href="${_GET[w]:-${info:+?p=list&${page_this}}${directory:+?p=browse&d=${directory}&${page_this}}#$(urlsafe $info)}">Dismiss</a>
</form>
<input type=radio name=topmenu id=btn_playctl><label for=btn_playctl>Audio</label>
<div id="playctl">
<h1>$info</h1>
- <a href="$video">Download</a>
- <form action="?action=playctl" method="post" class="playctl">
- <input type="hidden" name="referrer" value="$(attribsafe "${REQUEST_URI}")">
+ <form action="${actionuri}" method="post" class="playctl">
+ <input type="hidden" name="referrer" value="$(attribsafe "//${HTTP_HOST}${REQUEST_URI}")">
<fieldset class="playback">
<button type="submit" name="seek" value="-60"><<<</button>
<button type="submit" name="seek" value="-10"><<</button>
</fieldset>
<fieldset class="volume">
$(for n in $(seq 0 5 100); do
- printf '<button class="%s" type="submit" name="vol" value="%s"> </button>' "$([ "$volume" = "$n" ] && printf selected)" "$n"
+ printf '<button class="%s" type="submit" name="vol" value="%s"> </button>' \
+ "$( [ "$n" = "$volume" ] && printf selected
+ [ "$n" = "$((volume - 10))" ] && printf llselected
+ [ "$n" = "$((volume - 5))" ] && printf lselected
+ [ "$n" = "$((volume + 5))" ] && printf gselected
+ [ "$n" = "$((volume + 10))" ] && printf ggselected
+ )" "$n"
done)
</fieldset>
</form>