-
Notifications
You must be signed in to change notification settings - Fork 0
/
partify-mobile.html
61 lines (52 loc) · 1.08 KB
/
partify-mobile.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
<head>
<title>Partify</title>
</head>
<body>
{{> hello}}
{{> songSubmission}}
{{> playlist}}
</body>
<template name="hello">
<div class="hello">
<div class="topbar">
{{> user}}
</div>
<h1>Parti.fi</h1>
{{> events}}
<div id="fb-root"></div>
</div>
</template>
<template name="user">
<div id="user-info">
{{#if user}}
{{user.name}} <img src="https://graph.facebook.com/{{user.id}}/picture">
{{else}}
<a href="#" class="fblogin">Login</a>
{{/if}}
</div>
</template>
<template name="events">
<ul id="events">
{{#each eventlist}}
<li class="event" id="{{id}}">{{name}}</li>
{{/each}}
</ul>
</template>
<template name="songSubmission">
<div> <!-- needed due to some stupid bug -->
<form id='song-submission'>
<input id='song-track' placeholder='eg. lady gaga born this way' />
<input type='submit' value='ADD!' />
</form>
</div>
</template>
<template name="playlist">
<div>
<h1>Playlist</h1>
<ul>
{{#each songs}}
<li>{{name}} {{artist}} {{href}}</li>
{{/each}}
</ul>
</div>
</template>