-
Notifications
You must be signed in to change notification settings - Fork 16
/
songNotification.html
103 lines (103 loc) · 2.24 KB
/
songNotification.html
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<html><head><title>New Song</title>
<style type="text/css">
body {
background-image: -webkit-gradient(
linear,
left bottom,
left top,
color-stop(0.3, rgb(220,220,220)),
color-stop(0.66, rgb(245,245,245))
);
text-align: left;
font-family: Helvetica,Arial,sans-serif;
width: 284px;
height: 140px;
overflow: hidden;
}
#avatar {
float: right;
max-height: 40px;
padding-right: 10px;
margin: 0 10px 10px 0;
}
#playing {
margin: 10px 0 5px 10px;
}
#playing #dj {
font-size: 14px;
font-weight: bold;
}
#playing .small {
margin: 0;
font-size: 11px;
}
.scrollable {
width: 100%;
height: 18px;
overflow: hidden;
position: relative;
}
#artist {
clear: both;
width: 260px;
margin: 0 10px;
font-weight: bold;
}
#track {
width: 260px;
margin: 0 10px;
}
#vote {
position: relative;
margin: 10px auto 0 auto;
height: 25px;
padding: 8px 0;
width: 150px;
}
.button {
border-radius: 3px;
width: 65px;
height: 24px;
display: inline-block;
text-align: center;
text-decoration: none;
cursor: pointer;
}
#downvote {
float: left;
background: #f72b00 url(/images/thumbsDownWhite.png) center center no-repeat;
}
#upvote {
float: left;
margin-left: 20px;
background: #00c82f url(/images/thumbsUpWhite.png) center center no-repeat;
}
#downvote:hover {
background-color: #e31700;
}
#upvote:hover {
background-color: #00ab12;
}
#downvote:active {
background: #f72b00 url(/images/thumbsDownBlack.png) center center no-repeat;
}
#upvote:active {
background: #00c82f url(/images/thumbsUpBlack.png) center center no-repeat;
}
#sound {
display: none;
}
</style>
<script type="text/javascript" src="scripts/songNotification.js"></script>
</head>
<body>
<img src="https://s3.amazonaws.com/static.turntable.fm/roommanager_assets/avatars/5/headfront.png" title="" id="avatar" />
<div id="playing"><span id="dj"></span><p class="small">started playing</p></div>
<div id="trackInfo">
<p id="artist"></p>
<p id="track"></p>
</div>
<div id="vote"><div id="downvote" class="button" title="Lame"></div><div id="upvote" class="button" title="Awesome"></div></div>
<div id="sound"></div>
</body>
</html>