-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjuniors.html
667 lines (510 loc) · 27.9 KB
/
juniors.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
<!DOCType HTML>
<html>
<head>
<title>Homestead Rally Show</title>
<script text="javascript" src="./lib/timingsrc.js"></script>
<script type="text/javascript" src="https://www.mcorp.no/lib/mcorp-2.0.js"></script>
<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
<style type="text/css">
.active {color:white}
#logo_title{
height: 45px;
font-family: 'Open Sans', sans-serif;
font-weight: 300;
color: white;
font-size: 30px;
z-index: 4;
text-align: center;
vertical-align: center;
margin: 35vh 0px 0 0;
line-height: 20vh;
}
#logo_subtitle{
height: 45px;
font-family: 'Open Sans', sans-serif;
font-weight: 300;
color: white;
font-size: 20px;
z-index: 4;
text-align: center;
vertical-align: center;
margin: 6vh 0px 0 0;
line-height: 5vh;
}
#bigger_subtitle{
height: 45px;
font-family: 'Open Sans', sans-serif;
font-weight: 300;
color: white;
font-size: 26px;
z-index: 4;
text-align: center;
vertical-align: center;
margin: 7vh 0px 0 0;
line-height: 5vh;
}
#header{display:none;}
#header2{display:none;}
</style>
</head>
<body>
<div id="header">
<div id="logo_title">
<p>Homestead High School Indopak Bhangra</p>
</div>
</div>
<div id="header2">
<div id="logo_subtitle">
<p>Designed by Indopak and David McAllister<br/>Powered by Motion Corp</p>
</div>
</div>
<div id="header3">
<div id="logo_title">
<p>Hold Your Phone in Landscape with the Screen Facing Outward</p>
</div>
</div>
<div id="header4">
<div id="bigger_subtitle">
<p>The show will begin soon!</p>
</div>
</div>
<p id="sayHello">
</p>
<script>
var MCORP_MOTION_NAME = "rallyMotion";
var MCORP_APPID = "6520928886213785439";
var app = MCorp.app(MCORP_APPID, {anon:true});
//8 measures
// Timed Data
//200 per second
var data = {
changez0z0z0zkdk: {data: 'A,B,C,D', start: 2, end: 2.15},
shiftz0z0z0z51z42z10z200zkkd: {data: 'D,A,B,C,D', start: 2.2, end: 3},
endCredit: {data: 'A,B,C,D', start: 104, end: 107},
holdOutFade: {data: 'A,B,C,D', start: 2.1, end: 2.8},
//yellow
shiftz0z0z0z255z208z0z60zkkd: {data: 'D,A,B,C,D', start: 3, end: 3.3},
shiftz255z208z0z0z0z0z60zkkd: {data: 'D,A,B,C,D', start: 3.3, end: 3.6},
// primaryNoisez120zkkkkk: {data: 'D,A,B,C,D', start: 3, end: 3.6},
// primaryNoisez120zkkkks: {data: 'D,A,B,C,D', start: 3.6, end: 4.2},
// primaryNoisez120zkkkkf: {data: 'D,A,B,C,D', start: 4.2, end: 4.8},
// primaryNoisez120zkkskf: {data: 'D,A,B,C,D', start: 4.8, end: 5.4},
//yellow: 255z208z0
//purple: 203z116z247
//pale red: 247z116z116
//turquoise: 116z236z247
//class colors
// freshmen orange: 255z158z48
// sophomore purple: 154z48z255
// junior pink: 255z48z186
// senior green: 19z181z46
//purple
shiftz0z0z0z203z116z247z60zkkd: {data: 'D,A,B,C,D', start: 4, end: 4.3},
shiftz203z116z247z0z0z0z60zkkd: {data: 'D,A,B,C,D', start: 4.3, end: 4.6},
//pale red
shiftz0z0z0z247z116z116z60zkkd: {data: 'D,A,B,C,D', start: 5, end: 5.3},
shiftz247z116z116z0z0z0z60zkkd: {data: 'D,A,B,C,D', start: 5.3, end: 5.6},
//turquoise
shiftz0z0z0z116z236z247z60zkkd: {data: 'D,A,B,C,D', start: 6, end: 6.3},
shiftz116z236z247z0z0z0z60zkkd: {data: 'D,A,B,C,D', start: 6.3, end: 6.6},
//class colors
shiftz0z0z0z255z48z186z60zkkd: {data: 'D,A,B,C,D', start: 7, end: 7.3},
shiftz255z48z186z0z0z0z60zkkd: {data: 'D,A,B,C,D', start: 7.3, end: 7.6},
//homestead green
shiftz0z0z0z19z181z46z60zkkd: {data: 'D,A,B,C,D', start: 8, end: 8.3},
shiftz19z181z46z0z0z0z60zkkd: {data: 'D,A,B,C,D', start: 8.3, end: 8.6},
//all classes yellow offset by 25 to fade through beat 11
shiftz255z48z186z0z0z0z400zkkd: {data: 'D,A,B,C,D', start: 9, end: 11},
//purple and pale red beats
shiftz203z116z247z203z116z247z100zkkdx: {data: 'D,A,B,C,D', start: 11, end: 11.5},
shiftz247z116z116z247z116z116z100zkks: {data: 'D,A,B,C,D', start: 11.5, end: 12},
//purple and pale red beats
shiftz203z116z247z203z116z247z100zkkdmkkk: {data: 'D,A,B,C,D', start: 12, end: 12.5},
shiftz247z116z116z247z116z116z100zkksmf: {data: 'D,A,B,C,D', start: 12.5, end: 13},
//purple and pale red beats
shiftz203z116z247z203z116z247z100zkkda: {data: 'D,A,B,C,D', start: 13, end: 13.5},
shiftz247z116z116z247z116z116z100zkksa: {data: 'D,A,B,C,D', start: 13.5, end: 14},
//purple and pale red beats
shiftz203z116z247z203z116z247z100zkkdq: {data: 'D,A,B,C,D', start: 14, end: 14.5},
shiftz247z116z116z247z116z116z100zkksq: {data: 'D,A,B,C,D', start: 14.5, end: 15},
shiftz0z0z0z0z0z0z100zkiuiksf: {data: 'D,A,B,C,D', start: 15, end: 15.5},
//upperclassmen first beat, underclassmen second
// shiftz203z116z247z203z116z247z100zkkdf: {data: 'D,A,B,C,D', start: 15, end: 15.5},
shiftz247z116z116z247z116z116z100zkksf: {data: 'D,A,B,C,D', start: 15.5, end: 16},
shiftz0z0z0z0z0z0z100zkksf: {data: 'D,A,B,C,D', start: 16, end: 16},
//upperclassmen first beat, underclassmen second
// shiftz203z116z247z203z116z247z100zkkdm: {data: 'D,A,B,C,D', start: 16, end: 16.5},
shiftz247z116z116z247z116z116z100zkksqf: {data: 'D,A,B,C,D', start: 16.5, end: 17},
shiftz0z0z0z0z0z0z100zkksm: {data: 'D,A,B,C,D', start: 17, end: 17},
//upperclassmen first beat, underclassmen second
// shiftz203z116z247z203z116z247z100zkkdma: {data: 'D,A,B,C,D', start: 17, end: 17.5},
shiftz247z116z116z247z116z116z100zkwksf: {data: 'D,A,B,C,D', start: 17.5, end: 18},
shiftz0z0z0z0z0z0z100zkksma: {data: 'D,A,B,C,D', start: 18, end: 18},
//upperclassmen first beat, underclassmen second
// shiftz203z116z247z203z116z247z100zkkdmf: {data: 'D,A,B,C,D', start: 18, end: 18.5},
shiftz247z116z116z247z116z116z100zkeksf: {data: 'D,A,B,C,D', start: 18.5, end: 19},
shiftz0z0z0z0z0z0z100zkksmf: {data: 'D,A,B,C,D', start: 19, end: 19},
//new stuff
//freshmen and seniors first yellow, then sophomores and juniors turquoise
// shiftz255z208z0z255z208z0z50zkkdmfd: {data: 'D,A,B,C,D', start: 19, end: 19.25},
// shiftz0z0z0z0z0z0z50zkksmf: {data: 'D,A,B,C,D', start: 19.25, end: 19.5}, //freshmen and seniors
shiftz0z0z0z0z0z0z50zkkseemf: {data: 'D,A,B,C,D', start: 19, end: 19.25}, //sophomores and juniors
shiftz116z236z247z116z236z247z50zkksuifd: {data: 'D,A,B,C,D', start: 19.25, end: 19.5},
// shiftz0z0z0z0z0z0z50zkkuiojsmf: {data: 'D,A,B,C,D', start: 19.5, end: 19.75},
//freshmen and seniors first yellow, then sophomores and juniors turquoise
// shiftz255z208z0z255z208z0z50zkkdmfs: {data: 'D,A,B,C,D', start: 19.5, end: 19.75},
// shiftz0z0z0z0z0z0z50zkksmfa: {data: 'D,A,B,C,D', start: 19.75, end: 20}, //freshmen and seniors
shiftz0z0z0z0z0z0z50zkkqqlklksfs: {data: 'D,A,B,C,D', start: 19.5, end: 19.75},
shiftz116z236z247z116z236z247z50zkksopfda: {data: 'D,A,B,C,D', start: 19.75, end: 19.75},
// shiftz0z0z0z0z0z0z50zkkuiojsmf: {data: 'D,A,B,C,D', start: 19.5, end: 19.75},
//freshmen and seniors first yellow, then sophomores and juniors turquoise
// shiftz255z208z0z255z208z0z50zkkdmfa: {data: 'D,A,B,C,D', start: 20, end: 20.25},
// shiftz0z0z0z0z0z0z50zkksmfv: {data: 'D,A,B,C,D', start: 20.25, end: 20.5}, //freshmen and seniors
shiftz0z0z0z0z0z0z50zkksfffa: {data: 'D,A,B,C,D', start: 20, end: 20.25},
shiftz116z236z247z116z236z247z50zkksfpodx: {data: 'D,A,B,C,D', start: 20.25, end: 20.5},
//freshmen and seniors first yellow, then sophomores and juniors turquoise
// shiftz255z208z0z255z208z0z50zkkdmfr: {data: 'D,A,B,C,D', start: 20.5, end: 20.75},
// shiftz0z0z0z0z0z0z50zkksmfvh: {data: 'D,A,B,C,D', start: 20.75, end: 21}, //freshmen and seniors
shiftz0z0z0z0z0z0z50zkksmfttoo: {data: 'D,A,B,C,D', start: 20.5, end: 20.75}, //sophomores and juniors
shiftz116z236z247z116z236z247z50zkkksfr: {data: 'D,A,B,C,D', start: 20.75, end: 21},
//new stuff
//all together fade up to pale red and back down
shiftz0z0z0z247z116z116z200zkkdkj: {data: 'D,A,B,C,D', start: 21, end: 22},
shiftz247z116z116z0z0z0z200zkkdkj: {data: 'D,A,B,C,D', start: 22, end: 23},
//muted voice then start back at beat 25
shiftz0z0z0z255z48z186z200zkkdkj: {data: 'D,A,B,C,D', start: 25, end: 26}, //class colors
shiftz255z48z186z203z116z247z140zkkdkj: {data: 'D,A,B,C,D', start: 26, end: 26.7}, //class colors to purple
shiftz203z116z247z0z0z0z60zkkdkjd: {data: 'D,A,B,C,D', start: 26.7, end: 27}, //purple to black
//drum roll
// primaryNoisez100zkkkkfk: {data: 'D,A,B,C,D', start: 27, end: 27.5},
primaryNoisez100zkkrkkfk: {data: 'D,A,B,C,D', start: 27.5, end: 28},
primaryNoisez100zkkkdkfk: {data: 'D,A,B,C,D', start: 28, end: 28.5},
shiftz203z116z247z0z0z0z100zkkdfkjd: {data: 'D,A,B,C,D', start: 28.5, end: 29},
//purple and pale red beats
shiftz203z116z247z203z116z247z100zkkdxr: {data: 'D,A,B,C,D', start: 29, end: 29.5},
shiftz247z116z116z247z116z116z100zkksr: {data: 'D,A,B,C,D', start: 29.5, end: 30},
//purple and pale red beats
shiftz203z116z247z203z116z247z100zkkdmkkkr: {data: 'D,A,B,C,D', start: 30, end: 30.5},
shiftz247z116z116z247z116z116z100zkksmfr: {data: 'D,A,B,C,D', start: 30.5, end: 31},
//purple and pale red beats
shiftz203z116z247z203z116z247z100zkkdar: {data: 'D,A,B,C,D', start: 31, end: 31.5},
shiftz247z116z116z247z116z116z100zkksar: {data: 'D,A,B,C,D', start: 31.5, end: 32},
//purple and pale red beats
shiftz203z116z247z203z116z247z100zkkdqr: {data: 'D,A,B,C,D', start: 32, end: 32.5},
shiftz247z116z116z247z116z116z100zkksqr: {data: 'D,A,B,C,D', start: 32.5, end: 33},
// //pale red
// shiftz0z0z0z247z116z116z60zkkdr: {data: 'D,A,B,C,D', start: 33, end: 33.3},
// shiftz247z116z116z0z0z0z60zkkdr: {data: 'D,A,B,C,D', start: 33.3, end: 33.6},
//turquoise
shiftz247z116z116z116z236z247z60zkkdr: {data: 'D,A,B,C,D', start: 33, end: 33.3},
shiftz116z236z247z0z0z0z60zkkdr: {data: 'D,A,B,C,D', start: 33.3, end: 33.6},
//class colors
shiftz0z0z0z255z48z186z60zkkdr: {data: 'D,A,B,C,D', start: 34, end: 34.3},
shiftz255z48z186z0z0z0z60zkkdr: {data: 'D,A,B,C,D', start: 34.3, end: 34.6},
//homestead green
shiftz0z0z0z19z181z46z60zkkdr: {data: 'D,A,B,C,D', start: 35, end: 35.3},
shiftz19z181z46z0z0z0z60zkkdr: {data: 'D,A,B,C,D', start: 35.3, end: 35.6},
// //all classes yellow offset by 25 to fade through beat 11
// shiftz255z208z0z0z0z0z200zkkdr: {data: 'D,A,B,C,D', start: 36, end: 37},
//SONG 2
//turquoise: 116z236z247
//pale orange: 252z200z141
//pale green: 102z186z87
//pink: 242z121z167
shiftz0z0z0z116z236z247z2600zkkdr: {data: 'D,A,B,C,D', start: 37, end: 43.5}, //long fade to turquoise
shiftz0z0z0z0z0z0z100zkkdr: {data: 'D,A,B,C,D', start: 43.5, end: 44},
shiftz0z0z0z252z200z141z2600zkkdrf: {data: 'D,A,B,C,D', start: 44, end: 50.5}, //long fade to turquoise
// shiftz0z0z0z0z0z0z100zkkdrf: {data: 'D,A,B,C,D', start: 50.5, end: 51},
//freshmen and seniors first yellow, then sophomores and juniors turquoise
// shiftz255z208z0z255z208z0z50zkkdmfsr: {data: 'D,A,B,C,D', start: 50.5, end: 50.75},
// shiftz0z0z0z0z0z0z50zkksmfar: {data: 'D,A,B,C,D', start: 50.75, end: 51}, //freshmen and seniors
shiftz0z0z0z0z0z0z50zkksfsrq: {data: 'D,A,B,C,D', start: 50.75, end: 51},
shiftz116z236z247z116z236z247z50zkksfdarq: {data: 'D,A,B,C,D', start: 50.5, end: 50.75},
//freshmen and seniors first yellow, then sophomores and juniors turquoise
// shiftz255z208z0z255z208z0z50zkkdmfar: {data: 'D,A,B,C,D', start: 51, end: 51.25},
// shiftz0z0z0z0z0z0z50zkksmfvr: {data: 'D,A,B,C,D', start: 51.25, end: 51.5}, //freshmen and seniors
shiftz0z0z0z0z0z0z50zkksfarc: {data: 'D,A,B,C,D', start: 51, end: 51.25},
shiftz116z236z247z116z236z247z50zkksfdxrc: {data: 'D,A,B,C,D', start: 51.25, end: 51.5},
//fades through all the colors
// shiftz242z121z167z102z186z87z200zkkfrdmfdar: {data: 'D,A,B,C,D', start: 51.5, end: 52.5}, //pink to green freshmen, sophomores
shiftz102z186z87z242z121z167z200zkkdmfjdar: {data: 'D,A,B,C,D', start: 51.5, end: 52.5}, //green to pink juniors, seniors
// shiftz102z186z87z252z200z141z200zkkrfdmffdar: {data: 'D,A,B,C,D', start: 52.5, end: 53.5}, //green to orange freshmen, sophomores
shiftz242z121z167z252z200z141z200zkkdmffdakkr: {data: 'D,A,B,C,D', start: 52.5, end: 53.5}, //green to orange juniors, seniors
shiftz252z200z141z116z236z247z200zkkdmweffddar: {data: 'D,A,B,C,D', start: 53.5, end: 54.5}, //orange to turquoise
shiftz116z236z247z242z121z167z200zkkdmffdkjdar: {data: 'D,A,B,C,D', start: 54.5, end: 55.5}, //turquoise to pink
shiftz242z121z167z102z186z87z200zkkdmffdkjiodar: {data: 'D,A,B,C,D', start: 55.5, end: 56.5}, //pink to pale green
shiftz102z186z87z0z0z0z200zkkdmfuujiodar: {data: 'D,A,B,C,D', start: 56.5, end: 57.5}, //pink to pale green
//fade up half beat separation colors for each class
//class colors
// freshmen orange: 255z158z48
// sophomore purple: 154z48z255
// junior pink: 255z48z186
// senior green: 19z181z46
// shiftz0z0z0z255z158z48z200zkkdmfuuejiodar: {data: 'D,A,B,C,D', start: 57.5, end: 60}, //freshmen
// shiftz0z0z0z154z48z255z200zkkdmfuuejiofdar: {data: 'D,A,B,C,D', start: 58, end: 60}, //sophomores
shiftz0z0z0z255z48z186z200zkkdmfuuejifodar: {data: 'D,A,B,C,D', start: 58.5, end: 60}, //juniors
// shiftz0z0z0z19z181z46z200zkkdmfuuejiodarf: {data: 'D,A,B,C,D', start: 59.5, end: 60}, //seniors
shiftz0z0z0z0z0z0z100zkldkljdfsj: {data: 'D,A,B,C,D', start: 60, end: 60.5}, //to black
//come in with noise at 62
primaryNoisez400zkkkhfk: {data: 'D,A,B,C,D', start: 62, end: 63},
primaryNoisez400zkkykhfk: {data: 'D,A,B,C,D', start: 63, end: 64},
primaryNoisez400zkkkhwfk: {data: 'D,A,B,C,D', start: 64, end: 65},
primaryNoisez400zkkkhqfk: {data: 'D,A,B,C,D', start: 65, end: 66},
primaryNoisez400zkkkeehwfk: {data: 'D,A,B,C,D', start: 66, end: 67},
primaryNoisez400zkkkhssqfk: {data: 'D,A,B,C,D', start: 67, end: 68},
// NICE FOR WHAT STARTS AT 70
shiftz0z0z0z55z55z55z390zkldkiljdfsj: {data: 'D,A,B,C,D', start: 68, end: 70}, //to light grey
shiftz255z255z255z83z102z124z400zkldkiljdfsj: {data: 'D,A,B,C,D', start: 70, end: 72}, //on beat flash white
// shiftz55z55z55z126z153z160z200zkldkiljeerdfsj: {data: 'D,A,B,C,D', start: 70.9, end: 71.9}, //to pale blue
// bright blue: 84z219z255
// very very pale blue: 83z102z124
shiftz84z219z255z74z104z71z400zkldkilkjljdfsj: {data: 'D,A,B,C,D', start: 72, end: 74}, //on beat flash blue
// bright green: 89z255z71
// very pale green: 74z104z71
shiftz89z255z71z142z77z77z400zilkjieifsj: {data: 'D,A,B,C,D', start: 74, end: 76}, //on beat flash green
// bright red: 255z48z48
// dark red: 142z77z77
shiftz255z48z48z55z55z55z400zilkjieifsj: {data: 'D,A,B,C,D', start: 76, end: 78}, //on beat flash red
//new
shiftz55z55z55z255z48z48z100zilkjieifsj: {data: 'D,A,B,C,D', start: 78, end: 78.5}, //fade up to red
shiftz255z48z48z55z55z55z100zilkjieifsj: {data: 'D,A,B,C,D', start: 78.5, end: 79}, //back
shiftz55z55z55z89z255z71z100zilkjieifsj: {data: 'D,A,B,C,D', start: 80, end: 80.5}, //fade up to green
shiftz89z255z71z55z55z55z100zilkjieifsj: {data: 'D,A,B,C,D', start: 80.5, end: 81}, //back
shiftz55z55z55z84z219z255z100zilkjieifsj: {data: 'D,A,B,C,D', start: 81.95, end: 82.5}, //fade up to blue
shiftz84z219z255z55z55z55z100zilkjieifsj: {data: 'D,A,B,C,D', start: 82.45, end: 83}, //back
shiftz55z55z55z255z255z255z100zilkjieifsj: {data: 'D,A,B,C,D', start: 83.95, end: 84.5}, //fade up to white
shiftz255z255z255z55z55z55z100zilkjieifsj: {data: 'D,A,B,C,D', start: 84.45, end: 85}, //back
// shiftz255z158z48z55z55z55z400zilkjieifjfkjsj: {data: 'D,A,B,C,D', start: 85.9, end: 88}, //freshman only
// shiftz154z48z255z55z55z55z400zilkjieifjfkjsj: {data: 'D,A,B,C,D', start: 87.9, end: 90}, //sophomores only
shiftz255z48z186z55z55z55z400zilkjieifjfkjsj: {data: 'D,A,B,C,D', start: 89.85, end: 92}, //juniors only
// shiftz19z181z46z55z55z55z400zilkjieifjfkjsj: {data: 'D,A,B,C,D', start: 91.85, end: 94}, //seniors only
// "this is her life"
shiftz255z255z255z255z255z255z100zmmfdkew: {data: 'D,A,B,C,D', start: 93.85, end: 94.35},
shiftz0z0z0z0z0z0z100zmmfdghkew: {data: 'D,A,B,C,D', start: 94.35, end: 94.8},
shiftz255z255z255z255z255z255z100zmmfukew: {data: 'D,A,B,C,D', start: 94.8, end: 95.3},
shiftz0z0z0z0z0z0z100zmmfdghukew: {data: 'D,A,B,C,D', start: 95.3, end: 95.75},
shiftz255z255z255z255z255z255z100zmmfkkdkew: {data: 'D,A,B,C,D', start: 95.75, end: 96.25},
shiftz0z0z0z0z0z0z100zmmfdghkkkew: {data: 'D,A,B,C,D', start: 96.25, end: 96.7},
shiftz255z255z255z255z255z255z100zmmfuuukew: {data: 'D,A,B,C,D', start: 96.7, end: 97.2},
shiftz0z0z0z0z0z0z100zmmfdghukuuew: {data: 'D,A,B,C,D', start: 97.2, end: 97.65},
shiftz255z255z255z0z0z0z1400zmmfuuukew: {data: 'D,A,B,C,D', start: 97.65, end: 101.9},
shiftz255z255z255z0z0z0z600zmmfuuukew: {data: 'D,A,B,C,D', start: 101.9, end: 104},
// primaryNoisez50zkkkkfk: {data: 'D,A,B,C,D', start: 27, end: 27.25},
// primaryNoisez50zkkekkfk: {data: 'D,A,B,C,D', start: 27.25, end: 27.5},
// primaryNoisez50zkkkdkfk: {data: 'D,A,B,C,D', start: 27.5, end: 27.75},
// primaryNoisez50zkkkkafk: {data: 'D,A,B,C,D', start: 27.75, end: 28},
// primaryNoisez50zkkkkfke: {data: 'D,A,B,C,D', start: 28, end: 28.25},
// primaryNoisez50zkkkkrfk: {data: 'D,A,B,C,D', start: 28.25, end: 28.5},
// primaryNoisez50zkkkdgkfk: {data: 'D,A,B,C,D', start: 28.5, end: 28.75},
// primaryNoisez50zkhkkkafk: {data: 'D,A,B,C,D', start: 28.75, end: 29},
// shiftz46z212z242z46z212z242z100zdkd: {data: 'C,A,B,C,D', start: 5, end: 6},
// shiftz0z0z0z0z0z0z100zmmd: {data: 'C,A,B,C,D', start: 6, end: 7},
// shiftz46z212z242z46z212z242z100zkjld: {data: 'C,A,B,C,D', start: 7, end: 8},
// shiftz0z0z0z0z0z0z100zddd: {data: 'N', start: 8, end: 9},
// shiftz46z212z242z46z212z242z100zdfd: {data: 'N', start: 9, end: 10},
// shiftz0z0z0z0z0z0z100zdsd: {data: 'N', start: 10, end: 11},
// shiftz0z0z0z153z102z255z3200: {data: 'B,A,B,C,D', start: 4, end: 36},
// shiftz153z102z255z250z215z102z400: {data: 'B,A,B,C,D', start: 36, end: 40},
// shiftz250z215z102z55z92z212z400: {data: 'B,A,B,C,D', start: 40, end: 44},
// shiftz55z92z212z153z102z255z400: {data: 'B,A,B,C,D', start: 44, end: 48},
// shiftz153z102z255z0z0z0z400: {data: 'B,A,B,C,D', start: 48, end: 52},
// //follows perc
// shiftz153z102z255z153z102z255z50: {data: 'B,A,B,C,D', start: 52, end: 52.5},
// shiftz250z215z102z250z215z102z50: {data: 'B,A,B,C,D', start: 52.5, end: 53},
// shiftz55z92z212z55z92z212z50: {data: 'B,A,B,C,D', start: 53, end: 53.5},
// shiftz0z0z0z0z0z0z50: {data: 'B,A,B,C,D', start: 53.5, end: 54},
// shiftz153z102z255z153z102z255z50zkk: {data: 'B,A,B,C,D', start: 54, end: 54.5},
// shiftz250z215z102z250z215z102z50zll: {data: 'B,A,B,C,D', start: 54.5, end: 55},
// shiftz55z92z212z55z92z212z50zm: {data: 'B,A,B,C,D', start: 55, end: 55.5},
// shiftz0z0z0z0z0z0z50zmm: {data: 'B,A,B,C,D', start: 55.5, end: 56},
// shiftz153z102z255z153z102z255z50zkd: {data: 'B,A,B,C,D', start: 56, end: 56.5},
// shiftz250z215z102z250z215z102z50zld: {data: 'B,A,B,C,D', start: 56.5, end: 57},
// shiftz55z92z212z55z92z212z50zd: {data: 'B,A,B,C,D', start: 57, end: 57.5},
// shiftz0z0z0z0z0z0z50zmd: {data: 'B,A,B,C,D', start: 57.5, end: 58},
// shiftz153z102z255z153z102z255z50zks: {data: 'B,A,B,C,D', start: 58, end: 58.5},
// shiftz250z215z102z250z215z102z50zls: {data: 'B,A,B,C,D', start: 58.5, end: 59},
// shiftz55z92z212z55z92z212z50zs: {data: 'B,A,B,C,D', start: 59, end: 59.5},
// shiftz0z0z0z0z0z0z50zms: {data: 'B,A,B,C,D', start: 59.5, end: 60},
// o: {data: 'O', start: 28, end: 29 },
// p: {data: 'P', start: 30, end: 31 },
// q: {data: 'Q', start: 32, end: 33 },
// r: {data: 'R', start: 34, end: 35 },
// s: {data: 'S', start: 36, end: 37 },
// t: {data: 'T', start: 38, end: 39 },
// u: {data: 'U', start: 40, end: 41 },
// v: {data: 'V', start: 42, end: 43 },
// w: {data: 'W', start: 44, end: 45 },
// x: {data: 'X', start: 46, end: 47 },
// y: {data: 'Y', start: 48, end: 49 },
};
var run = function () {
console.log("Running")
var timingProvider = app.motions[MCORP_MOTION_NAME];
// Timing Object
var to = new TIMINGSRC.TimingObject({provider:timingProvider});
// Sequencer
var s = new TIMINGSRC.Sequencer(to);
var num = 0
// Load data
var r = s.request();
Object.keys(data).forEach(function (key) {
num = num + 1
console.log("Loading cue " + num)
r.addCue(key, new TIMINGSRC.Interval(data[key].start, data[key].end));
});
r.submit();
// Register Handlers
s.on("enter", function (e) {
console.log("Enter function")
console.log("Bid")
console.log(e.data)
var asArray = e.key.split('z');
console.log(asArray[7]);
console.log("Title")
console.log(asArray[0])
if(asArray[0]==="shift")
{
console.log("yeh");
self.colorShift(parseInt(asArray[1]), parseInt(asArray[2]), parseInt(asArray[3]), parseInt(asArray[4]), parseInt(asArray[5]), parseInt(asArray[6]), parseInt(asArray[7]));
}
else if(asArray[0]==="change")
{
console.log("Change")
console.log("Cat")
// document.body.style.backgroundColor = "rgb(" + asArray[1] + ", " + asArray[2] + ", " + asArray[3] + ")";
self.colorShift(parseInt(asArray[1]), parseInt(asArray[2]), parseInt(asArray[3]), parseInt(asArray[1]), parseInt(asArray[2]), parseInt(asArray[3]), 100);
// self.colorToColor(parseInt(asArray[1]), parseInt(asArray[2]), parseInt(asArray[3]), parseInt(asArray[4]), parseInt(asArray[5]), parseInt(asArray[6]), parseInt(asArray[7]));
}
else if(asArray[0]==="primaryNoise")
{
console.log("primaryNoise")
var colors = [[255,208,0],[203,116,247],[247,116,116],[116,236,247]]
//yellow: 255z208z0
//purple: 203z116z247
//pale red: 247z116z116
//turquoise: 116z236z247
console.log((Math.random())*4 | 0)
var randomColor1 = colors[Math.random()*4 | 0]
var randomColor2 = colors[Math.random()*4 | 0]
self.colorShift(randomColor1[0], randomColor1[1], randomColor1[2], randomColor2[0], randomColor2[1], randomColor2[2], parseInt(asArray[1]))
}
else if(asArray[0]==="endCredit")
{
console.log("End Crediting")
$(document).ready(function () {
$("#header").css("opacity", 1).fadeIn(2000)
// $("#header").hide().fadeIn(10000);
});
$(document).ready(function () {
$("#header2").css("opacity", 1).fadeIn(2000)
});
}
else if(asArray[0]==="holdOutFade")
{
console.log("End Crediting")
$(document).ready(function () {
$("#header3").css("opacity", 1).fadeOut(400)
// $("#header").hide().fadeIn(10000);
});
$(document).ready(function () {
$("#header4").css("opacity", 1).fadeOut(400)
});
}
else
{
console.log("Elsification");
self.colorShift(0, 97, 255, 255, 0, 80, 300);
}
// var el = document.getElementById(e.key);
// el.classList.add("active");
});
s.on("exit", function (e) {
console.log("Exit function")
var el = document.getElementById(e.key);
el.classList.remove("active");
});
// Report position of timing objects
var pos = document.getElementById("pos");
to.on("timeupdate", function () {
pos.innerHTML = to.query().position.toFixed(2);
});
app.run = run
app.init();
// Visualize timed data
var html = "";
Object.keys(data).forEach(function (key) {
html += "<div id='"+ key +"'>" + JSON.stringify(data[key]) + "</div>";
});
document.getElementById("data").innerHTML = html;
s.on("enter", function (e) {
var el = document.getElementById(e.key);
el.classList.add("active");
});
s.on("exit", function (e) {
var el = document.getElementById(e.key);
el.classList.remove("active");
});
};
// kick off
if (document.readyState === "complete") run();
else window.onload = run;
function colorShift(r1, g1, b1, r2, g2, b2, duration)
{
duration = duration*3/4
var rIncrement = (r2-r1)/duration;
var gIncrement = (g2-g1)/duration;
var bIncrement = (b2-b1)/duration;
//console.log(rIncrement);
//console.log(gIncrement);
//console.log(bIncrement);
var counter = 0
for(i = 0; i<duration; i += 4)
{
setTimeout(function(){
//console.log(counter*rIncrement);
var rValue = r1 + parseInt(counter*rIncrement, 10);
var gValue = g1 + parseInt(counter*gIncrement, 10);
var bValue = b1 + parseInt(counter*bIncrement, 10);
document.body.style.backgroundColor = "rgb(" + rValue.toString() + ", " + gValue.toString() + ", " + bValue.toString() + ")";
if(counter%8 == 0)
{
console.log("executing")
}
counter += 4
}, 4*i);
}
}
function colorToColor(r1, g1, b1, r2, g2, b2, duration)
{
setTimeout(function(){
console.log(counter*rIncrement);
document.body.style.backgroundColor = "rgb(" + rValue.toString() + ", 102, 102)";
counter += 2
}, i*2);
}
function openAlert(mess)
{
colorShift(0, 97, 255, 255, 0, 80, 300);
var counter = 0
for(i = 0; i<256; i++)
{
setTimeout(function(){
//console.log("hello");
var res = mess.charAt(counter);
console.log("Message:");
console.log(mess)
//console.log(res);
counter = counter + 1;
var d = new Date();
var n = d.getTime();
//console.log(i)
//document.body.style.backgroundColor = "rgb(" + (counter).toString() + ", 102, 102)";
//console.log("dog".charAt(i));
}, i*16);
//console.log(counter);
}
//alert(n);
}
</script>
</body>
</html>