-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathplaying.html
More file actions
53 lines (53 loc) · 1.48 KB
/
playing.html
File metadata and controls
53 lines (53 loc) · 1.48 KB
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
<?php include('assets/includes/sonicflow.php'); ?>
<?php
$refresh = 1;
$song_data = getNext();
$song = $song_data[1];
$cached = $song_data[2];
$from = "playing";
?>
<?php include('header.html'); ?>
<script type="text/javascript">
<?php if ($cached == 0) { ?>
var dot_count = 0;
function blinkdots() {
var dots = "";
for (var i = 0; i < dot_count; i++) {
dots += ".";
}
$('#buffering').text("Buffering" + dots);
dot_count++;
dot_count %= 4;
}
setInterval(blinkdots, 300);
<?php } ?>
setTimeout(getUpdate, 1500);
</script>
<?php
if ($song->id == '') {
?>
<div class="emptyQueue">
<div id="songId" style="display:none"></div>
No song is currently playing. Check back later.
</div>
<?php
} else {
?>
<div class="playing">
<center>
<div id="currentSong">
<div id="songId" style="display:none"><?php echo $song->id; ?></div>
<p class="songTitle"><?php echo $song->title;?></p> by <p class="songArtist"><?php echo $song->artist; ?></p><br />
on <p class="songAlbum"><?php echo $song->album; ?></p>
</div>
</center>
<br />
<?php if ($cached == 0) { ?>
<h1 id="buffering" style="position:absolute;top:160px;left:145px;">Buffering...</h1>
<?php } else { ?>
<img id="currentArt" src="<?php echo $song->arturl; ?>" alt="" />
<?php } ?>
</div>
<a href="#" onclick="maximize()" id="fullScreen">Full Screen</a>
<?php } ?>
<?php include('footer.html'); ?>