forked from rissem/friend-sound
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfriend-sound.html
67 lines (61 loc) · 1.29 KB
/
friend-sound.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
<head>
<title>friend-sound</title>
<script type="text/javascript" src="/jquery-knob.js"></script>
<script type="text/javascript" src="/tomahk.api.js"></script>
</head>
<body>
{{> knobs }}
{{> audioplayer }}
{{> playlist }}
{{> players }}
<div style="text-align: center;">
<br><br>
<a href="https://github.com/Aeon/friend-sound">source code on github</a>
<br>
hackery by Anton Stroganov, Michael Risse and James Gill
</div>
</body>
<template name="playlist">
<div>
<div id="now-playing">
<h2>Now Playing</h2>
{{#if current_song}}
{{> song current_song}}
{{/if}}
</div>
<div id="playlist">
<h2>Coming Next</h2>
{{#each songs}}
{{> song }}
{{/each}}
</div>
</div>
</template>
<template name="audioplayer">
<div id="tomahawk-player"></div>
</template>
<template name="players">
{{#if show}}
<div id="players">
{{#each players}}
{{> player }}
{{/each}}
</div>
{{/if}}
</template>
<template name="player">
<div class="player">
<div class="header">
{{#if name}}
{{name}}
{{else}}
<span class="unnamed">anonymous</span>
{{/if}}
</div>
</div>
</template>
<template name="song">
<div>
<strong>{{title}}</strong> by <strong>{{artist_name}}</strong>
</div>
</template>