-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathreportLostDisc.html
1030 lines (954 loc) · 34.5 KB
/
reportLostDisc.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
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.0" />
<!-- Standard Favicon -->
<link rel="icon" type="image/png" href="./assets/Color_Logo_Blue.png" />
<link
href="https://unpkg.com/[email protected]/css/boxicons.min.css"
rel="stylesheet"
/>
<!-- For Apple devices -->
<link
rel="apple-touch-icon"
sizes="512x512"
href="./assets/Color_Logo_Blue.png"
/>
<!-- For general use, like on Android -->
<link
rel="icon"
type="image/png"
sizes="256x256"
href="./assets/Color_Logo_Blue.png"
/>
<link
rel="icon"
type="image/png"
sizes="512x512"
href="./assets/Color_Logo_Blue.png"
/>
<!-- Web App Manifest -->
<link rel="manifest" href="/site.webmanifest" />
<title>DRN Inventory - Report Lost Disc</title>
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="./globals.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap"
rel="stylesheet"
/>
<style>
.loading-bar {
width: 0;
height: 10px;
background-color: var(--primary-green);
animation: loading 2s linear forwards;
margin-top: 10px;
}
@keyframes loading {
from {
width: 0;
}
to {
width: 100%;
}
}
</style>
<script>
var stateTuples = [
["All", "All"],
["Alabama", "AL"],
["Alaska", "AK"],
["Arizona", "AZ"],
["Arkansas", "AR"],
["California", "CA"],
["Colorado", "CO"],
["Connecticut", "CT"],
["Delaware", "DE"],
["Florida", "FL"],
["Georgia", "GA"],
["Hawaii", "HI"],
["Idaho", "ID"],
["Illinois", "IL"],
["Indiana", "IN"],
["Iowa", "IA"],
["Kansas", "KS"],
["Kentucky", "KY"],
["Louisiana", "LA"],
["Maine", "ME"],
["Maryland", "MD"],
["Massachusetts", "MA"],
["Michigan", "MI"],
["Minnesota", "MN"],
["Mississippi", "MS"],
["Missouri", "MO"],
["Montana", "MT"],
["Nebraska", "NE"],
["Nevada", "NV"],
["New Hampshire", "NH"],
["New Jersey", "NJ"],
["New Mexico", "NM"],
["New York", "NY"],
["North Carolina", "NC"],
["North Dakota", "ND"],
["Ohio", "OH"],
["Oklahoma", "OK"],
["Oregon", "OR"],
["Pennsylvania", "PA"],
["Rhode Island", "RI"],
["South Carolina", "SC"],
["South Dakota", "SD"],
["Tennessee", "TN"],
["Texas", "TX"],
["Utah", "UT"],
["Vermont", "VT"],
["Virginia", "VA"],
["Washington", "WA"],
["West Virginia", "WV"],
["Wisconsin", "WI"],
["Wyoming", "WY"],
];
var courses = [
{ name: "Course Not Listed", city: "NA", state: "NA" },
{ name: "Maple Hill", city: "Leicester", state: "Massachusetts" },
{ name: "Tranquility Trails", city: "Woolwich", state: "New Jersey" },
{ name: "Blue Ribbon Pines", city: "East Bethel", state: "Minnesota" },
{ name: "Flip City", city: "Shelby", state: "Michigan" },
{ name: "Fox Run Meadows", city: "Smugglers' Notch", state: "Vermont" },
{ name: "Idlewild", city: "Burlington", state: "Kentucky" },
{ name: "The Beast", city: "Waco", state: "Texas" },
{ name: "DeLaveaga", city: "Santa Cruz", state: "California" },
{ name: "Hornets Nest", city: "Charlotte", state: "North Carolina" },
{ name: "Fountain Hills", city: "Fountain Hills", state: "Arizona" },
{ name: "Rollin Ridge", city: "Reedsville", state: "Wisconsin" },
{
name: "S.Y. Wilson Arlington Sports Complex",
city: "Arlington",
state: "Tennessee",
},
{ name: "10-3 at CB", city: "Mt. Crested Butte", state: "Colorado" },
{
name: "1000 Acres Ranch Disc Golf Course",
city: "Stony Creek",
state: "New York",
},
{
name: "2022 Lucky Disc Golf Open Freeman North",
city: "Idaho Falls",
state: "Idaho",
},
{ name: "3 Creeks", city: "Rising Sun", state: "Maryland" },
{ name: "50 Acre Park", city: "Evergreen", state: "Illinois" },
{ name: "501 Disc Golf", city: "Warren", state: "Massachusetts" },
{
name: "65th Infantry Veterans Disc Golf Course",
city: "Kissimmee",
state: "Florida",
},
{ name: "A. J. Jolly Park", city: "Alexandria", state: "Kentucky" },
{ name: "Stafford Woods", city: "Voorhees", state: "New Jersey" },
{ name: "Bellevue State Park", city: "Bellevue", state: "Delaware" },
{
name: "Inverness Disc Golf Park",
city: "Inverness",
state: "Florida",
},
{
name: "Girdwood Forest Fair Park",
city: "Girdwood",
state: "Alaska",
},
{
name: "Windy Ridge Disc Golf at Mitchusson Park",
city: "Huntsville",
state: "Arkansas",
},
{ name: "North Landing", city: "Virginia Beach", state: "Virginia" },
];
// Placeholder names for remaining states not already in 'courses'
var remainingStates = [
"Alabama",
"Connecticut",
"Georgia",
"Hawaii",
"Iowa",
"Kansas",
"Louisiana",
"Maine",
"Mississippi",
"Montana",
"Nebraska",
"Nevada",
"New Hampshire",
"New Mexico",
"North Dakota",
"Ohio",
"Oklahoma",
"Oregon",
"Rhode Island",
"South Carolina",
"South Dakota",
"Utah",
"Vermont",
"Washington",
"West Virginia",
"Wyoming",
];
// Function to populate states dropdown (unchanged)
function populateStates() {
remainingStates.forEach(function (state) {
if (!courses.some((course) => course.state === state)) {
courses.push({
name: state + " Disc Golf Course",
city: state + " City",
state: state,
});
}
});
var select = document.getElementById("inputState");
// Using stateTuples array
stateTuples.forEach(function (tuple) {
var option = document.createElement("option");
option.textContent = tuple[1]; // State name
option.value = tuple[0]; // State abbreviation
select.appendChild(option);
});
}
// Revised function to populate courses dropdown
function populateCourses() {
var select = document.getElementById("inputCourse");
courses.forEach(function (course) {
var option = document.createElement("option");
option.textContent = course.name; // Only display the course name
option.value = course.name; // You can change this if you need to store a different value
select.appendChild(option);
});
}
document.addEventListener("DOMContentLoaded", function () {
document
.getElementById("inputState")
.addEventListener("change", function () {
var selectedState = this.value;
var filteredCourses;
// Check if "All" is selected
if (selectedState === "All") {
// Use the entire courses array
filteredCourses = courses;
} else {
// Apply filtering for a specific state
console.log("filtering...");
console.log(selectedState);
filteredCourses = courses.filter(function (course) {
return course.state === selectedState;
});
console.log(filteredCourses);
}
var courseSelect = document.getElementById("inputCourse");
courseSelect.innerHTML = ""; // Clear existing options
filteredCourses.forEach(function (course) {
var option = document.createElement("option");
option.textContent = course.name;
console.log(course.name);
option.value = course.name;
courseSelect.appendChild(option);
});
});
document
.getElementById("inputCourse")
.addEventListener("change", function () {
var selectedCourseName = this.value;
if (selectedCourseName === "Course Not Listed") {
// Show a popup when "Course Not Listed" is selected
alert("Please request a course by providing additional details.");
// You can replace the above line with code to show a custom modal/dialog if needed
} else {
// Existing logic for when a course is selected
console.log("selected course: " + selectedCourseName);
var selectedCourse = courses.find(function (course) {
return course.name === selectedCourseName;
});
if (selectedCourse) {
document.getElementById("inputState").value =
selectedCourse.state;
}
}
});
});
</script>
<script>
function toggleFabMenu() {
const overlay = document.getElementById("overlay");
const fabMenuContainer = document.getElementById("fabMenuContainer");
const fabLogo = document.getElementById("fabLogo"); // Get the logo by its ID
const fabClose = document.getElementById("fabClose"); // Get the 'X' span by its ID
const fabContainer = document.getElementById("fabContainer"); // Get the 'X' span by its ID
const fab = document.getElementById("fab"); // Get the 'X' span by its ID
// Toggle the active class on the overlay and the FAB menu
overlay.classList.toggle("active");
fabMenuContainer.classList.toggle("active");
// Check if the menu is active or not
if (fabMenuContainer.classList.contains("active")) {
// Menu is active, show 'X' and hide logo
fabLogo.style.display = "none"; // Hide the logo
fabClose.style.display = "block"; // Show the 'X'
} else {
// Menu is not active, hide 'X' and show logo
fabLogo.style.display = "block"; // Show the logo
fabClose.style.display = "none"; // Hide the 'X'
}
}
function reportLostDisc() {
window.location.href = "reportLostDisc.html";
}
function requestCourse() {
window.location.href = "requestCourse.html";
}
function openSettings() {
window.location.href = "settings.html";
}
function goBack() {
if (document.referrer.startsWith(window.location.origin)) {
window.history.back();
} else {
// Handle the case when there is no history to go back to
// For example, redirect to a different page or display an error message
console.log("No page on the same domain to go back to.");
}
}
function refresh() {
window.location.href = "/";
}
function verifyInfo() {
// Get the button element
// var button = document.querySelector('.newsletterButton');
// Change button text to spinner
// button.innerHTML = '<i class="fa fa-spinner fa-spin"></i> Processing...';
// Get the input values
const inputInitial = document.getElementById("inputInitial").value;
const inputName = document.getElementById("inputName").value;
const selectedColor = document.getElementById("colorList").value;
const inputPhone = document.getElementById("inputPhone").value;
const inputEmail = document.getElementById("inputEmail").value;
const inputDiscName = document.getElementById("inputDiscName").value;
const selectedState = document.getElementById("inputState").value;
const selectedCourse = document.getElementById("inputCourse").value;
// Format the phone number
const formattedPhone = formatPhoneNumber(inputPhone);
// Convert the state to its abbreviation
const stateAbbreviation = getStateAbbreviation(selectedState);
// Populate the placeholder elements in the popup
document.getElementById(
"verifyName"
).textContent = `${inputInitial}. ${inputName}`;
document.getElementById("verifyPhone").textContent =
formattedPhone || inputEmail; // Use either phone or email
document.getElementById(
"verifyColorDiscName"
).textContent = `${selectedColor} ${inputDiscName} (${
document.getElementById("brandList").value
})`;
// document.getElementById('verifyBrand').textContent = document.getElementById('brandList').value;
document.getElementById(
"verifyCourseState"
).textContent = `${selectedCourse}, ${stateAbbreviation}`;
// Show the popup
var popupVerify = document.getElementById("popup-verify");
popupVerify.style.display = "flex";
// After timeout, change the button text to checkmark - 2 second delay
// setTimeout(function () {
// button.innerHTML = '<i class="fa fa-check"></i> Request Submitted';
// }, 2000);
}
function formatPhoneNumber(phoneNumber) {
// Remove all non-numeric characters from the phone number
const numericPhoneNumber = phoneNumber.replace(/\D/g, "");
// Check if the phone number has 10 digits, assuming it's a US phone number
if (numericPhoneNumber.length === 10) {
// Format it as (XXX) XXX-XXXX
return numericPhoneNumber.replace(
/(\d{3})(\d{3})(\d{4})/,
"($1) $2-$3"
);
}
// If the phone number doesn't have 10 digits, return it as is
return phoneNumber;
}
function getStateAbbreviation(stateName) {
// Find the corresponding abbreviation in the stateTuples array
const stateTuple = stateTuples.find((tuple) => tuple[0] === stateName);
return stateTuple ? stateTuple[1] : stateName; // Return abbreviation or the input name if not found
}
function closePopupVerify() {
console.log("Closing the popup...");
var modal = document.getElementById("popup");
var btnPhone = document.getElementById("choosePhone");
var btnEmail = document.getElementById("chooseEmail");
var span = document.getElementById("close");
// Open the modal
modal.style.display = "flex";
document.getElementById("inputPhone").style.display = "block";
document.getElementById("inputEmail").style.display = "none !important";
modal.style.display = "none";
communicationMethodLabel.textContent = "Phone Number For Release: ";
communicationMethod = "phone";
var popupVerify = document.getElementById("popup-verify");
popupVerify.style.display = "none";
}
var filter_brand = (filter_color = filter_disc = []);
function populateBrandList() {
var select = document.getElementById("brandList");
var uniqueBrands = new Set(); // Use a Set to store unique brands
// Extract unique brands from found_discs
found_discs.forEach(function (disc) {
if (disc.Brand && disc.Brand.indexOf("/") === -1) {
uniqueBrands.add(disc.Brand); // Assuming each disc has a 'Brand' property
}
});
// Iterate over unique brands and create dropdown options
uniqueBrands.forEach(function (brand) {
var option = document.createElement("option");
option.textContent = brand; // Brand name as the option text
option.value = brand; // Brand name as the option value
select.appendChild(option);
});
// Add 'Other' option
var otherOption = document.createElement("option");
otherOption.textContent = "Other";
otherOption.value = "other";
select.appendChild(otherOption);
}
function populateColorList() {
var select = document.getElementById("colorList");
var uniqueColors = new Set(); // Use a Set to store unique colors
// Extract unique colors from found_discs
found_discs.forEach(function (disc) {
if (disc.Color && disc.Color.indexOf("/") === -1) {
uniqueColors.add(disc.Color); // Assuming each disc has a 'Color' property
}
});
// Iterate over unique colors and create dropdown options
uniqueColors.forEach(function (color) {
var option = document.createElement("option");
option.textContent = color; // Color name as the option text
option.value = color; // Color name as the option value
select.appendChild(option);
});
// Add 'Other' option
var otherOption = document.createElement("option");
otherOption.textContent = "Other";
otherOption.value = "other";
select.appendChild(otherOption);
}
window.addEventListener("resize", updateButtonText);
window.onload = function () {
const loadingBar = document.getElementById("loading-bar");
loadingBar.style.animation = "none";
updateButtonText();
populateBrandList();
populateColorList();
// Call the functions to populate the dropdowns
populateStates();
populateCourses();
// Add event listener for brand dropdown
document
.getElementById("brandList")
.addEventListener("change", function () {
showOtherInput(this.value, "brandOtherInput");
});
// Add event listener for color dropdown
document
.getElementById("colorList")
.addEventListener("change", function () {
showOtherInput(this.value, "colorOtherInput");
});
var modal = document.getElementById("popup");
var btnPhone = document.getElementById("choosePhone");
var btnEmail = document.getElementById("chooseEmail");
var span = document.getElementById("close");
// Open the modal
modal.style.display = "flex";
// When the user clicks on <span> (x), close the modal
span.onclick = function () {
modal.style.display = "none";
closePopupVerify();
};
// When the user clicks anywhere outside of the modal, close it
window.onclick = function (event) {
if (event.target == modal) {
modal.style.display = "none";
closePopupVerify();
}
};
// Handling button actions
btnPhone.onclick = function () {
document.getElementById("inputPhone").style.display = "block";
document.getElementById("inputEmail").style.display =
"none !important";
modal.style.display = "none";
communicationMethodLabel.textContent = "Phone Number:";
};
btnEmail.onclick = function () {
document.getElementById("inputEmail").style.display = "block";
document.getElementById("inputPhone").style.display =
"none !important";
modal.style.display = "none";
communicationMethodLabel.textContent = "Email Address:";
};
};
function showOtherInput(selectedValue, inputId) {
// Check if 'other' is selected
if (selectedValue === "other") {
document.getElementById(inputId).style.display = "block";
} else {
document.getElementById(inputId).style.display = "none";
}
}
function submitDisc() {
// Simulate a 2-second loading animation
const loadingBar = document.getElementById("loading-bar");
//loadingBar.style.animation = 'none';
setTimeout(function () {
loadingBar.style.animation = "loading 2s linear forwards";
// After the loading animation, you can perform any necessary actions
setTimeout(function () {
// Once your processing is done, you can close the popup
const popupVerify = document.getElementById("popup-verify");
popupVerify.style.display = "none";
// Navigate to "reportLostDiscSuccess.html"
window.location.href = "reportLostDiscSuccess.html";
}, 2000); // 2-second delay
}, 100); // Delay to start loading animation
}
function updateButtonText() {
const submitDiscButton = document.getElementById("submitDisc");
const requestEditsButton = document.getElementById("requestEdits");
if (window.innerWidth < 600) {
submitDiscButton.textContent = "Looks good!"; // New text for mobile
requestEditsButton.textContent = "Oops! Go back"; // New text for mobile
} else {
submitDiscButton.textContent =
"All good! Let's get my disc rescued please"; // Default text
requestEditsButton.textContent = "Sorry! Need to edit something!"; // Default text
}
}
</script>
</head>
<body>
<section class="main-section text-center">
<div class="container" id="container">
<i
class="fa fa-arrow-left"
style="
position: absolute;
top: 30px;
left: 20px;
font-size: 30px;
color: white;
padding: 5px;
"
aria-hidden="true"
onclick="goBack()"
></i>
<div class="d-flex align-items-center flex-column text-center mb-2">
<img
class="icon-logo"
src="./assets/icon_logo_transparent_fullsize.png"
alt="logo"
onclick="refresh()"
/>
</div>
<div
class="rescue d-flex align-items-center flex-column text-center mt-0 mb-0"
>
<h3 class="m-0 text-white" style="font-size: 3rem">
Enter The
<span
class="fw-light"
style="font-weight: 300 !important; font-size: 3rem"
>Network</span
>
</h3>
</div>
<div class="row mt-2 mb-2 select-box" style="flex-wrap: nowrap">
<div class="col-4 pe-0 arrow one" style="padding: 0px">
<select
id="inputInitial"
class="form-select"
style="height: 55px !important"
>
<option selected>First Initial</option>
<option>A</option>
<option>B</option>
<option>C</option>
<option>D</option>
<option>E</option>
<option>F</option>
<option>G</option>
<option>H</option>
<option>I</option>
<option>J</option>
<option>K</option>
<option>L</option>
<option>M</option>
<option>N</option>
<option>O</option>
<option>P</option>
<option>Q</option>
<option>R</option>
<option>S</option>
<option>T</option>
<option>U</option>
<option>V</option>
<option>W</option>
<option>X</option>
<option>Y</option>
<option>Z</option>
</select>
</div>
<div class="col-8" style="padding: 0px; margin-left: 10px !important">
<input
type="text"
class="form-control"
id="inputName"
placeholder="Last Name"
pattern="[a-zA-Z\-]+"
style="
height: 55px !important;
max-width: 1080px !important;
width: 100% !important;
"
/>
</div>
</div>
<div class="row mt-2 mb-2 select-box" style="flex-wrap: nowrap">
<div class="col-4 pe-0 arrow one" style="padding: 0px">
<select
id="colorList"
class="form-select"
style="height: 55px !important"
>
<option selected>COLOR</option>
<!-- Color options will be populated by JavaScript -->
</select>
</div>
<div
class="col-8 pe-0"
style="padding: 0px; margin-left: 10px !important"
>
<input
type="tel"
class="form-control"
id="inputPhone"
style="
height: 55px !important;
max-width: 1080px !important;
width: 100% !important;
display: none !important;
"
placeholder="Phone Number Written On the Disc"
inputmode="numeric"
/>
<input
type="email"
class="form-control"
id="inputEmail"
style="
height: 55px !important;
max-width: 1080px !important;
width: 100% !important;
display: none !important;
"
placeholder="Email Address"
/>
</div>
</div>
<div
class="row mt-2 mb-2 select-box"
id="colorOtherInput"
style="display: none; flex-wrap: nowrap"
>
<div class="col-12 pe-0" style="padding: 0px">
<input
type="text"
class="form-control"
id="inputOtherColor"
placeholder="Enter other color"
/>
</div>
</div>
<div
class="row mt-2 mb-2 select-box"
style="padding: 0px !important; flex-wrap: nowrap"
>
<div class="col-4 pe-0 arrow one" style="padding: 0px">
<select
id="brandList"
class="form-select"
style="height: 55px !important"
>
<option selected>BRAND</option>
<!-- Brand options will be populated by JavaScript -->
</select>
</div>
<div
class="col-8 pe-0"
style="padding: 0px; margin-left: 10px !important"
>
<input
type="text"
class="form-control placeholder-text"
id="inputDiscName"
placeholder="Enter Disc Name"
style="
height: 55px !important;
max-width: 1080px !important;
width: 100% !important;
text-align: left;
"
/>
</div>
</div>
<div
class="row mt-2 mb-2 select-box"
id="brandOtherInput"
style="display: none; flex-wrap: nowrap"
>
<div class="col-12 pe-0" style="padding: 0px">
<input
type="text"
class="form-control"
placeholder="Enter other brand"
id="inputOtherBrand"
/>
</div>
</div>
<div
class="row mt-2 mb-2 select-box"
style="padding: 0px !important; flex-wrap: nowrap"
>
<div class="col-4 pe-0 arrow one" style="padding: 0px">
<select
id="inputState"
class="form-select"
style="height: 55px !important"
>
<option selected>STATE</option>
<!-- States options will be populated by JavaScript -->
</select>
</div>
<div
class="col-8 arrow"
style="padding: 0px; margin-left: 10px !important"
>
<select
id="inputCourse"
class="form-select"
style="
height: 55px !important;
max-width: 1080px !important;
width: 100% !important;
"
>
<option selected>SELECT A COURSE</option>
<!-- Courses options will be populated by JavaScript -->
</select>
</div>
</div>
<button
class="newsletterButton text-white mt-3 mb-3"
style="width: 85%; height: 55px !important; margin-left: 5px"
onClick="verifyInfo()"
>
Enter your disc into the rescue network
</button>
</div>
</section>
<div class="fab-menu-container" id="fabMenuContainer">
<div class="fab-menu" id="fabMenu">
<div class="fab-menu-item">
<a
class="fab-menu-item-text-left"
href="/reportLostDisc.html"
style="text-decoration: none"
>Report <br />
Lost Disc</a
>
<i class="bx bxs-analyse bx-sm" onclick="reportLostDisc()"></i>
</div>
<div class="fab-menu-item">
<a
class="fab-menu-item-text"
href="/requestCourse.html"
style="text-decoration: none"
>Request a Course</a
>
<i class="bx bx-map-pin bx-sm" onclick="requestCourse()"></i>
</div>
<div class="fab-menu-item">
<i class="bx bx-cog bx-sm" onclick="openSettings()"></i>
<a
class="fab-menu-item-text-right"
href="/settings.html"
style="text-decoration: none"
>Settings</a
>
</div>
</div>
</div>
<footer class="footer">
<div class="overlay" id="overlay" onclick="toggleFabMenu()"></div>
<div class="container">
<div class="footer-content row">
<div class="col-2">
<a class="d-flex align-items-center flex-column" href="/home.html">
<span class="img">
<img src="./assets/home.png" alt="home" />
</span>
<span>HOME</span>
</a>
</div>
<div class="col-2">
<a
class="d-flex align-items-center flex-column"
href="/searchInventory.html"
>
<span class="img">
<img
class="search"
src="./assets/search.png"
alt="home"
width="18"
/>
</span>
<span>SEARCH ALL</span>
</a>
</div>
<div class="col-2">
<a class="d-flex align-items-center flex-column" href="/store.html">
<span class="img">
<img src="./assets/disk-store.png" alt="home" />
</span>
<span>DISC STORE</span>
</a>
</div>
<div class="col-2">
<a
class="d-flex align-items-center flex-column"
href="/courses.html"
>
<span class="img">
<img src="./assets/courses.png" alt="home" />
</span>
<span>COURSES</span>
</a>
</div>
</div>
<!-- <button class="btnaction"><img class="btnlogo" src="./assets/app_center_btn_logo.png" alt="btnlogo"></button> -->
</div>
</footer>
<div class="fab-container" onclick="toggleFabMenu()" id="fabContainer">
<button class="fab" id="fab">
<img
src="./assets/app_center_btn_logo.png"
alt="Disc Rescue Network Logo"
class="logo-fab"
id="fabLogo"
/>
<span id="fabClose" style="display: none; z-index: 15">X</span>
<!-- Hidden by default -->
</button>
</div>
<div id="popup" class="popup">
<div class="popup-content">
<span class="close" id="close">×</span>
<h2 style="margin-left: 5px; margin-right: 5px">
WHAT IS YOUR <span class="redText">PREFERRED</span> METHOD OF
COMMUNICATION?
</h2>
<p>
If you wrote your phone number on your disc, we recommend using this
as your preferred method.
</p>
<div class="d-flex flex-row" style="width: 80%">
<button
id="choosePhone"
class="secondary-btn"
style="margin-right: 10px"
>
Phone
</button>
<button id="chooseEmail" class="warning-btn">Email</button>
</div>
</div>
</div>
<div id="popup-verify" class="popup">
<div class="popup-content" id="popup-verify-content">
<span class="close" id="close" onclick="closePopupVerify()"
>×</span
>
<h2 style="font-size: 3rem">
Verify Your <span class="fw-light">INFO</span>
</h2>
<div class="verify-info">
<div class="verify-row">
<label>Name:</label>
<span id="verifyName" class="fw-light"></span>
</div>
<div class="verify-row">
<label id="communicationMethodLabel">Phone:</label>
<span id="verifyPhone" class="fw-light"></span>
</div>
<div class="verify-row">
<label>Disc:</label>
<span id="verifyColorDiscName" class="fw-light"></span>
</div>
<!-- <div class="verify-row">
<label>Brand:</label>
<span id="verifyBrand" class="fw-light"></span>
</div> -->
<div class="verify-row">
<label>Course:</label>
<span id="verifyCourseState" class="fw-light"></span>
</div>
</div>
<div class="d-flex flex-row" style="width: 100%; margin-top: 5%">
<button
id="submitDisc"
class="warning-btn"
style="
margin-right: 10px;