-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathfamous.html
88 lines (77 loc) · 2.11 KB
/
famous.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
<head>
<meta name="viewport" content="width=device-width, maximum-scale=1, user-scalable=no" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>famous</title>
</head>
<body>
</body>
<template name="layout">
{{>famous template='yieldFooter' modifier='inFront' size='undefined,50'}}
{{>famous template='yieldMain' size='undefined,undefined'}}
</template>
<template name="yieldMain">
<div>{{>yield}}</div>
</template>
<template name="yieldFooter">
<div>{{>yield region='footer'}}</div>
</template>
<template name="footer">
<div class="tabs tabs-icon-top">
<a class="tab-item" href="/">
<i class="icon ion-home"></i>
Home
</a>
<a class="tab-item" href="/leaderboard">
<i class="icon ion-star"></i>
Leaderboard
</a>
<a class="tab-item" href='/loading'>
<i class="icon ion-gear-a"></i>
Settings
</a>
</div>
</template>
<template name="leader_footer">
<div class="tabs tabs-icon-top">
<a class="tab-item" href="/">
<i class="icon ion-home"></i>
Home
</a>
{{#if selected_name}}
<button class="button button-positive">
Give 5 points to
<span style="color:yellow">{{selected_name}}</span>
</button>
{{else}}
<a class="tab-item"><h5>Select to vote</h5></a>
{{/if}}
<a class="tab-item" href="/loading">
<i class="icon ion-gear-a"></i>
Settings
</a>
</div>
</template>
<template name="home">
{{>famous template='_home' size='undefined,300'}}
</template>
<template name="_home">
<h1>Welcome to <br> Famous Meteor Leaderboard</h1>
</template>
<template name="leaderboard">
{{#famous view='Scrollview' size='undefined,undefined' players=players}}
{{#famousEach data=../players size='undefined,100'}}
{{>player}}
{{/famousEach}}
{{/famous}}
</template>
<template name="player">
<div class="item {{selected}} ">
<span class="name">{{name}} - <b>{{score}}</b></span>
</div>
</template>
<template name="loading">
{{#famous size='100,100'}}
<h1>loading data</h1>
{{/famous}}
</template>