-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1028 lines (928 loc) · 45.2 KB
/
index.html
File metadata and controls
1028 lines (928 loc) · 45.2 KB
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
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
<title>5572 Scouting Site</title>
<link rel="icon" type="image/png" href="https://i.ibb.co/PGjYvXpj/Screenshot-2026-01-11-at-4-29-36-PM-removebg-preview.png">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js"></script>
<script src="match-data.js"></script>
<style>
* { transition: all 0.2s ease; }
@keyframes gearRotate {
0% { transform: rotate(-45deg); } 5.56% { transform: rotate(-45deg); }
11.11%{ transform: rotate(-35deg); }16.67% { transform: rotate(-35deg); }
22.22%{ transform: rotate(-25deg); }27.78% { transform: rotate(-25deg); }
33.33%{ transform: rotate(-15deg); }38.89% { transform: rotate(-15deg); }
44.44%{ transform: rotate(-5deg); }50% { transform: rotate(-5deg); }
55.56%{ transform: rotate(5deg); }61.11% { transform: rotate(5deg); }
66.67%{ transform: rotate(15deg); }72.22% { transform: rotate(15deg); }
77.78%{ transform: rotate(25deg); }83.33% { transform: rotate(25deg); }
88.89%{ transform: rotate(35deg); }94.44% { transform: rotate(35deg); }
100% { transform: rotate(45deg); }
}
img[src*="Rosbots2025-2026-Gear-Logo"] {
animation: gearRotate 9s ease-in-out infinite alternate;
}
html { background: rgb(150, 20, 9); min-height: 100%; }
body {
background: linear-gradient(135deg, rgb(150, 20, 9) 0%, rgb(120, 15, 7) 100%);
min-height: 100vh;
padding-bottom: 50px;
margin: 0;
}
.container { max-width: 1400px; }
h1, h2, h3 { color: white; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
h4 {
color: white;
font-weight: bold;
text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
margin-top: 30px;
margin-bottom: 20px;
padding: 15px;
background: rgba(0,0,0,0.2);
border-radius: 10px;
border-left: 5px solid white;
}
.header-images {
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
flex-wrap: wrap;
margin-bottom: 20px;
}
.header-images img { border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.header-images img[src*="Rosbots2025-2026-Gear-Logo"] { border: none; box-shadow: none; }
.top-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 20px;
margin-bottom: 20px;
}
.corner-logo, .center-logo { flex-shrink: 0; }
.form-section, .content-section {
background: rgb(164, 162, 162);
padding: 25px;
border-radius: 15px;
margin-bottom: 25px;
box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}
.content-section { padding: 30px; }
.content-section h2 {
color: rgb(150, 20, 9);
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 3px solid rgb(150, 20, 9);
}
.content-section p { color: #333; line-height: 1.8; font-size: 1.1rem; text-align: center; }
.team-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
margin-top: 20px;
}
.stat-card { background: white; padding: 20px; border-radius: 10px; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.stat-card h3 { color: rgb(150, 20, 9); font-size: 2rem; margin-bottom: 10px; text-shadow: none; }
.stat-card p { color: #666; margin: 0; }
#aboutPage .content-section { background: rgba(255, 255, 255, 0.82); }
.form-row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 10px; }
fieldset {
width: 175px;
padding: 12px;
border: 3px solid #333;
border-radius: 10px;
background-color: white;
height: min-content;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
fieldset.answered { background-color: rgb(143, 138, 138); }
fieldset:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.2); transform: translateY(-2px); }
legend { font-weight: bold; font-size: 0.9rem; color: rgb(150, 20, 9); padding: 0 5px; }
.form-control, .form-select { border: 2px solid #ddd; border-radius: 6px; }
.form-control:focus, .form-select:focus { border-color: rgb(84, 175, 178); box-shadow: 0 0 0 0.2rem rgba(84, 175, 178, 0.25); }
.btn-outline-danger, .btn-outline-success { border-width: 2px; }
.btn-outline-danger:hover, .btn-outline-success:hover { transform: scale(1.05); }
.submit-container { text-align: center; margin-top: 30px; }
.btn-primary {
background: linear-gradient(135deg, rgb(78, 78, 78) 0%, rgb(78, 78, 78) 100%);
border: none;
padding: 15px 60px;
font-size: 1.3rem;
font-weight: bold;
border-radius: 10px;
box-shadow: 0 4px 15px rgba(0,0,0,0.3);
color: white;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.4); background: linear-gradient(135deg, rgb(43,43,43) 0%, rgb(43,43,43) 100%); }
.btn-primary:active { transform: translateY(-1px); }
.btn-nav {
background: linear-gradient(135deg, rgb(78,78,78) 0%, rgb(78,78,78) 100%);
border: none;
padding: 10px 30px;
font-size: 1rem;
font-weight: bold;
border-radius: 10px;
box-shadow: 0 4px 15px rgba(0,0,0,0.3);
color: white;
cursor: pointer;
}
.btn-nav:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.4); background: linear-gradient(135deg, rgb(43,43,43) 0%, rgb(43,43,43) 100%); color: white; }
.success-message {
display: none;
position: fixed;
top: 20px;
right: 20px;
z-index: 1000;
background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
color: white;
padding: 20px 30px;
border-radius: 12px;
box-shadow: 0 8px 25px rgba(0,0,0,0.3);
font-weight: bold;
animation: slideIn 0.3s ease;
}
.error-message {
display: none;
position: fixed;
top: 20px;
right: 20px;
z-index: 1000;
background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
color: white;
padding: 20px 30px;
border-radius: 12px;
box-shadow: 0 8px 25px rgba(0,0,0,0.3);
font-weight: bold;
animation: slideIn 0.3s ease;
}
@keyframes slideIn {
from { transform: translateX(400px); opacity: 0; }
to { transform: translateX(0); opacity: 1; }
}
.loading { opacity: 0.6; pointer-events: none; }
.loading::after {
content: '';
position: fixed;
top: 50%; left: 50%;
transform: translate(-50%, -50%);
width: 50px; height: 50px;
border: 5px solid rgba(255,255,255,0.3);
border-top-color: white;
border-radius: 50%;
animation: spin 1s linear infinite;
z-index: 9999;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.field-image { border: 4px solid #333; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); align-self: center; }
.form-control-static { padding: 8px; background: #f8f9fa; border-radius: 6px; font-weight: 500; text-align: center; }
.page { display: none; }
.page.active { display: block; }
.video-section { background: rgb(164,162,162); padding: 25px; border-radius: 15px; margin-bottom: 25px; box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 10px; border: 4px solid #333; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
/* ── QR Modal ── */
.qr-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0,0,0,0.75);
z-index: 2000;
align-items: center;
justify-content: center;
}
.qr-overlay.active { display: flex; }
.qr-modal {
background: white;
border-radius: 20px;
padding: 35px 40px;
text-align: center;
box-shadow: 0 20px 60px rgba(0,0,0,0.5);
max-width: 420px;
width: 90%;
animation: popIn 0.3s ease;
}
@keyframes popIn {
from { transform: scale(0.8); opacity: 0; }
to { transform: scale(1); opacity: 1; }
}
.qr-modal h2 {
color: rgb(150, 20, 9);
font-size: 1.4rem;
margin-bottom: 6px;
text-shadow: none;
}
.qr-modal p { color: #555; font-size: 0.9rem; margin-bottom: 20px; }
#qrCodeContainer { display: flex; justify-content: center; margin-bottom: 20px; }
#qrCodeContainer canvas, #qrCodeContainer img { border-radius: 10px; border: 3px solid #eee; }
.qr-meta {
background: #f8f9fa;
border-radius: 10px;
padding: 12px 16px;
margin-bottom: 20px;
font-size: 0.85rem;
color: #444;
text-align: left;
}
.qr-meta strong { color: rgb(150, 20, 9); }
.qr-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-qr-close {
background: rgb(150, 20, 9);
color: white;
border: none;
padding: 10px 30px;
border-radius: 10px;
font-weight: bold;
cursor: pointer;
font-size: 1rem;
}
.btn-qr-close:hover { background: rgb(120, 15, 7); transform: translateY(-2px); }
.btn-qr-download {
background: #28a745;
color: white;
border: none;
padding: 10px 20px;
border-radius: 10px;
font-weight: bold;
cursor: pointer;
font-size: 1rem;
}
.btn-qr-download:hover { background: #218838; transform: translateY(-2px); }
.scan-hint {
font-size: 0.78rem;
color: #888;
margin-top: 10px;
}
@media (max-width: 768px) {
.header-images { flex-direction: column; }
.header-images img { max-width: 100%; height: auto; }
.top-header { flex-direction: column; gap: 20px; }
fieldset { width: 100%; }
.field-image { width: 100%; height: auto; }
.qr-modal { padding: 25px 20px; }
}
</style>
</head>
<body>
<div class="container py-4">
<div class="top-header">
<img src="https://i.ibb.co/bMn2vC8g/Rosbots2025-2026-Gear-Logo.png" alt="Rosbots Logo" width="200" height="200" class="corner-logo">
<img src="https://i.ibb.co/kg7hB0qm/maxresdefault.jpg" alt="Team Logo" width="350" height="200" class="center-logo">
<img src="https://i.ibb.co/bMn2vC8g/Rosbots2025-2026-Gear-Logo.png" alt="Rosbots Logo" width="200" height="200" class="corner-logo">
</div>
<!-- Scouting Form Page -->
<div id="scoutingPage" class="page active">
<h1 class="text-center">
<div class="header-images">
<img src="https://i.ibb.co/VWxVwMNR/Screenshot-2026-01-11-at-2-23-42-PM.png" alt="Logo 1" width="250" height="60">
<span style="font-size: 2.5rem;">5572 Scouting Site.</span>
<img src="https://i.ibb.co/HDW30TNj/Screenshot-2026-01-11-at-2-23-50-PM.png" alt="Logo 2" width="250" height="60">
</div>
</h1>
<div class="text-center mb-3">
<button class="btn-nav" onclick="showAboutPage()">→ About 5572 Scouting ←</button>
</div>
<div id="successMessage" class="success-message">
✓ If password correct: Form submitted successfully! Ready for next match.
</div>
<div id="errorMessage" class="error-message">
✗ Error loading match data. Please check event key and match number.
</div>
<form id="scoutingForm" action="https://docs.google.com/forms/d/e/1FAIpQLSfKyjJST5AuVqQqLPSgvL6_mbgDB5nghvyScQcZwwEgpANGbA/formResponse" method="POST" target="hidden_iframe">
<h4>Terms of use: Only members from FRC's team number 5572, The Rosbots, may submit information to this website and its associated google form. Feel free to look around!</h4>
<h4>Pre-Match</h4>
<div class="form-section">
<div class="form-row">
<fieldset>
<legend>Password (It is NOT "fire", something else)</legend>
<input type="text" class="form-control persistent-field" name="entry.1734301860" id="password" placeholder="Enter Password" required>
</fieldset>
<fieldset>
<legend>Your Name</legend>
<select class="form-select persistent-field" name="entry.2048293135" id="name" required>
<option value="" disabled selected>Select one</option>
<option value="Other">other</option>
<option value="Alejandro">Alejandro</option>
<option value="Alex">Alex</option>
<option value="Axel">Axel</option>
<option value="Caden">Caden</option>
<option value="Cole">Cole</option>
<option value="Elijah">Elijah</option>
<option value="Everett">Everett</option>
<option value="Gavin">Gavin</option>
<option value="Isabella F">Isabella F</option>
<option value="Jacqueline">Jacqueline</option>
<option value="Jane">Jane</option>
<option value="Jax">Jax</option>
<option value="Jonathan">Jonathan</option>
<option value="Jouri">Jouri</option>
<option value="Luis">Luis</option>
<option value="Marwa">Marwa</option>
<option value="Michael">Michael</option>
<option value="Reed/Danny">Reed/Danny</option>
<option value="Rita">Rita</option>
<option value="Saajid">Saajid</option>
<option value="Will">Will</option>
</select>
</fieldset>
<fieldset>
<legend>Lanyard Number</legend>
<select class="form-select persistent-field" name="entry.1022431114" id="lanyardNumber" required>
<option value="" disabled selected>Select one</option>
<option value="1">1</option><option value="2">2</option><option value="3">3</option>
<option value="4">4</option><option value="5">5</option><option value="6">6</option>
</select>
</fieldset>
<fieldset>
<legend>Event: San Antonio - 2026</legend>
<input type="hidden" name="entry.1847537648" id="eventKey" value="2026txsan">
<div class="form-control-static">Day 1, Qualification Matches</div>
</fieldset>
<fieldset>
<legend>Match Number</legend>
<input type="number" class="form-control" name="entry.1248777371" id="matchNumber" placeholder="Match #" required min="1" max="400">
</fieldset>
<fieldset>
<legend>Team NUMBER:</legend>
<input type="text" class="form-control" name="entry.362193707" id="teamInput" list="teamDatalist" placeholder="Enter or select team number" required disabled>
<datalist id="teamDatalist"><option value="">Select match first</option></datalist>
<small id="teamLoadingIndicator" class="form-text text-muted" style="display:none;">Loading teams...</small>
</fieldset>
<fieldset>
<legend>Robot Attendance</legend>
<select class="form-select" name="entry.1905062215" id="robotAttendance" required>
<option value="" disabled selected>Select one</option>
<option value="Present">Present</option>
<option value="Not Present">Not Present</option>
</select>
</fieldset>
<fieldset>
<legend>Starting Location</legend>
<select class="form-select" name="entry.2027630203" id="startingLocation" required>
<option value="" disabled selected>Select one</option>
<option value="S1">S1</option><option value="S2">S2</option><option value="S3">S3</option>
<option value="S4">S4</option><option value="S5">S5</option>
</select>
</fieldset>
<img src="https://i.ibb.co/Pshyrvc6/Screenshot-2026-01-10-at-4-28-51-PM.png" alt="Field Layout" class="field-image" width="350" height="150">
</div>
</div>
<!-- Game Video Section -->
<h4>Game Overview Video</h4>
<div class="video-section">
<div class="video-wrapper">
<iframe width="560" height="315" src="https://www.youtube.com/embed/0wrsJ22RAAQ?si=2ZP40_s5GdkF-mBA" title="YouTube live stream" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>
</div>
<h4>Auto (2:30-2:10)</h4>
<div class="form-section">
<div class="form-row">
<fieldset>
<legend>Exit Starting Line?</legend>
<select class="form-select" name="entry.2010927838" id="exitLine" required>
<option value="" disabled selected>Select one</option>
<option value="Yes">Yes</option>
<option value="No">No</option>
<option value="Don't know (unacceptable)">Don't know (unacceptable)</option>
</select>
</fieldset>
<fieldset class="fuel-counter">
<legend>Auto Fuel Scored</legend>
<div class="input-group">
<button type="button" class="btn btn-outline-danger" onclick="decrementAutoScored()">-</button>
<input type="number" class="form-control text-center" name="entry.652021388" id="autoScored" placeholder="0" required min="0" max="1000" value="0">
<button type="button" class="btn btn-outline-success" onclick="incrementAutoScored()">+</button>
</div>
</fieldset>
<fieldset class="fuel-counter">
<legend>Auto Fuel Passed</legend>
<div class="input-group">
<button type="button" class="btn btn-outline-danger" onclick="decrementAutoPassed()">-</button>
<input type="number" class="form-control text-center" name="entry.1948083885" id="autoPassed" placeholder="0" required min="0" max="1000" value="0">
<button type="button" class="btn btn-outline-success" onclick="incrementAutoPassed()">+</button>
</div>
</fieldset>
<fieldset>
<legend>Auto Climb? (Bumpers must be off ground)</legend>
<select class="form-select" name="entry.1884769915" id="autoClimb" required>
<option value="" disabled selected>Select one</option>
<option value="Climbed">Climbed</option>
<option value="No Climb">No Climb</option>
<option value="Attempted To Climb, Failed">Attempted To Climb, Failed</option>
</select>
</fieldset>
<fieldset>
<legend>How did they climb?</legend>
<select class="form-select" name="entry.464361249" id="autoClimbHow" required>
<option value="" disabled selected>Select one</option>
<option value="Left Side">Left Side</option>
<option value="Down the Middle">Down the Middle</option>
<option value="Right Side">Right Side</option>
<option value="Did not climb">Did not climb</option>
</select>
</fieldset>
</div>
</div>
<h4>Teleop (2:10-0:00)</h4>
<div class="form-section">
<div class="form-row">
<fieldset class="fuel-counter">
<legend>Teleop Fuel Scored</legend>
<div class="input-group">
<button type="button" class="btn btn-outline-danger" onclick="decrementTeleopScored()">-</button>
<input type="number" class="form-control text-center" name="entry.2027288960" id="teleopScored" placeholder="0" required min="0" max="1000" value="0">
<button type="button" class="btn btn-outline-success" onclick="incrementTeleopScored()">+</button>
</div>
</fieldset>
<fieldset class="fuel-counter">
<legend>Teleop Fuel Passed</legend>
<div class="input-group">
<button type="button" class="btn btn-outline-danger" onclick="decrementTeleopPassed()">-</button>
<input type="number" class="form-control text-center" name="entry.1192527974" id="teleopPassed" placeholder="0" required min="0" max="1000" value="0">
<button type="button" class="btn btn-outline-success" onclick="incrementTeleopPassed()">+</button>
</div>
</fieldset>
<fieldset>
<legend>Teleop Climb?</legend>
<select class="form-select" name="entry.1291362431" id="teleopClimb" required>
<option value="" disabled selected>Select one</option>
<option value="No Climb">No Climb</option>
<option value="Attempted To Climb, Failed">Attempted To Climb, Failed</option>
<option value="Bumpers off ground">Bumpers off ground</option>
<option value="Bumpers over lowest bar">Bumpers over lowest bar</option>
<option value="Bumpers over second bar">Bumpers over second bar</option>
</select>
</fieldset>
<fieldset>
<legend>How did they Climb?</legend>
<select class="form-select" name="entry.1022083903" id="teleopClimbHow" required>
<option value="" disabled selected>Select one</option>
<option value="Left Side">Left Side</option>
<option value="Down the Middle">Down the Middle</option>
<option value="Right Side">Right Side</option>
<option value="Did not climb">Did not climb</option>
</select>
</fieldset>
<img src="https://i.ibb.co/spwwmMj6/Screenshot-2026-01-14-at-6-12-47-PM.png" alt="Climbing Layout" class="field-image" width="350" height="150">
<fieldset>
<legend>Passing Accuracy</legend>
<select class="form-select" name="entry.812255631" id="passingAccuracy" required>
<option value="" disabled selected>Select one</option>
<option value="N/A">N/A - Did not pass</option>
<option value="1">1 = Barely shot out, left the field, stayed in Neutral Zone</option>
<option value="2">2 = Shot to edge of Neutral Zone bordering our Hub</option>
<option value="3">3 = Past Robot Starting Line</option>
</select>
</fieldset>
<fieldset>
<legend>Shooting Accuracy</legend>
<select class="form-select" name="entry.1465763167" id="shootingAccuracy" required>
<option value="" disabled selected>Select one</option>
<option value="Did not shoot">Did not shoot</option>
<option value="0%">0%</option><option value="5%">5%</option><option value="10%">10%</option>
<option value="15%">15%</option><option value="20%">20%</option><option value="25%">25%</option>
<option value="30%">30%</option><option value="35%">35%</option><option value="40%">40%</option>
<option value="45%">45%</option><option value="50%">50%</option><option value="55%">55%</option>
<option value="60%">60%</option><option value="65%">65%</option><option value="70%">70%</option>
<option value="75%">75%</option><option value="80%">80%</option><option value="85%">85%</option>
<option value="90%">90%</option><option value="95%">95%</option><option value="100%">100%</option>
</select>
</fieldset>
</div>
</div>
<h4>Post-Game</h4>
<div class="form-section">
<div class="form-row">
<fieldset>
<legend>When their Hub was Active, the robot was a ______ bot</legend>
<select class="form-select" name="entry.854198450" id="hubActive" required>
<option value="" disabled selected>Select one</option>
<option value="Cleanup: Stayed in the alliance zone, shot passed balls.">Cleanup: Stayed in the alliance zone, shot passed balls.</option>
<option value="Cycling: Got fuel from the Neutral zone and scored it.">Cycling: Got fuel from the Neutral zone and scored it.</option>
<option value="Passing: Shot balls to our side of the field.">Passing: Shot balls to our side of the field.</option>
<option value="Shover: Shoved balls to our side of the field, or to the human players.">Shover: Shoved balls to our side of the field, or to the human players.</option>
<option value="Hoarding: Held fuel in the robot, no intentions of shooting or passing">Hoarding: Held fuel in the robot, no intentions of shooting or passing</option>
<option value="Brute: Prevented enemy bots from entering the neutral zone, or from scoring.">Brute: Prevented enemy bots from entering the neutral zone, or from scoring.</option>
<option value="Thief: Collected and shot fuel from enemy alliance zone to neutral zone or further.">Thief: Collected and shot fuel from enemy alliance zone to neutral zone or further.</option>
<option value="Nothing: Did nothing">Nothing: Did nothing</option>
</select>
</fieldset>
<fieldset>
<legend>When their Hub was Inactive, the robot was a ______ bot</legend>
<select class="form-select" name="entry.769981197" id="hubInactive" required>
<option value="" disabled selected>Select one</option>
<option value="Passing: Shot balls to our side of the field.">Passing: Shot balls to our side of the field.</option>
<option value="Shover: Shoved balls to our side of the field, or to the human players.">Shover: Shoved balls to our side of the field, or to the human players.</option>
<option value="Hoarding: Held fuel in the robot, no intentions of shooting or passing">Hoarding: Held fuel in the robot, no intentions of shooting or passing</option>
<option value="Brute: Prevented enemy bots from entering the neutral zone, or from scoring.">Brute: Prevented enemy bots from entering the neutral zone, or from scoring.</option>
<option value="Thief: Collected and shot fuel from enemy alliance zone to neutral zone or further.">Thief: Collected and shot fuel from enemy alliance zone to neutral zone or further.</option>
<option value="Nothing: Did nothing">Nothing: Did nothing</option>
</select>
</fieldset>
<fieldset>
<legend>Scoring Method</legend>
<select class="form-select" name="entry.1401683727" id="scoringMethod" required>
<option value="" disabled selected>Select one</option>
<option value="April Tags (smooth movement)">April Tags (smooth movement)</option>
<option value="Has To Line Up">Has To Line Up</option>
<option value="Did Not Score">Did Not Score</option>
<option value="Don't know">Don't know</option>
</select>
</fieldset>
<fieldset>
<legend>Fuel Intake Method</legend>
<select class="form-select" name="entry.105420236" id="fuelIntake" required>
<option value="" disabled selected>Select one</option>
<option value="Feeder Station">Feeder Station</option>
<option value="Ground">Ground</option>
<option value="Both">Both</option>
<option value="None">None</option>
<option value="Don't know">Don't know</option>
</select>
</fieldset>
<fieldset>
<legend>Defence</legend>
<select class="form-select" name="entry.1323284915" id="defence" required>
<option value="" disabled selected>Select one</option>
<option value="1">1 - Bad</option><option value="2">2 - Meh</option>
<option value="3">3 - Neutral/No Defence</option><option value="4">4 - Decent</option>
<option value="5">5 - Good</option>
</select>
</fieldset>
<fieldset>
<legend>Driving</legend>
<select class="form-select" name="entry.1307312004" id="driving" required>
<option value="" disabled selected>Select one</option>
<option value="1">1 - Bad</option><option value="2">2 - Meh</option>
<option value="3">3 - Neutral</option><option value="4">4 - Decent</option>
<option value="5">5 - Good</option>
</select>
</fieldset>
<fieldset>
<legend>Can go under Trench?</legend>
<select class="form-select" name="entry.842957171" id="trench" required>
<option value="" disabled selected>Select one</option>
<option value="Yes">Yes</option><option value="No">No</option><option value="IDK">IDK</option>
</select>
</fieldset>
<fieldset>
<legend>Can go over Bump?</legend>
<select class="form-select" name="entry.1678024093" id="bump" required>
<option value="" disabled selected>Select one</option>
<option value="Yes">Yes</option><option value="No">No</option><option value="IDK">IDK</option>
</select>
</fieldset>
<fieldset>
<legend>Did they tip over?</legend>
<select class="form-select" name="entry.271229141" id="tipOver" required>
<option value="" disabled selected>Select one</option>
<option value="Yes">Yes</option><option value="No">No</option><option value="Almost">Almost</option>
</select>
</fieldset>
<fieldset>
<legend>Did they get beached?</legend>
<select class="form-select" name="entry.1602966049" id="beached" required>
<option value="" disabled selected>Select one</option>
<option value="Yes">Yes</option><option value="No">No</option>
</select>
</fieldset>
</div>
<div class="form-row" style="margin-top: 20px;">
<fieldset class="w-100">
<legend>1. Did they play defence, and if so, were they easy to push around? Describe what they did on defence. 2. Other comments?</legend>
<input type="text" class="form-control" name="entry.2023321300" id="comments" placeholder="Type answer here" required>
</fieldset>
</div>
</div>
<div class="submit-container">
<button type="submit" class="btn btn-primary">Submit!</button>
</div>
</form>
<iframe name="hidden_iframe" id="hidden_iframe" style="display:none;"></iframe>
</div>
<!-- About Page -->
<div id="aboutPage" class="page">
<h1 class="text-center">
<div class="header-images">
<span style="font-size: 2.5rem;">About 5572 Scouting</span>
</div>
</h1>
<div class="text-center mb-4">
<button class="btn-nav" onclick="showScoutingPage()">→ Back to Scouting Form ←</button>
</div>
<div class="content-section">
<h2>About Our Scouting System</h2>
<p>Our scouting system is designed to collect important match data about other team's robots during competitions. Each scouter observes a specific robot throughout the match, recording crucial information about their autonomous performance, teleop capabilities, climbing mechanisms, and strategic gameplay. This data helps our strategy team make informed decisions during alliance selections and when coming up with different strategies before each match.</p>
</div>
<div class="content-section">
<h2>How The Scouting Site Works</h2>
<p><p style="text-align: center;">Scouters enter robot data and submit the form.</p></p>
<img src="https://i.ibb.co/pjPB9JtQ/Screenshot-2026-01-17-at-10-38-34-AM.png" alt="Logo 1" style="display: block; margin: 20px auto; border: 4px solid #333; border-radius: 12px; box-shadow: 0 4px 12px rgb(0, 0, 0);" width="300" height="175">
<p>The website sends the information to our Google Form by matching the form IDs to the website question IDs.</p>
<img src="https://i.ibb.co/67ZHvCcD/Screenshot-2026-01-17-at-11-23-32-AM.png" alt="Logo 1" style="display: block; margin: 20px auto; border: 4px solid #333; border-radius: 12px; box-shadow: 0 4px 12px rgb(0, 0, 0);" width="300" height="150">
<img src="https://i.ibb.co/99pn8YsM/Screenshot-2026-01-17-at-11-19-48-AM.png" alt="Logo 1" style="display: block; margin: 20px auto; border: 4px solid #333; border-radius: 12px; box-shadow: 0 4px 12px rgb(0, 0, 0);" width="300" height="300">
<p>The data from the Google Form is then sent to our Google Sheet, where we take the raw data and turn it into processed data, telling us how each robot performs.</p>
<img src="https://i.ibb.co/hxzCQzGH/Screenshot-2026-01-17-at-11-46-58-AM.png" alt="Logo 1" style="display: block; margin: 20px auto; border: 4px solid #333; border-radius: 12px; box-shadow: 0 4px 12px rgb(0, 0, 0);" width="300" height="150">
</div>
<div class="content-section">
<h2>Links</h2>
<p><a href="https://github.com/Frc5572/Scouting-Website" target="_blank">Github Repo</a></p>
<p><a href="https://docs.google.com/spreadsheets/d/1Hb1gtc7D9eeo4tniX_IHi8PWJhOns-BcMFdDXMybXzs/edit?usp=sharing" target="_blank">Data Collection and Visualization Google Sheet</a></p>
</div>
<div class="content-section">
<h2>Scouting Team Members</h2>
<div class="team-stats">
<div class="stat-card"><h3>20</h3><p>Number of Scouts this Season</p></div>
<div class="stat-card"><h3>1768</h3><p>Individual Robot Matches Tracked (As of 04/19/2026) </p></div>
<div class="stat-card"><h3>100%</h3><p>Dedication</p></div>
</div>
<p style="margin-top: 25px;">Our main scouting team includes: Cole, Saajid, Elijah, Jane, Will, Jacqueline, and Rita. Each member brings unique skills and perspectives to ensure accurate and comprehensive data collection.</p>
</div>
<div class="text-center mt-4">
<button class="btn-nav" onclick="showScoutingPage()">→ Back to Scouting Form ←</button>
</div>
</div>
</div>
<!-- QR Code Modal -->
<div class="qr-overlay" id="qrOverlay">
<div class="qr-modal">
<h2>✓ Submitted! Scan Your QR Code</h2>
<p>Form sent to Google. Scan this QR code to import the same data directly into Google Sheets.</p>
<div id="qrCodeContainer"></div>
<div class="qr-meta" id="qrMeta"></div>
<p class="scan-hint">Scan → copy the text → click an empty cell in column A → paste. Each field auto-splits into its own column instantly.</p>
<div class="qr-actions">
<button class="btn-qr-download" onclick="downloadQR()">⬇ Download QR</button>
<button class="btn-qr-close" onclick="closeQR()">Done — Next Match</button>
</div>
</div>
</div>
<script>
/* ─── Navigation ─── */
function showAboutPage() {
document.getElementById('scoutingPage').classList.remove('active');
document.getElementById('aboutPage').classList.add('active');
window.scrollTo(0, 0);
}
function showScoutingPage() {
document.getElementById('aboutPage').classList.remove('active');
document.getElementById('scoutingPage').classList.add('active');
window.scrollTo(0, 0);
}
/* ─── Counter helpers ─── */
function adj(id, delta) {
const el = document.getElementById(id);
const v = Math.max(0, Math.min(500, (parseInt(el.value) || 0) + delta));
el.value = v;
el.dispatchEvent(new Event('change'));
markFieldsetAsAnswered(el);
}
function incrementAutoScored() { adj('autoScored', 1); }
function decrementAutoScored() { adj('autoScored', -1); }
function incrementAutoPassed() { adj('autoPassed', 1); }
function decrementAutoPassed() { adj('autoPassed', -1); }
function incrementTeleopScored(){ adj('teleopScored', 1); }
function decrementTeleopScored(){ adj('teleopScored',-1); }
function incrementTeleopPassed(){ adj('teleopPassed', 1); }
function decrementTeleopPassed(){ adj('teleopPassed',-1); }
/* ─── Fieldset answered highlight ─── */
function markFieldsetAsAnswered(element) {
const fieldset = element.closest('fieldset');
if (!fieldset) return;
if (fieldset.classList.contains('fuel-counter')) {
const val = parseInt(fieldset.querySelector('input').value) || 0;
fieldset.classList.toggle('answered', val > 0);
} else {
const inp = fieldset.querySelector('input, select');
fieldset.classList.toggle('answered', !!(inp && inp.value && inp.value !== ''));
}
}
/* ─── Persistent fields ─── */
const DEFAULT_EVENT_KEY = '2026txsan';
let submitted = false;
let matchData = null;
function savePersistentData() {
const d = {};
document.querySelectorAll('.persistent-field').forEach(f => { d[f.id] = f.value; });
const mn = document.getElementById('matchNumber').value;
if (mn) d.lastMatchNumber = parseInt(mn);
window.scoutingPersistentData = d;
}
function loadPersistentData() {
if (!window.scoutingPersistentData) return;
Object.keys(window.scoutingPersistentData).forEach(id => {
if (id === 'lastMatchNumber') return;
const f = document.getElementById(id);
if (f) f.value = window.scoutingPersistentData[id];
});
}
function initializeMatchNumber() {
const f = document.getElementById('matchNumber');
if (window.scoutingPersistentData && window.scoutingPersistentData.lastMatchNumber) {
f.value = window.scoutingPersistentData.lastMatchNumber + 1;
} else if (!f.value) {
f.value = 1;
}
loadTeamsForMatch();
}
/* ─── Team loading ─── */
function loadTeamsForMatch() {
const matchNumber = parseInt(document.getElementById('matchNumber').value);
const teamInput = document.getElementById('teamInput');
const loadingIndicator = document.getElementById('teamLoadingIndicator');
if (!matchNumber || isNaN(matchNumber)) {
teamInput.disabled = true;
teamInput.placeholder = 'Enter match number first';
document.getElementById('teamDatalist').innerHTML = '<option value="">Enter match number first</option>';
loadingIndicator.style.display = 'none';
return;
}
loadingIndicator.style.display = 'block';
teamInput.disabled = true;
teamInput.placeholder = 'Loading teams...';
document.getElementById('teamDatalist').innerHTML = '<option value="">Loading teams...</option>';
if (matchData && matchData[DEFAULT_EVENT_KEY] && matchData[DEFAULT_EVENT_KEY][matchNumber]) {
populateTeamSelect(matchData[DEFAULT_EVENT_KEY][matchNumber]);
loadingIndicator.style.display = 'none';
return;
}
teamInput.disabled = false;
teamInput.placeholder = 'Enter team number manually';
document.getElementById('teamDatalist').innerHTML = '';
loadingIndicator.style.display = 'none';
}
function populateTeamSelect(teams) {
const teamInput = document.getElementById('teamInput');
const teamDatalist = document.getElementById('teamDatalist');
if (!teams || teams.length === 0) {
teamInput.placeholder = 'Enter team number manually';
teamInput.disabled = false;
teamDatalist.innerHTML = '';
return;
}
teamDatalist.innerHTML = '';
teams.forEach(team => {
const opt = document.createElement('option');
opt.value = typeof team === 'string' ? team.replace('frc', '') : team.number;
teamDatalist.appendChild(opt);
});
teamInput.disabled = false;
teamInput.placeholder = 'Enter or select team number';
}
/* ─── QR Code generation ─── */
function buildQRData() {
const now = new Date();
const ts = (now.getMonth()+1) + '/' + now.getDate() + '/' + now.getFullYear() + ' ' +
now.getHours().toString().padStart(2,'0') + ':' +
now.getMinutes().toString().padStart(2,'0') + ':' +
now.getSeconds().toString().padStart(2,'0');
const v = id => (document.getElementById(id) || {}).value || '';
// Escape a field value so it's safe inside the SPLIT formula string.
// We use | as delimiter, so any | in a value gets replaced with a space.
// We also escape double-quotes by doubling them (Sheets CSV convention).
const esc = val => String(val).replace(/\|/g, ' ').replace(/"/g, '""');
const fields = [
ts,
v('name'),
v('lanyardNumber'),
v('matchNumber'),
v('teamInput'),
v('robotAttendance'),
v('startingLocation'),
v('exitLine'),
v('autoScored'),
'', // Auto Scored Cycles (not collected)
v('autoPassed'),
'', // Auto Passed Cycles (not collected)
v('autoClimb'),
v('autoClimbHow'),
v('teleopScored'),
'', // Teleop Scored Cycles (not collected)
v('teleopPassed'),
'', // Teleop Passed Cycles (not collected)
v('teleopClimb'),
v('teleopClimbHow'),
v('shootingAccuracy'),
v('hubActive'),
v('hubInactive'),
v('fuelIntake'),
v('scoringMethod'),
v('driving'),
v('defence'),
v('trench'),
v('bump'),
v('tipOver'),
v('beached'),
v('passingAccuracy'),
v('comments'),
v('password')
];
// Build a Sheets SPLIT formula: paste into any cell → spills across columns
const escaped = fields.map(esc).join('|');
const formula = `=SPLIT("${escaped}","|",TRUE,FALSE)`;
return { data: formula, ts, team: v('teamInput'), match: v('matchNumber'), scout: v('name') };
}
function showQRModal(qrInfo) {
const container = document.getElementById('qrCodeContainer');
container.innerHTML = '';
new QRCode(container, {
text: qrInfo.data,
width: 280,
height: 280,
colorDark: '#000000',
colorLight: '#ffffff',
correctLevel: QRCode.CorrectLevel.M
});
document.getElementById('qrMeta').innerHTML =
'<strong>Scout:</strong> ' + qrInfo.scout +
' | <strong>Match:</strong> ' + qrInfo.match +
' | <strong>Team:</strong> ' + qrInfo.team +
'<br><strong>Time:</strong> ' + qrInfo.ts;
document.getElementById('qrOverlay').classList.add('active');
}
function closeQR() {
document.getElementById('qrOverlay').classList.remove('active');
}
function downloadQR() {
const container = document.getElementById('qrCodeContainer');
const canvas = container.querySelector('canvas');
const img = container.querySelector('img');
let src = null;
if (canvas) {
src = canvas.toDataURL('image/png');
} else if (img) {
src = img.src;
}
if (!src) return;
const a = document.createElement('a');
const match = document.getElementById('matchNumber').value || 'unknown';
const team = document.getElementById('teamInput').value || 'unknown';
a.download = 'qr_match' + match + '_team' + team + '.png';
a.href = src;
a.click();
}
/* ─── Form submit handling ─── */
function handleFormSubmit() {
if (!submitted) return;
// Build and show QR
const qrInfo = buildQRData();
showQRModal(qrInfo);
// Show success toast
const successMessage = document.getElementById('successMessage');
successMessage.style.display = 'block';
setTimeout(() => { successMessage.style.display = 'none'; }, 3000);
// Prep form for next match
const currentMatchNumber = parseInt(document.getElementById('matchNumber').value) || 1;
document.getElementById('scoutingForm').reset();
document.getElementById('scoutingForm').classList.remove('loading');
document.getElementById('eventKey').value = DEFAULT_EVENT_KEY;
loadPersistentData();
document.getElementById('matchNumber').value = currentMatchNumber + 1;
if (window.scoutingPersistentData) {
window.scoutingPersistentData.lastMatchNumber = currentMatchNumber;
}
loadTeamsForMatch();
document.querySelectorAll('fieldset').forEach(fs => fs.classList.remove('answered'));
submitted = false;
}
/* ─── Boot ─── */
window.addEventListener('load', function () {
document.getElementById('eventKey').value = DEFAULT_EVENT_KEY;
loadPersistentData();
initializeMatchNumber();
if (typeof window.MATCH_DATA !== 'undefined') {
matchData = window.MATCH_DATA;
}
document.getElementById('hidden_iframe').addEventListener('load', handleFormSubmit);
document.querySelectorAll('fieldset').forEach(fieldset => {
const input = fieldset.querySelector('input, select');