-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
68 lines (64 loc) · 1.27 KB
/
popup.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
<!doctype html>
<html>
<head>
<script src='webcomponents-hi-sd-ce.js'></script>
<script src='common.js'></script>
<script src='popup.js'></script>
<style>
#playlist-tracks {
width: 20em;
}
playlist-track:not(:last-child) {
border-bottom: 1px solid lightgray;
}
</style>
</head>
<body>
<div id='playlist-tracks'></div>
<!-- these style rules only necessary due to incomplete polyfills -->
<style>
playlist-track {
display: block;
}
playlist-track #text {
cursor: pointer;
}
playlist-track[playing] {
font-weight: bold;
cursor: default;
}
playlist-track #progress {
display: none;
}
playlist-track[playing] #progress {
display: block;
width: 100%;
}
</style>
</body>
<template id='playlist-track'>
<div class='track'>
<style>
:host {
display: block;
}
:host #text {
cursor: pointer;
}
:host([playing]) {
font-weight: bold;
cursor: default;
}
:host #progress {
display: none;
}
:host([playing]) #progress {
display: block;
width: 100%;
}
</style>
<div id='text'></div>
<input type='range' id='progress' min='0' max='1' step='any'></input>
</div>
</template>
</html>