-
Notifications
You must be signed in to change notification settings - Fork 0
/
~~viewer.html
742 lines (641 loc) · 31.3 KB
/
~~viewer.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
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>30-Second Viewer</title>
<meta name="description" content="A time-interval image viewer, for timed drawing study and practice." />
<meta name="author" content="Pharan">
<style type="text/css">
:root {
--fonts: "Inter", "Inter UI", "San Francisco", "Segue UI", "Open Sans", "Helvetica", "Arial", sans-serif;
--color-readable: #777;
--color-faintb: #bbb;
--color-faintc: #ccc;
--bg-button-hover: #fff4;
--transition: all .3s cubic-bezier(.5, .01, .1, 1.00);
--imagecaption-foreground: #ccc;
--imagecaption-foreground-hover: #bbb;
--border: solid 1px;
--selection-bg: #bcc;
--paused-foreground: #d65353;
--paused-background: #c547470c;
--paused-background-hover: #fc848428;
}
body {
font-family: var(--fonts);
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAALVBMVEXi4uLj4+Pk5OTl5eXm5ubn5+fo6Ojp6enq6urr6+vs7Ozt7e3u7u7v7+/w8PDpF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lgjrxtUMfwL38EAYhrz1q0S5htFhJM4otBTdKMSklrnlW5z1/KbbX/1g6N0jjsv1KhlvwTExdS4RBOBf+5oaNcuiUIs9yaeAbjQBG353I2/OG8H+Zmpnmgb/8pGYlyoTbPefhgNoG8WMxUYueNj9jGET3bVbDekENZbRO/fKIjByZjSV7Orlde+lEUoCOCRQNStHPOLD9+6yGbVttXrABEaWKz129Tz9I7BZ6DjitAPGjFcogxUh/uEuMrnphBXEOR5gcIr4iKSYPdaZ9pKVwHNNJSVIVpTsB7imT0uvgf5PFlKRRtYrEAAAAASUVORK5CYII=);
}
/* transitions */
#welcome, #welcome.helpon, #welcome.helpoff,
#leftarrow,
#rightarrow,
#restartbutton,
#arrowholder,
header
{
-moz-transition: var(--transition);
-webkit-transition: var(--transition);
-o-transition: var(--transition);
transition: var(--transition);
}
/* button shadows */
#restartbutton,
#leftarrow,
#rightarrow
{
text-shadow: 0px -1px 0px var(--color-faintb);
}
/* unselectables */
#restartbutton,
#leftarrow,
#rightarrow,
#imageholder,
#timeleft
{
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
}
/* * * HEADER * * */
#usersecondsbox, header h1 {
font-family: var(--fonts);
font-size: 30px;
font-weight: normal;
color: var(--color-readable);
}
#usersecondsbox {
border: var(--border) transparent;
text-align: right;
background-color: transparent;
}
#usersecondsbox::-moz-selection,
#usersecondsbox::selection {
background-color: var(--selection-bg)
}
#usersecondsbox:focus {
border: var(--border) var(--color-faintc);
background-color: #fafafa;
}
header h1 {
display: inline;
line-height: 1em;
margin: 0px;
margin-left: -2px;
padding: 0px;
}
header {
position: fixed;
bottom: -15px;
left: 20px;
background-color: rgba(255,255,255,0.3);
border: var(--border) var(--color-faintc);
padding: 20px 20px;
opacity: .8;
}
header:hover {
background-color: rgba(255,255,255,0.5);
padding: 30px 20px;
opacity: 1.0;
bottom: -8px;
}
header:hover #usersecondsbox {
border: var(--border) #ddd;
}
header:hover #usersecondsbox:hover {
border: var(--border) var(--color-faintb);
}
#tgh {
font-size: 10px;
color: #aaa;
margin: 0px 1em;
}
#fileinput {
color: var(--color-faintc);
}
#overallholder {
position: fixed;
top: 50px;
width: 100%;
margin: 0px;
padding: 0px;
}
#version {
font-size: 11px;
color: var(--color-faintc);
position: fixed;
right: 15px;
top: 10px;
}
/* * * ARROWS * * */
#arrowholder {
width: 350px;
margin-left: -175px;
position: fixed;
left: 50%;
top: -1px;
}
#leftarrow,
#rightarrow,
#restartbutton
{
/*position and size*/
position: absolute;
top: -10px;
font-size: 50px;
width: 80px;
height: 60px;
text-align: center;
/*styling*/
cursor: pointer;
color: #f6f6f6;
}
#leftarrow:hover,
#rightarrow:hover,
#restartbutton:hover,
#timeleft:hover
{
background-color: var(--bg-button-hover);
}
#leftarrow { left: 10px; }
#rightarrow { right: 10px; }
#restartbutton {
left: -80px;
top: -16px;
}
#timeleft {
position: absolute;
font-size: 20px;
top: 15px;
color: var(--color-faintb);
left: 50%;
margin-left: -84px;
width: 163px;
height: 33px;
line-height: 0.3em;
padding-left: 4px;
}
#timeleft.paused {
color: var(--paused-foreground);
background-color: var(--paused-background);
}
#timeleft.paused:hover {
background-color: var(--paused-background-hover);
}
/* * * IMAGE HOLDER * * */
#imageholder {
position: relative;
min-width: 50px;
min-height: 50px;
margin: 0px auto;
text-align: center;
}
#imagecaption {
color: var(--imagecaption-foreground);
font-size: 14px;
}
#imagecaption:hover {
color: var(--imagecaption-foreground-hover);
}
#image {
position: relative;
max-height: 800px;
margin: 0px auto;
padding: 0px;
}
#image.fullsize {
max-height: none;
}
/* * * WELCOME MESSAGE * * */
#welcome, #welcome.helpon {
font-size: 12px;
color: var(--color-readable);
padding: 1.5em;
overflow: hidden;
text-align: justify;
}
#welcome.helpoff {
height: 0px;
width: 200px;
padding: 0px;
}
#welcome.helpon {
height: auto;
width: 400px;
margin-top: 8px;
padding-top: 3px;
border-top: 1px dotted var(--color-faintb);
}
#welcome.helpon p {
margin-top: 5px;
}
#welcome.helpoff p {
margin-top: -5px;
}
ol {
padding-left: 20px;
text-align: left;
}
/* * * * FILE CHOOSER * * * */
#fileinput {
margin-left: 5px;
}
</style>
<script type="text/javascript">
"use strict";
const VERSION = "2022.0607h";
// event.key
const KeyBindings = {
Enter: "Enter",
Previous: "ArrowLeft",
Next: "ArrowRight",
Restart: "r",
PlayPause: "p",
}
const Ids = {
WelcomeLabel: "welcome",
UserClickableNumber: "usersecondsbox",
VersionLabel: "version",
Tgh: "tgh",
TimeLeftBox: "timeleft",
PlayPauseButton: "playpause",
RestartButton: "restartbutton",
LeftArrowButton: "leftarrow",
RightArrowButton: "rightarrow",
ImageHolder: "imageholder",
ImageCaption: "imagecaption",
CurrentImage: "image",
};
const Selectors = {
PausedClass: "paused",
MentionsOfSecondsClass: "numsec",
get MentionsOfSeconds() { return `.${Selectors.MentionsOfSecondsClass}`; },
};
const Symbol = {
LeftArrow: "‹",
RightArrow: "›",
RestartButton: "↺",
PlayButton: "▶",
PauseButton: "⏸",
};
const TimerSettings = {
UpdateIntervalSeconds: 0.25,
DefaultSeconds: 30,
MinimumSeconds: 5,
MaximumSeconds: 3600,
};
let REST_OF_TITLE = "-Second Viewer";
const getElement = (id) => document.getElementById(id);
const querySelectAll = (selectors) => document.querySelectorAll(selectors);
const VIEWER_FILENAME = function() {
let url = document.location.href;
url = url.substring(0, (url.indexOf("#") == -1) ? url.length : url.indexOf("#"));
url = url.substring(0, (url.indexOf("?") == -1) ? url.length : url.indexOf("?"));
url = url.substring(url.lastIndexOf("/") + 1, url.length);
return url;
}();
document.addEventListener('DOMContentLoaded', () => {
if (window.File && window.FileReader && window.FileList && window.Blob) { //check for file-reader compatibility
viewerInterface.initialize();
} else {
alert('The File APIs are not fully supported by your browser.');
}
});
// * * * * * VIEWER INTERFACE OBJECT * * * * *
const viewerInterface = {
getUserSecondsField() { return getElement(Ids.UserClickableNumber); },
getUserSecondsFieldValue() { return this.getUserSecondsField().value; },
getValidUserSeconds() { return parseInt(this.getUserSecondsFieldValue(), 10); },
get currentImage() { return imageList.getImageByIndex(circulator.currentIndex); },
initialize() {
this.localizeText();
this.initializeDependencies();
this.initializeInterfaceBindings();
},
initializeDependencies() {
circulator.onCurrentNumberChanged = () => imageHolder.setImage(viewerInterface.currentImage);
timer.onUpdate = () => viewerInterface.updateTimeIndicator();
timer.getDurationSeconds = () => viewerInterface.getValidUserSeconds();
timer.onPlayPauseChanged = () => viewerInterface.handlePlayPauseToggle();
timer.onRestart = () => viewerInterface.playClackSound();
timer.onElapsed = () => viewerInterface.tryMoveNext();
},
initializeInterfaceBindings() {
window.addEventListener("resize", () => imageHolder.recalculateMaxImageSize());
// Bind click events
const bindClickAction = (elementId, action) => getElement(elementId).addEventListener("click", action);
bindClickAction(Ids.RightArrowButton, () => viewerInterface.tryMoveNext());
bindClickAction(Ids.LeftArrowButton, () => viewerInterface.tryMovePrevious());
bindClickAction(Ids.RestartButton, () => viewerInterface.tryRestartTimer());
bindClickAction(Ids.TimeLeftBox, () => viewerInterface.togglePlayPause());
bindClickAction(Ids.ImageHolder, () => imageHolder.toggleImageZoom());
// Bind keyboard shortcuts
document.addEventListener("keydown", (event) => {
if (event.key === KeyBindings.Restart) { viewerInterface.tryRestartTimer(); }
if (event.key === KeyBindings.Previous) { viewerInterface.tryMovePrevious(); }
if (event.key === KeyBindings.Next) { viewerInterface.tryMoveNext(); }
if (event.key === KeyBindings.PlayPause) { viewerInterface.togglePlayPause(); }
});
// Bind event for when user changes files
const fileInputElement = getElement("fileinput");
fileInputElement.setAttribute("accept", "image/*"); // Only accept image files (as supported by the browser)
fileInputElement.addEventListener("change", () => {
const fileList = getElement("fileinput").files;
imageList.load(fileList);
circulator.startNewOrder(imageList.length);
timer.initialize(TimerSettings.UpdateIntervalSeconds);
viewerInterface.initializeImage();
viewerInterface.refreshSubHeader();
});
// Bind custom-time textbox events
const secondsField = this.getUserSecondsField();
secondsField.addEventListener("click", () => {
secondsField.focus();
secondsField.select();
});
secondsField.addEventListener("keydown", (event) => {
if (event.key === KeyBindings.Enter) {
event.preventDefault();
viewerInterface.getUserSecondsField().blur(); // lose focus on textbox
viewerInterface.validateUserSecondsFieldTextBox();
viewerInterface.updateMentionsOfSeconds();
viewerInterface.tryRestartTimer();
}
});
},
validateUserSecondsFieldTextBox() {
const secondsField = this.getUserSecondsField();
const clamp = (num, min, max) => Math.min(Math.max(num, min), max);
let processedValue = parseInt(secondsField.value, 10);
if (isNaN(processedValue)) {
processedValue = TimerSettings.DefaultSeconds;
}
processedValue = clamp(processedValue, TimerSettings.MinimumSeconds, TimerSettings.MaximumSeconds);
secondsField.value = processedValue;
},
updateMentionsOfSeconds() {
const secondsFieldValue = this.getUserSecondsFieldValue();
this.changeAllMentionOfSeconds(secondsFieldValue);
},
getInstructionHeader() {
const INSTRUCTION_TITLES = ["HOW IT WORKS", "HOW TO USE", "HOW THE THING DO", "INSTRUCTIONS", "使用方法"];
const randomInt = (maxInt) => Math.floor((Math.random() * maxInt));
const randomTitleIndex = randomInt(INSTRUCTION_TITLES.length);
return INSTRUCTION_TITLES[randomTitleIndex];
},
localizeText() {
const rollChanceOutOf = (outOf) => Math.floor((Math.random() * outOf)) == 1;
if (rollChanceOutOf(50)) REST_OF_TITLE = "-Second Hamburger"; //proc hamburger
const secondsSetting = this.getUserSecondsField().value;
this.changeAllMentionOfSeconds(secondsSetting);
getElement(Ids.LeftArrowButton).innerHTML = Symbol.LeftArrow;
getElement(Ids.RightArrowButton).innerHTML = Symbol.RightArrow;
getElement(Ids.RestartButton).innerHTML = Symbol.RestartButton;
querySelectAll("header > h1").forEach((el) => { el.innerHTML = REST_OF_TITLE; });
querySelectAll(".viewerfilename").forEach((el) => { el.innerHTML = VIEWER_FILENAME; });
getElement(Ids.VersionLabel).innerHTML = `v${VERSION}`;
getElement("warningtitle").innerHTML = this.getInstructionHeader();
const welcomeClassList = getElement(Ids.WelcomeLabel).classList;
welcomeClassList.add("helpon");
welcomeClassList.remove("helpoff");
},
initializeImage() {
imageHolder.toggleImageZoom();
imageHolder.setImage(viewerInterface.currentImage);
},
refreshSubHeader() {
getElement(Ids.Tgh).innerHTML = `[ ${imageList.length} images : <span class='${Selectors.MentionsOfSecondsClass}'> ${timer.lastsecondsBetween}</span> seconds each ]`;
const welcomeClassList = getElement(Ids.WelcomeLabel).classList;
welcomeClassList.remove("helpon");
welcomeClassList.add("helpoff");
},
changeAllMentionOfSeconds(numOfSeconds) {
this.getUserSecondsField().value = numOfSeconds;
document.querySelector("title").innerHTML = `${numOfSeconds}${REST_OF_TITLE}`;
querySelectAll(Selectors.MentionsOfSeconds).forEach((el) => { el.innerHTML = numOfSeconds; });
viewerInterface.playClackSound();
},
togglePlayPause() {
timer.togglePlayPause();
viewerInterface.playClackSound();
},
tryMoveNext() {
if (circulator.isPopulated) {
circulator.moveNext();
timer.startNewDuration();
}
},
tryMovePrevious() {
if (circulator.isPopulated) {
circulator.movePrevious();
timer.startNewDuration();
}
},
tryRestartTimer() {
if (circulator.isPopulated) {
timer.startNewDuration();
}
},
handlePlayPauseToggle() {
const timeLeftElement = getElement(Ids.TimeLeftBox);
const timeLeftClassList = timeLeftElement.classList;
const isPausedClass = timeLeftClassList.contains(Selectors.PausedClass);
if (timer.isActive) {
if (isPausedClass) timeLeftClassList.remove(Selectors.PausedClass);
} else {
if (!isPausedClass) timeLeftClassList.add(Selectors.PausedClass);
}
},
playClackSound() {
const clackElement = getElement("clacksound");
clackElement.currentTime = 0;
clackElement.play();
},
updateTimeIndicator() {
getElement(Ids.TimeLeftBox).innerHTML = this.toDotRepresentation(timer.secondsLeft, timer.lastsecondsBetween);
},
toDotRepresentation(timeinSeconds, maxtime) {
let dotString = "";
const numOfDots = timeinSeconds / maxtime * 90;
for (let i = 0; i < numOfDots; i++) {
dotString = dotString + ".";
if ( (i + 1) % 30 == 0 && i != 0) dotString += "<br />";
}
return dotString;
}
};
const timer = {
isActive: true,
secondsLeft: 30,
lastsecondsBetween: 30,
secondsBetween: 30,
updateIntervalSeconds: 100,
intervalId: 0,
getDurationSeconds: null,
onUpdate: null,
onPlayPauseChanged: null,
onRestart: null,
onElapsed: null,
initialize(updateIntervalSeconds) {
this.restart();
this.updateIntervalSeconds = updateIntervalSeconds;
clearInterval(this.intervalId); //stop the previous counter (if it exists?)
this.intervalId = setInterval(() => timer.updateTime(), this.updateIntervalSeconds * 1000);
},
togglePlayPause() {
this.isActive = !(this.isActive);
this.onPlayPauseChanged?.();
},
updateTime() {
if (this.isActive) {
this.secondsLeft -= this.updateIntervalSeconds;
if (this.secondsLeft < 0) {
this.onElapsed?.();
}
this.onUpdate?.();
}
},
restart() {
this.refreshDurationSetting();
this.lastsecondsBetween = this.secondsBetween;
this.secondsLeft = this.secondsBetween;
this.onRestart?.();
},
refreshDurationSetting() {
this.secondsBetween = this.getDurationSeconds();
},
startNewDuration() {
this.restart();
this.onUpdate?.();
}
};
// * * * * * CIRCULATOR OBJECT * * * * *
const circulator = {
// SHUFFLE
// A persistent array of shuffled indexes is kept so
// the user can freely go backwards and forwards in a shuffled image list.
reorderedIndexes: [],
onCurrentNumberChanged: null,
currentNumber: 0,
get length() { return this.reorderedIndexes.length; },
get maxNumber() { return this.length - 1; },
get isPopulated() { return this.length > 0; },
get currentIndex() { return this.reorderedIndexes[this.currentNumber]; },
startNewOrder(arrayLength) {
this.resetToDefaultOrder(arrayLength);
this.generateShuffledOrder();
this.onCurrentNumberChanged?.();
},
resetToDefaultOrder(arrayLength) {
this.reorderedIndexes = new Array(arrayLength);
for (let i = 0; i < arrayLength; i++) {
this.reorderedIndexes[i] = i;
}
},
generateShuffledOrder() {
const iterations = Math.floor(this.reorderedIndexes.length * 2 / 3);
for (let i = 0; i < iterations; i++) {
let swapBuffer = this.reorderedIndexes[i];
let swapPartner = Math.floor((Math.random() * this.reorderedIndexes.length));
this.reorderedIndexes[i] = this.reorderedIndexes[swapPartner];
this.reorderedIndexes[swapPartner] = swapBuffer;
}
},
moveNext() {
this.moveCurrentNumberBy(1);
},
movePrevious() {
this.moveCurrentNumberBy(-1);
},
moveCurrentNumberBy(increment) {
this.currentNumber = this.currentNumber + increment;
const max = this.maxNumber;
if (this.currentNumber > max) this.currentNumber = 0;
if (this.currentNumber < 0) this.currentNumber = max;
this.onCurrentNumberChanged?.();
}
};
// * * * * * IMAGE HOLDER OBJECT * * * * *
const imageHolder = {
isImageZoomed: true,
setImage(filename) {
const imageElement = getElement(Ids.CurrentImage);
imageElement.setAttribute("src", `${filename}`);
this.setCaption(imageElement.getAttribute("src"));
},
setCaption(newCaption) {
getElement(Ids.ImageCaption).innerHTML = newCaption;
},
toggleImageZoom() {
this.isImageZoomed = !this.isImageZoomed;
this.recalculateMaxImageSize();
},
recalculateMaxImageSize() {
const imageElement = getElement(Ids.CurrentImage);
if (this.isImageZoomed) {
imageElement.style.maxHeight = "none";
imageElement.style.maxWidth = "none";
}
else if (!this.isImageZoomed) {
const targetHeight = window.innerHeight - 100;
imageElement.style.maxHeight = `${targetHeight}px`;
const targetWidth = window.innerWidth - 50;
imageElement.style.maxWidth = `${targetWidth}px`;
}
},
};
// * * * * * IMAGE LIST OBJECT * * * * *
const imageList = {
fileNames: [],
get length() { return this.fileNames.length },
get isPopulated() { return this.length > 1 },
getImageByIndex(index) {
return this.fileNames[index];
},
load(fileList) {
const fileCount = fileList.length;
// Copy the filenames from the list
this.fileNames = new Array(fileCount);
for (let i = 0; i < fileCount; i++) {
this.fileNames[i] = fileList[i].name;
}
}
};
</script>
</head>
<body>
<div id="overallholder">
<div id="imageholder"><div id="imagecaption"> </div><img src="" id="image" /></div>
</div>
<header>
<input type="text" size="2" value="30" id="usersecondsbox" /><h1> </h1>
<div id="welcome" class="helpoff">
<p>This is Pharan's <span class="numsec">30</span>-Second Viewer, a (<a href="http://en.wikipedia.org/wiki/Gesture_drawing">gesture drawing</a>) training tool
for helping artists practice their perceptual skills: identifying
overall shapes and quickly seeing and capturing the important aspects of shapes and poses
that contribute effectively to the feeling, movement, action or realism of a subject.<br/>
You can load image files and it will pick out and display a random image from the set every <span class="numsec">30</span> seconds.</p>
<p><strong id="warningtitle">WARNING!</strong><br />
Modern browsers don't allow access to just any folder on your computer. So this tool only works with images in the folder where it's saved.</p>
<p>This is how to open a set of images:</p>
<ol>
<li>Copy this file (<span class="viewerfilename"></span>) into the folder where you have your image files.</li>
<li>Open this file (<span class="viewerfilename"></span>), or double-click on it in Finder/File Explorer to open it in your default browser</li>
<li>Click the "Browse..." button below to choose files.</li>
<li>Browse to the <strong>folder where you saved "<span class="viewerfilename"></span>".</strong></li>
<li>Select all the images you want in that folder and choose "Open".</li>
</ol>
</div>
<p id="tgh"> </p>
<input type="file" id="fileinput" multiple />
</header>
<audio id="clacksound" src="data:audio/mpeg;base64,T2dnUwACAAAAAAAAAAC09hElAAAAALRNV24BHgF2b3JiaXMAAAAAAoC7AAAAAAAAAHECAAAAAAC4AU9nZ1MAAAAAAAAAAAAAtPYRJQEAAAB2pgfoElP/////////////////////kQN2b3JiaXMtAAAAWGlwaC5PcmcgbGliVm9yYmlzIEkgMjAxMDExMDEgKFNjaGF1ZmVudWdnZXQpAQAAABIAAABFTkNPREVSPWxpYnNuZGZpbGUBBXZvcmJpcylCQ1YBAAgAAAAxTCDFgNCQVQAAEAAAYCQpDpNmSSmllKEoeZiUSEkppZTFMImYlInFGGOMMcYYY4wxxhhjjCA0ZBUAAAQAgCgJjqPmSWrOOWcYJ45yoDlpTjinIAeKUeA5CcL1JmNuprSma27OKSUIDVkFAAACAEBIIYUUUkghhRRiiCGGGGKIIYcccsghp5xyCiqooIIKMsggg0wy6aSTTjrpqKOOOuootNBCCy200kpMMdVWY669Bl18c84555xzzjnnnHPOCUJDVgEAIAAABEIGGWQQQgghhRRSiCmmmHIKMsiA0JBVAAAgAIAAAAAAR5EUSbEUy7EczdEkT/IsURM10TNFU1RNVVVVVXVdV3Zl13Z113Z9WZiFW7h9WbiFW9iFXfeFYRiGYRiGYRiGYfh93/d93/d9IDRkFQAgAQCgIzmW4ymiIhqi4jmiA4SGrAIAZAAABAAgCZIiKZKjSaZmaq5pm7Zoq7Zty7Isy7IMhIasAgA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GRfNh3wiwM+S7FNDV1XX7Ttdm6veZepiGBqABYakCA8ADFDMA4GSWsF5qsDACGfXTtQGMhQwNNJfx1QQjjFvCBxgUDwAAINbQA7AAMiJZpQAgA7AAwCYAA2BTYfQEACABAgCj89wtxkoAvVEaOAEA3oX8uqw8xA6GpxWFmmIX8vOy89B2UDxRrClegPZMVZFOHypJKQiAACABAEAUsQqIKdiJvWlgmXWUDTYbBqahCKpGFSQtVoxia7SKAQsGwqpGVWzFolZVsWS+TkCoxMgoDAwQxVEcFUaOQtGDyJdlhMUCEKW+UlgiHVi44blRlJqqIFpNRckRkIqCJYVyXaVIMkrByygWWFbl86guHQ7EYLFgAYqjOCoqsiGyAJ4WpcsPgSTBRS1LHjRBAcAyAAYAOLw3nQYADg==">
</audio>
<nav id="arrowholder">
<div id="restartbutton"> </div>
<div id="leftarrow"> </div>
<div id="timeleft"> </div>
<div id="rightarrow"> </div>
</nav>
<div id="version"> </div>
</body>
</html>