This repository has been archived by the owner on May 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathindex.html
549 lines (421 loc) · 20.6 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
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>PowerUp Story Sequence Designer</title>
<meta name="PowerUp Story Sequence Designer" content="">
<link href="library/simplebar/simplebar-2.6.1.css" rel="stylesheet" type="text/css">
<link href="library/noty/noty.css" rel="stylesheet" type="text/css">
<link href="css/app.less" rel="stylesheet/less" type="text/css" />
</head>
<body>
<!-- Preloader screen -->
<div class="preloader-container">
<div class='loader'>
<div class='loader--dot'></div>
<div class='loader--dot'></div>
<div class='loader--dot'></div>
<div class='loader--dot'></div>
<div class='loader--dot'></div>
<div class='loader--dot'></div>
<div class='loader--text'></div>
</div>
</div>
<!-- Help menu popup -->
<div class="popup-container" id="help-popup">
<div class="popup-container-inner" id="help-popup-inner">
<div class="popup-close-button" id="help-close">
<div>X</div>
</div>
<div v-on:click="focus" class="popup-content-container" id="popup-content-help">
<div class="popup-content-columns">
<div class="popup-column left-column">
<ul>
<strong>General</strong>
<br>
<br>
<li>This is a tool for creating automated step-through story sequences in PowerUp.</li>
<li>Each card represents a 'step', with a left and right event.</li>
<li>It's features include:</li>
<ul>
<li>Undo/Redo History</li>
<li>Multiple Saved States</li>
<li>Export work session file in JSON format.</li>
<li>Export StorySequences.json, a file that can be dropped into PowerUp.</li>
</ul>
<li>Media assets between this project and the main PowerUp repos will need to be manually kept in sync.</li>
<li>
<i>Best in Chrome</i>
</li>
<li>
<i>Works in Firefox and Safari</i>
</li>
</ul>
<ul>
<strong>Basic Functions</strong>
<br>
<br>
<li>click the add button to add new cards</li>
<li>click a card or thumbnail to focus</li>
<li>new cards default to the `'no change'` setting for image and position fields</li>
<ul>
<li>this means a new card will automatically visualize the image and position from the previous card</li>
<li>changing a prior card will auto-update any cards that would be affected due to a `no change` setting</li>
</ul>
</ul>
<ul>
<strong>Hotkeys</strong>
<br>
<br>
<li>`ctrl + n` - add a new card</li>
<li>`ctrl + z` - undo action</li>
<li>`ctrl + y` - redo action</li>
<li>`ctrl + s` - save over last saved state</li>
<li>`ctrl + d` - prompt to download
<strong>work session</strong> file</li>
<li>`ctrl + u` - prompt to upload
<strong>work session</strong> file</li>
<li>`delete` - delete the currently focused card (currently the only way to delete a card)</li>
</ul>
</div>
<div class="popup-column right-column">
<ul>
<strong>Saved States</strong>
<br>
<br>
<li>clicking an empty slot and selecting save will prompt you to name the slot, return to save</li>
<li>after saving, you can save over the same slot without being prompted for confirmation</li>
<li>if you select a differe but previously filled slot, you will be prompted to confirm your selection</li>
<li>renaming a slot will not affect the saved state</li>
<li>loading a slot will load the saved state and close the menu</li>
<li>select a slot and clicking delete will prompt you for confirmation</li>
</ul>
<ul>
<strong>Export</strong>
<br>
<br>
<ul>
<i>Download</i>
<li>this will prompt you to name your work session for download</li>
<ul>this json file is different from StorySequences.json
<li>it stores your current open work and saved states</li>
</ul>
<li>it will download to your normal web downloads folder</li>
</ul>
<br>
<ul>
<i>Upload</i>
<li>this will open a file dialog where you can select a previously downloaded work session json</li>
<li>it will restore your complete session, including current work, current history, and saved states</li>
</ul>
<br>
<ul>
<i>Export</i>
<li>before selecting this option, fill out the grid in the lower section of the popup</li>
<li>you should select saved states that are properly labeled for each intro and outro</li>
<li>then, clicking export will export will download StorySequences.json to your normal web downloads folder
<ul>
<li>StorySequences.json is formatted for use in PowerUp, just replace the same file in the project folder</li>
<li>it's ok to leave empty fields before exporting, especially for development and testing</li>
</ul>
</li>
</ul>
</ul>
</div>
</div>
<div class="popup-content-footer">
</div>
</div>
</div>
</div>
<!-- Saved state menu popup -->
<div class="popup-container" id="saved-state-popup">
<div class="popup-container-inner" id="saved-state-popup-inner">
<div class="popup-close-button" id="saved-state-close">
<div>X</div>
</div>
<div v-on:click="focus" class="popup-content-container" id="popup-content-states">
<div class="popup-content-header">
<button class='popup-content-button popup-content-button-faded' id='save-state-button' v-on:click="handleSave">Save</button>
<button class='popup-content-button popup-content-button-faded' id='load-state-button' v-on:click="handleLoad">Load</button>
<button class='popup-content-button popup-content-button-faded' id='rename-state-button' v-on:click="checkRename">Rename</button>
<button class='popup-content-button popup-content-button-faded' id='delete-state-button' v-on:click="handleDelete">Delete</button>
<div></div>
</div>
<div class="popup-content-columns">
<div class="popup-column left-column">
<saved-state-slot-item v-for="state in savedStates.left" v-bind:state="state" v-bind:key="state.index"></saved-state-slot-item>
</div>
<div class="popup-column right-column">
<saved-state-slot-item v-for="state in savedStates.right" v-bind:state="state" v-bind:key="state.index"></saved-state-slot-item>
</div>
</div>
<div class="popup-content-footer">
</div>
</div>
</div>
</div>
<!-- Export menu popup -->
<div class="popup-container" id="import-export-popup">
<div class="popup-container-inner" id="import-export-popup-inner">
<div class="popup-close-button" id="import-export-close">
<div>X</div>
</div>
<div class="popup-content-container" id="popup-content-export">
<div class="popup-content-header">
<button class='popup-content-button' id='download-button' v-on:click="handleDownload">Download</button>
<button class='popup-content-button' id='upload-button' v-on:click="handleUpload">Upload</button>
<button class='popup-content-button' id='export-button' v-on:click="handleExport">Export</button>
</div>
</div>
</div>
<div class="popup-container-inner" id="popup-content-export-options">
<div class="export-options-inner">
<div class="popup-content-header">
<div class="export-scenario-label"></div>
<div class="export-select-group">
<div class="export-select-container left">Intro</div>
<div class="export-select-container">Outro</div>
</div>
</div>
<div class="export-option-slot" id="home-scenario-group">
<div class="export-scenario-label">
<div>Home</div>
</div>
<export-select-container v-bind:options="options"></export-select-container>
</div>
<div class="export-option-slot" id="school-scenario-group">
<div class="export-scenario-label">
<div>School</div>
</div>
<export-select-container v-bind:options="options"></export-select-container>
</div>
<div class="export-option-slot" id="library-scenario-group">
<div class="export-scenario-label">
<div>Library</div>
</div>
<export-select-container v-bind:options="options"></export-select-container>
</div>
<div class="export-option-slot" id="hospital-scenario-group">
<div class="export-scenario-label">
<div>Hospital</div>
</div>
<export-select-container v-bind:options="options"></export-select-container>
</div>
</div>
</div>
</div>
<!-- Main app container -->
<div class="app">
<div class="main-container">
<div class="top-container">
<div class="thumbnail-container">
<!-- Thumbnail Track -->
<div class="thumbnail-container-inner" id="thumbnail-container-inner">
<!-- Add Button -->
<div id="thumbnail-add-button" class="thumbnail-add-container">
<div class="thumbnail-add">
<div>+</div>
</div>
</div>
<!-- Thumbnail Section -->
<div class="thumbnail-section">
<div class="thumbnail-section-inner">
<transition-group name="thumbnail-list-transitions" tag='div' class='thumbnail-section-transition-wrapper'>
<thumbnail-item v-for="thumbnail in thumbnails" v-bind:thumbnail="thumbnail" v-bind:key="thumbnail.id"></thumbnail-item>
</transition-group>
<div class="thumbnail-spacer"></div>
</div>
</div>
</div>
</div>
<!-- Menu in top right -->
<div class="menu-container">
<div class="menu-container-inner">
<div class="menu-container-inner-inner">
<div class="menu-item button" id="menu-undo">
<!-- undo -->
<img src="images/undo-icon.png" class="menu-button-image">
</div>
<div class="menu-item button" id="menu-redo">
<!-- redo -->
<img src="images/redo-icon.png" class="menu-button-image">
</div>
<div class="menu-item button" id="menu-states">
<!-- states -->
<img src="images/saved-states-icon.png" class="menu-button-image">
</div>
<div class="menu-item button" id="menu-export">
<!-- export -->
<img src="images/export-icon.png" class="menu-button-image">
</div>
<div class="menu-item button" id="menu-help">
<!-- help -->
<img src="images/help-icon.png" class="menu-button-image">
</div>
</div>
<menu-select-container id="menu-selects" v-bind:options="options"></menu-select-container>
<!-- end .menu-container-inner -->
</div>
<!-- end .menu-container -->
</div>
<!-- end .top-container -->
</div>
<div class="bottom-container">
<div class="card-container" id="card-container">
<!-- <div class="fade-overlay card-fade"></div> -->
<div class="card-container-inner" id="card-container-inner">
<transition-group name="card-list-transitions">
<card-item v-for="card in cards" v-bind:card="card" v-bind:key="card.id"></card-item>
</transition-group>
<div class="card-spacer"></div>
<!-- end .card-container-inner -->
</div>
<!-- end .card-container -->
</div>
<div class="options-container">
<!-- <div class="fade-overlay options-fade"></div> -->
<div class="options-container-inner">
<div class="options-form-container">
<form class="options-form" id="options-form" name="options-form" data-name="options-form">
<!-- Start left options -->
<div class="options-section" id="left-options-section">
<div class="options-section-heading-container">
<div class="options-section-heading">Left</div>
<div class="options-section-line"></div>
</div>
<div class="option-container">
<label class="option-field-label" for="option-left-text">Text</label>
<textarea class="option-text-field" id="option-left-text" name="option-left-text" placeholder="none" data-name="option-left-text"
maxlength=""></textarea>
</div>
<div class="option-container">
<label class="option-field-label" for="option-left-image-select">Image</label>
<div class="option-select-container">
<div class="option-select-image-container">
<img class="option-select-image" src="images/triangle-3px.png">
</div>
<select class="option-select" id="option-left-image-select" name="option-left-image-select" data-name="option-left-image-select">
<option v-for="option in options" v-bind:value="option.value">
{{ option.text }}
</option>
</select>
</div>
</div>
<!-- #left-options-group -->
<div class="option-container-group" id="left-options-group">
<!-- #option-left-position-select -->
<div class="option-container group-left">
<label class="option-field-label" for="option-left-position-select">Position</label>
<div class="option-select-container">
<div class="option-select-image-container">
<img class="option-select-image" src="images/triangle-3px.png">
</div>
<select class="option-select" id="option-left-position-select" name="option-left-position-select" data-name="option-left-position-select">
<option v-for="option in options" v-bind:value="option.value">
{{ option.text }}
</option>
</select>
</div>
</div>
<!-- #option-left-animation-select -->
<div class="option-container group-right">
<label class="option-field-label" for="option-left-animation-select">Animation</label>
<div class="option-select-container">
<div class="option-select-image-container">
<img class="option-select-image" src="images/triangle-3px.png">
</div>
<select class="option-select" id="option-left-animation-select" name="option-left-animation-select" data-name="option-left-animation-select">
<option v-for="option in options" v-bind:value="option.value">
{{ option.text }}
</option>
</select>
</div>
</div>
<!-- end #left-options-group -->
</div>
<!-- end #left-options-section -->
</div>
<!-- Start right options -->
<div class="options-section" id="right-options-section">
<div class="options-section-heading-container">
<div class="options-section-heading">Right</div>
<div class="options-section-line"></div>
</div>
<div class="option-container">
<label class="option-field-label" for="option-right-text">Text</label>
<textarea class="option-text-field" id="option-right-text" name="option-right-text" placeholder="none" data-name="option-right-text"
maxlength=""></textarea>
</div>
<div class="option-container">
<label class="option-field-label" for="option-right-image-select">Image</label>
<div class="option-select-container">
<div class="option-select-image-container">
<img class="option-select-image" src="images/triangle-3px.png">
</div>
<select class="option-select" id="option-right-image-select" name="option-right-image-select" data-name="option-right-image-select">
<option v-for="option in options" v-bind:value="option.value">
{{ option.text }}
</option>
</select>
</div>
</div>
<!-- #right-options-group -->
<div class="option-container-group" id="right-options-group">
<!-- #option-right-position-select -->
<div class="option-container group-left">
<label class="option-field-label" for="option-right-position-select">Position</label>
<div class="option-select-container">
<div class="option-select-image-container">
<img class="option-select-image" src="images/triangle-3px.png">
</div>
<select class="option-select" id="option-right-position-select" name="option-right-position-select" data-name="option-right-position-select">
<option v-for="option in options" v-bind:value="option.value">
{{ option.text }}
</option>
</select>
</div>
</div>
<!-- #option-right-animation-select -->
<div class="option-container group-right">
<label class="option-field-label" for="option-right-animation-select">Animation</label>
<div class="option-select-container">
<div class="option-select-image-container">
<img class="option-select-image" src="images/triangle-3px.png">
</div>
<select class="option-select" id="option-right-animation-select" name="option-right-animation-select" data-name="option-right-animation-select">
<option v-for="option in options" v-bind:value="option.value">
{{ option.text }}
</option>
</select>
</div>
</div>
<!-- end #right-options-group -->
</div>
<!-- end #right-options-section -->
</div>
<!-- end .options-form -->
</form>
<!-- end .options-container-inner -->
</div>
<!-- end .options-container-inner -->
</div>
<!-- end .thumbnail-container -->
</div>
<!-- end .bottom-container -->
</div>
<!-- end .main-container -->
</div>
<!-- end .app -->
</div>
<script src="library/vue-2.5.16.js"></script>
<script src="library/less.3.5.0.min.js"></script>
<script src="library/jquery-3.3.1.min.js"></script>
<script src="library/simplebar/simplebar-2.6.1.js"></script>
<script src="library/noty/noty.min.js"></script>
<script src="js/classes.js"></script>
<script src="js/components.js"></script>
<script src="js/utility.js"></script>
<script src="js/app.js"></script>
</body>
</html>