Added custom player that is diplayed if JS is enabled.
This commit is contained in:
parent
949e96d195
commit
4bdbc28f43
@ -36,18 +36,24 @@ html(lang='en')
|
|||||||
a(href='http://radio.arav.i2p/live/stream.ogg') direct link (I2P)
|
a(href='http://radio.arav.i2p/live/stream.ogg') direct link (I2P)
|
||||||
a(href="https://dir.xiph.org/search?q=arav's+dwelling") Xiph
|
a(href="https://dir.xiph.org/search?q=arav's+dwelling") Xiph
|
||||||
| OGG 128 Kb/s
|
| OGG 128 Kb/s
|
||||||
audio(preload='none' controls='')
|
div#radio
|
||||||
source(src='/live/stream.ogg' type='audio/ogg')
|
div.player
|
||||||
| Your browser doesn't support an audio element, it's sad... But you always can take the #[a(href='/playlist') playlist]!
|
button#play
|
||||||
if status.ServerStartDate != ""
|
small#cur-time
|
||||||
p#radio-status On-air since
|
div #[button#vol-down 🔈] #[input#volume(type="range", name="volume" min="0" max="100")] #[button#vol-up 🔊]
|
||||||
time(datetime=status.ServerStartISO8601)= status.ServerStartDate
|
audio(preload='none' controls='' playsinline='')
|
||||||
else
|
source(src='http://radio.arav.home.arpa/stream.ogg' type='audio/ogg')
|
||||||
p#radio-status Radio is offline.
|
| Your browser doesn't support an audio element, it's sad... But you always can take the #[a(href='/playlist') playlist]!
|
||||||
p Now playing: #[span#radio-song #{status.SongName}]
|
div
|
||||||
p Current/peak listeners: #[span#radio-listeners #{status.Listeners}] / #[span#radio-listener-peak #{status.ListenerPeak}]
|
if status.ServerStartDate != ""
|
||||||
p
|
p#radio-status On-air since
|
||||||
small Notice: information updates every 45 seconds. But you can #[button(id='btn-update') update] it forcibly.
|
time(datetime=status.ServerStartISO8601)= status.ServerStartDate
|
||||||
|
else
|
||||||
|
p#radio-status Radio is offline.
|
||||||
|
p Now playing: #[span#radio-song #{status.SongName}]
|
||||||
|
p Current/peak listeners: #[span#radio-listeners #{status.Listeners}] / #[span#radio-listener-peak #{status.ListenerPeak}]
|
||||||
|
p
|
||||||
|
small Notice: information updates every 45 seconds. But you can #[button(id='btn-update') update] it forcibly.
|
||||||
section
|
section
|
||||||
h2 Last #{songsNum} songs
|
h2 Last #{songsNum} songs
|
||||||
table#last-played
|
table#last-played
|
||||||
|
Loading…
Reference in New Issue
Block a user