forked from plapier/myfaves.fm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
62 lines (56 loc) · 1.51 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
<head>
<meta charset="utf-8">
<title>Favs.fm</title>
<link rel="stylesheet" href="stylesheets/application.css">
<!-- <script src="http://connect.soundcloud.com/sdk.js"></script> -->
<script type="text/javascript" src="//use.typekit.net/rkw1rla.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
</head>
<body>
{{> RenderTemplate}}
</body>
<template name="RenderTemplate">
{{#if has_username.length}}
{{> RenderPlaylist}}
{{else}}
{{> Username}}
{{/if}}
</template>
<template name="Username">
<section class="main landing">
<div class="overlay">
<input type="text" id="username-input" placeholder="ex.fm username..." autofocus>
</div>
</section>
</template>
<template name="RenderPlaylist">
{{> Header}}
<section class="main playlist">
<ol id="tracks">
{{> Songs}}
</ol>
</section>
</template>
<template name="Header">
<header class="playlist-header">
<h1>myfaves.fm</h1>
<input type="text" value="{{ current_username }}">
</header>
</template>
<template name="Songs">
{{#each Track}}
<li class="track not-playing">
<a href="#" id="{{ id }}">
<span class="playtoggle"></span>
<div class="track-title">
<span class='artist'>{{ artist }}</span> – <span class='title'>{{ title }}</span>
</div>
</a>
<div class="progress"></div>
<div class="buffer"></div>
<audio preload="none">
<source src="{{ url }}">
</audio>
</li>
{{/each}}
</template>