This repository has been archived by the owner on Jan 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
93 lines (83 loc) · 2.76 KB
/
index.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
<!DOCTYPE HTML>
<html>
<head>
<meta charset='utf-8'>
<title>BümBöx</title>
<link rel="stylesheet" href="css/app.css">
<script src="js/libs/handlebars-1.0.rc.4.js"></script>
<script src="js/libs/jquery-2.0.2.js"></script>
<script src="js/libs/ember.js"></script>
<script src="js/app.js"></script>
<script src="js/fixtures.js"></script>
<script src="tests/load-tests.js"></script>
</head>
<body>
<script type="text/x-handlebars">
<header><h1>BümBöx</h1></header>
{{outlet}}
{{render 'nowPlaying'}}
</script>
<script type="text/x-handlebars" id="index">
<div class="album-list">
{{#each}}
<div class="album">
{{#linkTo 'album' this}}
<img {{bindAttr src=artwork}}>
{{/linkTo}}
<p class="album-name">{{name}}</p>
<p class="album-artist">{{artist}}</p>
<p class="song-count">
8 songs
{{#if isExplicit}}<span class="explicit">EXPLICIT</span>{{/if}}
</p>
</div>
{{/each}}
</div>
</script>
<script type="text/x-handlebars" id="album">
<div class="album-info">
<img {{bindAttr src=artwork}}>
<h1>{{name}}</h1>
<h2>{{artist}}</h2>
</div>
<table class="album-listing">
{{#each songs}}
<tr>
<td class="song-track">
<span class="track-number">{{track}}</span>
<span class="play" {{action 'play' this}}>▶</span>
</td>
<td class="song-name">{{name}}</td>
<td class="song-duration">{{format-duration duration}}</td>
</tr>
{{/each}}
<tr>
<td class="total-duration" colspan="3">Total Time: {{format-duration totalDuration}}</td>
</tr>
</table>
</script>
<script type="text/x-handlebars" id="nowPlaying">
<footer class="now-playing">
{{#if model}}
<img class="now-playing-artwork" {{bindAttr src=album.artwork}}>
<div class="now-playing-body">
<p class="now-playing-details">
<span class="now-playing-name">{{name}}</span> -
<span class="now-playing-artist">{{album.artist}}</span>
</p>
<div class="now-playing-player">
{{audio-player src=url}}
</div>
</div>
{{else}}
<span class="now-playing-empty">Select a song to start playing.</span>
{{/if}}
</footer>
</script>
<script type="text/x-handlebars" id="components/audio-player">
<audio autoplay {{bindAttr src=src}}></audio>
</script>
<div id="qunit" style="display: none"></div>
<div id="qunit-fixture" style="display: none"></div>
</body>
</html>