forked from YarivGilad/lower-thirds
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
259 lines (245 loc) · 7.04 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Overlay Broadcast Oriented Infographics Editing">
<meta name="author" content="Ilana Hakim">
<!-- for FF, Chrome, Opera -->
<link rel="icon" type="image/png" href="/favicon-16x16.png" sizes="16x16">
<link rel="icon" type="image/png" href="/favicon-32x32.png" sizes="32x32">
<!-- for IE -->
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<title>Lower Thirds</title>
</head>
<body>
</body>
<!--######## app ########-->
<template name="app">
{{> nav}}
{{> main}}
<!-- {{> footer}} -->
<!-- {{> loading}} -->
</template>
<!--######## nav ########-->
<template name="nav">
<div class="ui inverted main menu">
<div class="item logo">
<img src="/LowerThirdsLogo.png">
Lower Thirds
</div>
{{#if currentUser}}
<div class="ui right dropdown item">
{{> avatar user=currUser shape="circle" size="small"}}
<a href="/logout">Logout</a>
</div>
{{/if}}
</div>
</template>
<!--######## main ########-->
<template name="main">
{{#if currentUser}}
<div class="ui container">
<p></p>
<div class="ui right floated horizontal statistic">
<div class="value">
{{rooms.count}}
</div>
<div class="label">
Rooms
</div>
</div>
<div class="ui statistic">
<div class="label">Hi {{userID}}, you have </div>
</div>
</div>
<p> </p>
<div class="ui raised very padded container segment">
<button id="newRoom" class="ui teal button">
<i class="icon plus"></i> New Room
</button>
<br/><br/>
<div class="ui cards">
{{#each rooms}}
{{> room}}
{{/each}}
<!-- <a id="newRoom" class="ui card center" style="min-height: 7em;">
<button class="circular ui icon teal button">
<i class="icon plus"></i>
</button>
</a> -->
</div>
<!-- <button id="newRoom" class="ui right floated icon teal circular button">
<i class="icon plus"></i>
</button> -->
</div>
<br/>
{{else}}
<h1 class="ui header">Welcome to Lower Thirds!</h1>
{{> loginButtons}}
{{/if}}
</template>
<!--######## room ########-->
<template name="room">
{{#if isNew}}
<a class="ui card orange">
<div class="content">
<a class="ui orange right ribbon label">New</a><br/><br/>
<div class="ui form"><input type="text" id="roomTitle" value="{{title}}"></div>
</div>
<div class="content">
<a class="header"></a>
<div class="meta">
<span class="date">Last updated at {{prettifyDate updatedAt}}, by {{userName editorID}}</span>
</div>
<div class="description">Owned by {{userName ownerID}}
</div>
</div>
<div class="extra content">
<a class="ui button" href="/room/:{{_id}}">Enter Room</a>
</div>
</a>
{{else}}
<a class="ui card {{#if slots.count}}olive{{/if}} {{#if isNew}}orange{{/if}}" href="/room/:{{_id}}">
<div class="content">
{{#if slots.count}}
<a class="ui olive right ribbon label">{{slots.count}} Slots</a>
{{else}}
<a class="ui grey right ribbon label">No slots</a>
{{/if}}
<div class="header">{{title}} </div>
</div>
<div class="content">
<a class="header"></a>
<div class="meta">
<span class="date">Last updated at {{prettifyDate updatedAt}}, by {{userName editorID}}</span>
</div>
<div class="description">Owned by {{userName ownerID}}
</div>
</div>
<div class="extra content">
<a class="ui button" href="/room/:{{_id}}">Enter Room</a>
</div>
</a>
{{/if}}
</template>
<!--######## roomPage ########-->
<template name="roomPage">
{{> nav}}
{{#if currentUser}}
<div class="ui container">
<p></p>
<div class="ui basic mini buttons">
<a class="ui button" href="/">
<i class="left arrow icon"></i>
Back
</a>
</div>
<div class="ui right floated horizontal statistic">
<div class="value">
{{slots.count}}
</div>
<div class="label">
Slots
</div>
</div>
<div class="ui statistic">
<div class="label">{{title}} </div>
</div>
</div>
<br/>
<div class="ui raised padded container segment clearing">
<button id="newSlot" class="ui teal button">
<i class="icon plus"></i> New Slot
</button>
<br/><br/>
<div class="ui compact clearing segments">
{{#each slots}}
{{> slot}}
{{/each}}
</div>
<div class="ui container">
<!-- {{#if slots.count}} -->
<div class="ui embed shadow dimmable dimmed active" >
{{#each slots}}
{{> slotOver}}
{{/each}}
</div>
<!-- {{/if}} -->
</div>
</div>
{{else}}
{{> loginButtons}}
{{/if}}
</template>
<!--######## slot ########-->
<template name="slot">
{{#if isNew}}
<div class="ui segment orange">
<div class="ui corner left label mini"><i class="write icon"></i></div>
<div class="ui form"><input type="text" id="slotName" value="{{name}}"></div>
</div>
{{else}}
<div class="ui segment {{#if isEdited}}disabled{{/if}} {{#if isPlaying}}yellow{{/if}}">
{{#if isEdited}}
<div class="ui corner left label mini"><i class="lock icon"></i></div>
{{/if}}
{{name}}
{{#if isEdited}}
{{else}}
<div class="ui right floated icon button circular tiny">
{{#if isPlaying}}
<i class="stop icon"></i>
{{else}}
<i class="play icon"></i>
{{/if}}
</div>
{{/if}}
</div>
{{/if}}
</template>
<!--######## slotOver ########-->
<template name="slotOver">
<!-- {{#if posRight}}right:{{posRight}} !important;{{/if}}
{{#if posBottom}}bottom:{{posBottom}} !important;{{/if}} -->
<div id="{{_id}}" class="ui simple dimmer slot {{#if isPlaying}}active{{/if}}" alt="{{name}}"
style="{{#if posLeft}}left:{{posLeft}} !important;{{/if}}
{{#if posTop}}top:{{posTop}} !important;{{/if}}
position:absolute;">
<div class="ui corner left label mini dragg-handle"><i class="move icon"></i></div>
{{main_text}}<br>
{{secondary_text}}<br>
<div class="ui right floated icon button circular tiny">
{{#if isPlaying}}
<i class="stop icon"></i>
{{else}}
<i class="play icon"></i>
{{/if}}
</div>
</div>
</template>
<!-- <template name="footer">
<div class="main footer">
<div class="ui divider"></div>
<div class="ui divided horizontal footer link list">
<div class="item">
satisfy
</div>
<div class="item">
v 0.1.1
</div>
<div class="item">
© Anachron
</div><a href="https://github.com/Anachron/satisfy" class="item">Homepage</a>
</div>
</div>
</template>
<template name="loading">
<div class="ui active inverted main dimmer" style="display: none;">
<div class="loader">
Loading, please wait.
</div>
</div>
</template>
-->