-
Notifications
You must be signed in to change notification settings - Fork 1
/
nowplaying.template
86 lines (68 loc) · 2.1 KB
/
nowplaying.template
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
<!doctype html>
<html>
<head>
<meta charset="UTF-8" http-equiv="refresh" content="10">
<link href='http://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>
<title></title>
<script>
function showImage() {
var images = 'TRACK_INFO_ARTIST_IMAGES_URL_LIST'.split(',');
var currentItem = (new Date().getMinutes() % images.length);
// document.getElementById('image').innerHTML = '<img style="max-height:40%;width:auto;max-width:90%;" src="' + images[currentItem] + '" />';
}
</script>
<style>
.background-image {
position: fixed;
left: 0;
right: 0;
z-index: 1;
display: block;
background: url('TRACK_INFO_IMAGE_URL') no-repeat center center fixed;
background-size: cover;
width: 100%;
height: 100%;
-webkit-filter: blur(10px) brightness(30%);
}
.content {
position: absolute;
left: 20px;
right: 0;
top: 20px;
z-index: 9999;
}
body{
text-align:center;
font-family: Inconsolata;
}
</style>
</head>
<body
onload="showImage()"
text="white"
>
<div class="background-image">
</div>
<!--<div id="image"></div>-->
<div class="content">
<table height=100%>
<tr>
<td width=40% align=center valign=middle>
<div id="image">
<img src="TRACK_INFO_IMAGE_URL"/>
<hr/>
<h1>TRACK_INFO_TITLE</h1>
<h2>TRACK_INFO_ARTIST</h2>
<h3>TRACK_INFO_ALBUM</h3>
</div>
</td>
<td width=60% align=center valign=middle>
<div id="lyrics"
style="margin-left:auto; margin-right:auto; width:800px; height: 90%; overflow-y: scroll;">
TRACK_INFO_LYRICS_HTML
</div>
</td>
</tr>
</table>
</div>
</body></html>