-
Notifications
You must be signed in to change notification settings - Fork 0
/
base_Frame.js.html
729 lines (620 loc) · 23 KB
/
base_Frame.js.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Source: base/Frame.js</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>
<div id="main">
<h1 class="page-title">Source: base/Frame.js</h1>
<section>
<article>
<pre class="prettyprint source linenums"><code>/*
* Copyright 2020 WICKLETS LLC
*
* This file is part of Wick Engine.
*
* Wick Engine is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Wick Engine is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Wick Engine. If not, see <https://www.gnu.org/licenses/>.
*/
/**
* A class representing a frame.
*/
Wick.Frame = class extends Wick.Tickable {
/**
* Create a new frame.
* @param {number} start - The start of the frame. Optional, defaults to 1.
* @param {number} end - The end of the frame. Optional, defaults to be the same as start.
*/
constructor (args) {
if(!args) args = {};
super(args);
this.start = args.start || 1;
this.end = args.end || this.start;
this.onionSkinned = false;
this._soundAssetUUID = null;
this._soundID = null;
this._soundVolume = 1.0;
this._soundLoop = false;
this._soundStart = 0;
this._originalLayerIndex = -1;
}
_serialize (args) {
var data = super._serialize(args);
data.start = this.start;
data.end = this.end;
data.sound = this._soundAssetUUID;
data.soundVolume = this._soundVolume;
data.soundLoop = this._soundLoop;
data.originalLayerIndex = this.layerIndex !== -1 ? this.layerIndex : this._originalLayerIndex;
return data;
}
_deserialize (data) {
super._deserialize(data);
this.start = data.start;
this.end = data.end;
this._soundAssetUUID = data.sound;
this._soundVolume = data.soundVolume === undefined ? 1.0 : data.soundVolume;
this._soundLoop = data.soundLoop === undefined ? false : data.soundLoop;
this._originalLayerIndex = data.originalLayerIndex;
}
get classname () {
return 'Frame';
}
/**
* The length of the frame.
* @type {number}
*/
get length () {
return this.end - this.start + 1;
}
set length (length) {
length = Math.max(1, length);
var diff = length - this.length;
this.end += diff;
}
/**
* The midpoint of the frame.
* @type {number}
*/
get midpoint () {
return this.start + (this.end - this.start) / 2;
}
/**
* Is true if the frame is currently visible.
* @type {boolean}
*/
get onScreen () {
if(!this.parent) return true;
return this.inPosition(this.parentTimeline.playheadPosition) && this.parentClip.onScreen;
}
/**
* The sound attached to the frame.
* @type {Wick.SoundAsset}
*/
get sound () {
var uuid = this._soundAssetUUID;
return uuid ? this.project.getAssetByUUID(uuid) : null;
}
set sound (soundAsset) {
this._soundAssetUUID = soundAsset.uuid;
}
/**
* The volume of the sound attached to the frame.
* @type {number}
*/
get soundVolume () {
return this._soundVolume
}
set soundVolume (soundVolume) {
this._soundVolume = soundVolume;
}
/**
* Whether or not the sound loops.
* @type {boolean}
*/
get soundLoop () {
return this._soundLoop;
}
set soundLoop (soundLoop) {
this._soundLoop = soundLoop;
}
/**
* Removes the sound attached to this frame.
*/
removeSound () {
this._soundAssetUUID = null;
}
/**
* Plays the sound attached to this frame.
*/
playSound () {
if(!this.sound) {
return;
}
var options = {
seekMS: this.playheadSoundOffsetMS + this.soundStart,
volume: this.soundVolume,
loop: this.soundLoop,
};
this._soundID = this.sound.play(options);
}
/**
* Stops the sound attached to this frame.
*/
stopSound () {
if(this.sound) {
this.sound.stop(this._soundID);
this._soundID = null;
}
}
/**
* Check if the sound on this frame is playing.
* @returns {boolean} true if the sound is playing
*/
isSoundPlaying () {
return this._soundID !== null;
}
/**
* The amount of time, in milliseconds, that the frame's sound should play before stopping.
* @type {number}
*/
get playheadSoundOffsetMS () {
var offsetFrames = this.parentTimeline.playheadPosition - this.start;
var offsetMS = (1000 / this.project.framerate) * offsetFrames;
return offsetMS;
}
/**
* The amount of time the sound playing should be offset, in milliseconds. If this is 0,
* the sound plays normally. A negative value means the sound should start at a later point
* in the track. THIS DOES NOT DETERMINE WHEN A SOUND PLAYS.
* @type {number}
*/
get soundStart () {
return this._soundStart;
}
set soundStart (val) {
this._soundStart = val;
}
/**
* When should the sound start, in milliseconds.
* @type {number}
*/
get soundStartMS () {
return (1000/this.project.framerate) * (this.start - 1);
}
/**
* When should the sound end, in milliseconds.
* @type {number}
*/
get soundEndMS () {
return (1000/this.project.framerate) * this.end;
}
/**
* The paths on the frame.
* @type {Wick.Path[]}
*/
get paths () {
return this.getChildren('Path');
}
/**
* The paths that are text and have identifiers, for dynamic text.
* @type {Wick.Path[]}
*/
get dynamicTextPaths () {
return this.paths.filter(path => {
return path.isDynamicText;
});
}
/**
* The clips on the frame.
* @type {Wick.Clip[]}
*/
get clips () {
return this.getChildren(['Clip','Button']);
}
/**
* The tweens on this frame.
* @type {Wick.Tween[]}
*/
get tweens () {
// Ensure no tweens are outside of this frame's length.
var tweens = this.getChildren('Tween')
tweens.forEach(tween => {
tween.restrictToFrameSize();
});
return this.getChildren('Tween');
}
/**
* True if there are clips or paths on the frame.
* @type {boolean}
*/
get contentful () {
return this.paths.filter(path => {
return !path.view.item.data._isPlaceholder;
}).length > 0 || this.clips.length > 0;
}
/**
* The index of the parent layer.
* @type {number}
*/
get layerIndex () {
return this.parentLayer ? this.parentLayer.index : -1;
}
/**
* The index of the layer that this frame last belonged to. Used when copying and pasting frames.
* @type {number}
*/
get originalLayerIndex () {
return this._originalLayerIndex;
}
/**
* Removes this frame from its parent layer.
*/
remove () {
this.parent.removeFrame(this);
}
/**
* True if the playhead is on this frame.
* @param {number} playheadPosition - the position of the playhead.
* @return {boolean}
*/
inPosition (playheadPosition) {
return this.start <= playheadPosition
&& this.end >= playheadPosition;
}
/**
* True if the frame exists within the given range.
* @param {number} start - the start of the range to check.
* @param {number} end - the end of the range to check.
* @return {boolean}
*/
inRange (start, end) {
return this.inPosition(start)
|| this.inPosition(end)
|| (this.start >= start && this.start <= end)
|| (this.end >= start && this.end <= end);
}
/**
* True if the frame is contained fully within a given range.
* @param {number} start - the start of the range to check.
* @param {number} end - the end of the range to check.
* @return {boolean}
*/
containedWithin (start, end) {
return this.start >= start && this.end <= end;
}
/**
* The number of frames that this frame is from a given playhead position.
* @param {number} playheadPosition
*/
distanceFrom (playheadPosition) {
// playhead position is inside frame, distance is zero.
if(this.start <= playheadPosition && this.end >= playheadPosition) {
return 0;
}
// otherwise, find the distance from the nearest end
if (this.start >= playheadPosition) {
return this.start - playheadPosition;
} else if(this.end <= playheadPosition) {
return playheadPosition - this.end;
}
}
/**
* Add a clip to the frame.
* @param {Wick.Clip} clip - the clip to add.
*/
addClip (clip) {
if(clip.parent) {
clip.remove();
}
this.addChild(clip);
// Pre-render the clip's frames
// (this fixes an issue where clips created from ClipAssets would be "missing" frames)
clip.timeline.getAllFrames(true).forEach(frame => {
frame.view.render();
});
}
/**
* Remove a clip from the frame.
* @param {Wick.Clip} clip - the clip to remove.
*/
removeClip (clip) {
this.removeChild(clip);
}
/**
* Add a path to the frame.
* @param {Wick.Path} path - the path to add.
*/
addPath (path) {
if(path.parent) {
path.remove();
}
this.addChild(path);
}
/**
* Remove a path from the frame.
* @param {Wick.Path} path - the path to remove.
*/
removePath (path) {
this.removeChild(path);
}
/**
* Add a tween to the frame.
* @param {Wick.Tween} tween - the tween to add.
*/
addTween (tween) {
// New tweens eat existing tweens.
var otherTween = this.getTweenAtPosition(tween.playheadPosition);
if(otherTween) {
otherTween.remove();
}
this.addChild(tween);
tween.restrictToFrameSize();
}
/**
* Automatically creates a tween at the current playhead position. Converts all objects into one clip if needed.
*/
createTween () {
// Don't make a tween if one already exits
var playheadPosition = this.getRelativePlayheadPosition();
if(this.getTweenAtPosition(playheadPosition)) {
return;
}
// If more than one object exists on the frame, or if there is only one path, create a clip from those objects
var numClips = this.clips.length;
var numPaths = this.paths.length;
if((numClips === 0 && numPaths === 1) || numClips + numPaths > 1) {
var allObjects = this.paths.concat(this.clips);
var center = this.project.selection.view._getObjectsBounds(allObjects).center;
var clip = new Wick.Clip({
objects: this.paths.concat(this.clips),
transformation: new Wick.Transformation({
x: center.x,
y: center.y,
}),
});
this.addClip(clip);
}
// Create the tween (if there's not already a tween at the current playhead position)
var clip = this.clips[0];
this.addTween(new Wick.Tween({
playheadPosition: playheadPosition,
transformation: clip ? clip.transformation.copy() : new Wick.Transformation(),
}));
}
/**
* Remove a tween from the frame.
* @param {Wick.Tween} tween - the tween to remove.
*/
removeTween (tween) {
this.removeChild(tween);
}
/**
* Remove all tweens from this frame.
*/
removeAllTweens (tween) {
this.tweens.forEach(tween => {
tween.remove();
});
}
/**
* Get the tween at the given playhead position. Returns null if there is no tween.
* @param {number} playheadPosition - the playhead position to look for tweens at.
* @returns {Wick.Tween} the tween at the given playhead position.
*/
getTweenAtPosition (playheadPosition) {
return this.tweens.find(tween => {
return tween.playheadPosition === playheadPosition;
}) || null;
}
/**
* The tween being used to transform the objects on the frame.
* @returns {Wick.Tween} tween - the active tween. Null if there is no active tween.
*/
getActiveTween () {
if(!this.parentTimeline) return null;
var playheadPosition = this.getRelativePlayheadPosition();
var tween = this.getTweenAtPosition(playheadPosition);
if(tween) {
return tween;
}
var seekBackwardsTween = this.seekTweenBehind(playheadPosition);
var seekForwardsTween = this.seekTweenInFront(playheadPosition);
if (seekBackwardsTween && seekForwardsTween) {
return Wick.Tween.interpolate(seekBackwardsTween, seekForwardsTween, playheadPosition);
} else if (seekForwardsTween) {
return seekForwardsTween;
} else if (seekBackwardsTween) {
return seekBackwardsTween;
} else {
return null;
}
}
/**
* Applies the transformation of current tween to the objects on the frame.
*/
applyTweenTransforms () {
var tween = this.getActiveTween();
if(tween) {
this.clips.forEach(clip => {
tween.applyTransformsToClip(clip);
});
}
}
/**
* Applies single frame positions to timelines if necessary.
*/
applyClipSingleFramePositions () {
this.clips.forEach(clip => {
clip.applySingleFramePosition();
});
}
/**
* Update all clip timelines for their animation type.
*/
updateClipTimelinesForAnimationType () {
this.clips.forEach(clip => {
clip.updateTimelineForAnimationType();
})
}
/**
* The asset of the sound attached to this frame, if one exists
* @returns {Wick.Asset[]}
*/
getLinkedAssets () {
var linkedAssets = [];
if(this.sound) {
linkedAssets.push(this.sound);
}
return linkedAssets;
}
/**
* Cut this frame in half using the parent timeline's playhead position.
*/
cut () {
// Can't cut a frame that doesn't beolong to a timeline + layer
if(!this.parentTimeline) return;
// Can't cut a frame with length 1
if(this.length === 1) return;
// Can't cut a frame that isn't under the playhead
var playheadPosition = this.parentTimeline.playheadPosition;
if(!this.inPosition(playheadPosition)) return;
// Create right half (leftover) frame
var rightHalf = this.copy();
rightHalf.identifier = null;
rightHalf.removeSound();
rightHalf.removeAllTweens();
rightHalf.start = playheadPosition = playheadPosition;
// Cut this frame shorter
this.end = playheadPosition - 1;
// Add right frame
this.parentLayer.addFrame(rightHalf);
}
/**
* Extend this frame by one and push all frames right of this frame to the right.
*/
extendAndPushOtherFrames () {
this.parentLayer.getFramesInRange(this.end + 1, Infinity).forEach(frame => {
frame.start += 1;
frame.end += 1;
});
this.end += 1;
}
/**
* Shrink this frame by one and pull all frames left of this frame to the left.
*/
shrinkAndPullOtherFrames () {
if(this.length === 1) return;
this.parentLayer.getFramesInRange(this.end + 1, Infinity).forEach(frame => {
frame.start -= 1;
frame.end -= 1;
});
this.end -= 1;
}
/**
* Import SVG data into this frame. SVGs containing mulitple paths will be split into multiple Wick Paths.
* @param {string} svg - the SVG data to parse and import.
*/
importSVG (svg) {
this.view.importSVG(svg);
}
/**
* Get the position of this frame in relation to the parent timeline's playhead position.
* @returns {number}
*/
getRelativePlayheadPosition () {
return this.parentTimeline.playheadPosition - this.start + 1;
}
/**
* Find the first tween on this frame that exists behind the given playhead position.
* @returns {Wick.Tween}
*/
seekTweenBehind (playheadPosition) {
var seekBackwardsPosition = playheadPosition;
var seekBackwardsTween = null;
while (seekBackwardsPosition > 0) {
seekBackwardsTween = this.getTweenAtPosition(seekBackwardsPosition);
seekBackwardsPosition--;
if(seekBackwardsTween) break;
}
return seekBackwardsTween;
}
/**
* Find the first tween on this frame that exists past the given playhead position.
* @returns {Wick.Tween}
*/
seekTweenInFront (playheadPosition) {
var seekForwardsPosition = playheadPosition;
var seekForwardsTween = null;
while (seekForwardsPosition <= this.end) {
seekForwardsTween = this.getTweenAtPosition(seekForwardsPosition);
seekForwardsPosition++;
if(seekForwardsTween) break;
}
return seekForwardsTween;
}
_onInactive () {
super._onInactive();
this._tickChildren();
}
_onActivated () {
super._onActivated();
this.playSound();
this._tickChildren();
}
_onActive () {
super._onActive();
this._tickChildren();
}
_onDeactivated () {
super._onDeactivated();
this.stopSound();
this._tickChildren();
}
_tickChildren () {
this.clips.forEach(clip => {
clip.tick();
});
}
_attachChildClipReferences () {
this.clips.forEach(clip => {
if(clip.identifier) {
this[clip.identifier] = clip;
clip._attachChildClipReferences();
}
});
}
}
</code></pre>
</article>
</section>
</div>
<nav>
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="BuiltinAssets.html">BuiltinAssets</a></li><li><a href="GlobalAPI.html">GlobalAPI</a></li><li><a href="paper.SelectionGUI.html">SelectionGUI</a></li><li><a href="paper-paper.Selection.html">Selection</a></li><li><a href="SelectionWidget.html">SelectionWidget</a></li><li><a href="Wick.AutoSave.html">AutoSave</a></li><li><a href="Wick.Base.html">Base</a></li><li><a href="Wick.Button.html">Button</a></li><li><a href="Wick.Clip.html">Clip</a></li><li><a href="Wick.Clipboard.html">Clipboard</a></li><li><a href="Wick.FileCache.html">FileCache</a></li><li><a href="Wick.Frame.html">Frame</a></li><li><a href="Wick.GUIElement.Project.html">Project</a></li><li><a href="Wick.GUIElement.Timeline.html">Timeline</a></li><li><a href="Wick.GUIElement-Wick.GUIElement.Breadcrumbs.html">Breadcrumbs</a></li><li><a href="Wick.GUIElement-Wick.GUIElement.Button.html">Button</a></li><li><a href="Wick.History.html">History</a></li><li><a href="Wick.HTMLExport.html">HTMLExport</a></li><li><a href="Wick.HTMLPreview.html">HTMLPreview</a></li><li><a href="Wick.ImageSequence.html">ImageSequence</a></li><li><a href="Wick.Layer.html">Layer</a></li><li><a href="Wick.Path.html">Path</a></li><li><a href="Wick.Project.html">Project</a></li><li><a href="Wick.Selection.html">Selection</a></li><li><a href="Wick.Tickable.html">Tickable</a></li><li><a href="Wick.Timeline.html">Timeline</a></li><li><a href="Wick.Tools-Wick.Tools.Brush.html">Brush</a></li><li><a href="Wick.Tools-Wick.Tools.Cursor.html">Cursor</a></li><li><a href="Wick.Tools-Wick.Tools.Ellipse.html">Ellipse</a></li><li><a href="Wick.Tools-Wick.Tools.Eraser.html">Eraser</a></li><li><a href="Wick.Tools-Wick.Tools.Eyedropper.html">Eyedropper</a></li><li><a href="Wick.Tools-Wick.Tools.FillBucket.html">FillBucket</a></li><li><a href="Wick.Tools-Wick.Tools.Interact.html">Interact</a></li><li><a href="Wick.Tools-Wick.Tools.Line.html">Line</a></li><li><a href="Wick.Tools-Wick.Tools.None.html">None</a></li><li><a href="Wick.Tools-Wick.Tools.Pan.html">Pan</a></li><li><a href="Wick.Tools-Wick.Tools.Pencil.html">Pencil</a></li><li><a href="Wick.Tools-Wick.Tools.Rectangle.html">Rectangle</a></li><li><a href="Wick.Tools-Wick.Tools.Text.html">Text</a></li><li><a href="Wick.Tools-Wick.Tools.Zoom.html">Zoom</a></li><li><a href="Wick.Transformation.html">Transformation</a></li><li><a href="Wick.Tween.html">Tween</a></li><li><a href="Wick.View-Wick.View.Clip.html">Clip</a></li><li><a href="Wick.View-Wick.View.Frame.html">Frame</a></li><li><a href="Wick.View-Wick.View.Path.html">Path</a></li><li><a href="Wick.View-Wick.View.Selection.html">Selection</a></li><li><a href="Wick.WickFile.html">WickFile</a></li><li><a href="Wick.WickObjectFile.html">WickObjectFile</a></li><li><a href="Wick.ZIPExport.html">ZIPExport</a></li><li><a href="WickObjectCache.html">WickObjectCache</a></li><li><a href="Wick-Wick.Asset.html">Asset</a></li><li><a href="Wick-Wick.AudioTrack.html">AudioTrack</a></li><li><a href="Wick-Wick.ClipAsset.html">ClipAsset</a></li><li><a href="Wick-Wick.Color.html">Color</a></li><li><a href="Wick-Wick.FileAsset.html">FileAsset</a></li><li><a href="Wick-Wick.FontAsset.html">FontAsset</a></li><li><a href="Wick-Wick.GIFAsset.html">GIFAsset</a></li><li><a href="Wick-Wick.GUIElement.html">GUIElement</a></li><li><a href="Wick-Wick.ImageAsset.html">ImageAsset</a></li><li><a href="Wick-Wick.SoundAsset.html">SoundAsset</a></li><li><a href="Wick-Wick.SVGAsset.html">SVGAsset</a></li><li><a href="Wick-Wick.Tool.html">Tool</a></li><li><a href="Wick-Wick.ToolSettings.html">ToolSettings</a></li><li><a href="Wick-Wick.View.html">View</a></li></ul><h3>Global</h3><ul><li><a href="global.html#type">type</a></li><li><a href="global.html#Wick">Wick</a></li></ul>
</nav>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 3.6.4</a> on Fri Apr 24 2020 15:26:12 GMT-0400 (Eastern Daylight Time)
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>