-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathclaimDisc.html
858 lines (792 loc) · 30.4 KB
/
claimDisc.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
<!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" />
<!-- 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 - Claim Disc</title>
<meta
name="description"
content="Demo Application - Explore how simple Lost & Found can be by joining the Network"
/>
<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"
/>
<link
href="https://unpkg.com/[email protected]/css/boxicons.min.css"
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 pickupLocations = [
{
id: 0,
name: "Johns Simple Store Pickup",
Date: "Wednesday",
Location: "1234 Main Street, City, ST 12333",
},
{
id: 1,
name: "Johns Simple Store Pickup",
Date: "Thursday",
Location: "1234 Main Street, City, ST 12333",
},
{
id: 2,
name: "Johns Simple Store Pickup",
Date: "Friday",
Location: "1234 Main Street, City, ST 12333",
},
{
id: 3,
name: "Johns Simple Store Pickup",
Date: "Saturday",
Location: "1234 Main Street, City, ST 12333",
},
{
id: 4,
name: "Johns Simple Store Pickup",
Date: "Sunday",
Location: "1234 Main Street, City, ST 12333",
},
{
id: 5,
name: "Johns Simple Store Pickup",
Date: "Monday",
Location: "1234 Main Street, City, ST 12333",
},
{
id: 6,
name: "Johns Simple Store Pickup",
Date: "Tuesday",
Location: "1234 Main Street, City, ST 12333",
},
];
// Function to populate the pickup locations dropdown
function populatePickupLocations() {
var pickupLocationDropdown = document.getElementById(
"inputPickupLocation"
);
// Clear existing options
pickupLocationDropdown.innerHTML = "";
// Add the default option
var defaultOption = document.createElement("option");
defaultOption.value = "";
defaultOption.text = "Choose a Pickup Location";
pickupLocationDropdown.appendChild(defaultOption);
// Add the pickup locations from the data
for (var i = 0; i < pickupLocations.length; i++) {
var option = document.createElement("option");
option.value = pickupLocations[i].id;
option.text =
pickupLocations[i].name + " (" + pickupLocations[i].Date + "s)";
pickupLocationDropdown.appendChild(option);
}
}
// Function to get the value of a query parameter from the URL
function getQueryParam(parameterName) {
const urlParams = new URLSearchParams(window.location.search);
return urlParams.get(parameterName);
}
function claimDisc() {
console.log(`Claiming disc with ID ${discID}...`);
// Get the pickup details from the HTML elements
const pickupDate =
document.getElementById("verifyPickupDate").textContent;
const pickupLocation = document.getElementById(
"verifyPickupLocation"
).textContent;
const contactInfo = document.getElementById(
"verifyContactInfoForRelease"
).textContent;
const queryParams = new URLSearchParams();
queryParams.append("id", discID);
queryParams.append("pickupDate", pickupDate);
queryParams.append("pickupLocation", pickupLocation);
queryParams.append("contactInfo", contactInfo);
queryParams.append(
"communicationMethodLabel",
document.getElementById("communicationMethodLabel").textContent
);
const queryString = queryParams.toString();
const url = `claimDiscSuccess.html?${queryString}`;
window.location.href = url;
}
</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 surrenderDiscConfirm() {
window.location.href = "surrenderDiscSuccess.html";
}
function surrenderDisc() {
// Show the popup
var popupSurrender = document.getElementById("popup-surrender");
popupSurrender.style.display = "flex";
}
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 inputPhone = document.getElementById("inputPhone").value;
const inputEmail = document.getElementById("inputEmail").value;
const inputPickupLocation = document.getElementById(
"inputPickupLocation"
).value;
// Format the phone number
const formattedPhone = formatPhoneNumber(inputPhone);
// Populate the placeholder elements in the popup
document.getElementById("verifyPickupDate").textContent =
pickupLocations[inputPickupLocation].Date;
document.getElementById("verifyPickupLocation").textContent =
`${pickupLocations[inputPickupLocation].name}` +
" " +
`${pickupLocations[inputPickupLocation].Location}`;
discID = getQueryParam("id");
console.log(discID);
//search the found_discs array from /js/discs.js for the discID that was passed in the URL & display the disc info in the popup-verify
const matchingDisc = found_discs.find(
(disc) => disc.ID === parseInt(discID)
);
if (matchingDisc) {
// Show the popup
var popupVerify = document.getElementById("popup-verify");
popupVerify.style.display = "flex";
const discInfoHTML = `
<div class="disc-item">
<div class="course-box">
<div class="course-box-detail claim-disc-content">
<div class="div-block-2">
<div class="circle-overlay">
<img src="./assets/pin.png">
</div>
<div class="text-block-2"><div class="course-wrapper">${matchingDisc.Course}</div></div>
</div>
<div class="course-image">
<img src="./assets/course-image.png" alt="image">
</div>
<div class="course-list">
<ul>
<li><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" style="fill: rgba(0, 0, 0, 1);transform: ;msFilter:;"><path d="M13.4 2.096a10.08 10.08 0 0 0-8.937 3.331A10.054 10.054 0 0 0 2.096 13.4c.53 3.894 3.458 7.207 7.285 8.246a9.982 9.982 0 0 0 2.618.354l.142-.001a3.001 3.001 0 0 0 2.516-1.426 2.989 2.989 0 0 0 .153-2.879l-.199-.416a1.919 1.919 0 0 1 .094-1.912 2.004 2.004 0 0 1 2.576-.755l.412.197c.412.198.85.299 1.301.299A3.022 3.022 0 0 0 22 12.14a9.935 9.935 0 0 0-.353-2.76c-1.04-3.826-4.353-6.754-8.247-7.284zm5.158 10.909-.412-.197c-1.828-.878-4.07-.198-5.135 1.494-.738 1.176-.813 2.576-.204 3.842l.199.416a.983.983 0 0 1-.051.961.992.992 0 0 1-.844.479h-.112a8.061 8.061 0 0 1-2.095-.283c-3.063-.831-5.403-3.479-5.826-6.586-.321-2.355.352-4.623 1.893-6.389a8.002 8.002 0 0 1 7.16-2.664c3.107.423 5.755 2.764 6.586 5.826.198.73.293 1.474.282 2.207-.012.807-.845 1.183-1.441.894z"></path><circle cx="7.5" cy="14.5" r="1.5"></circle><circle cx="7.5" cy="10.5" r="1.5"></circle><circle cx="10.5" cy="7.5" r="1.5"></circle><circle cx="14.5" cy="7.5" r="1.5"></circle></svg><span>${matchingDisc.Color} ${matchingDisc.Disc}</span></li>
<li><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" style="fill: rgba(0, 0, 0, 1);transform: ;msFilter:;"><path d="M15 11h7v2h-7zm1 4h6v2h-6zm-2-8h8v2h-8zM4 19h10v-1c0-2.757-2.243-5-5-5H7c-2.757 0-5 2.243-5 5v1h2zm4-7c1.995 0 3.5-1.505 3.5-3.5S9.995 5 8 5 4.5 6.505 4.5 8.5 6.005 12 8 12z"></path></svg><span>${matchingDisc.Name}</span></li>
<li><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" style="fill: rgba(0, 0, 0, 1);transform: ;msFilter:;"><path d="M13.707 3.293A.996.996 0 0 0 13 3H4a1 1 0 0 0-1 1v9c0 .266.105.52.293.707l8 8a.997.997 0 0 0 1.414 0l9-9a.999.999 0 0 0 0-1.414l-8-8zM12 19.586l-7-7V5h7.586l7 7L12 19.586z"></path><circle cx="8.496" cy="8.495" r="1.505"></circle></svg><span>${matchingDisc.Brand}</span></li>
</ul>
</div>
</div>
</div>
</div>`;
// Insert the HTML content into the "discInfoVerify" element
const discInfoVerifyElement =
document.getElementById("discInfoVerify");
discInfoVerifyElement.innerHTML = discInfoHTML;
} else {
// Handle the case when the disc is not found
console.log("Disc not found with ID:", discID);
}
// Show the popup
var popupVerify = document.getElementById("popup-verify");
popupVerify.style.display = "flex";
// Show either the "Phone Number For Release" or "Email For Release" label based on the communicationMethod
if (communicationMethod === "phone") {
document.getElementById("verifyContactInfoForRelease").textContent =
formattedPhone;
console.log("Info: communicationMethod method is phone");
} else if (communicationMethod === "email") {
document.getElementById("verifyContactInfoForRelease").textContent =
inputEmail;
console.log("Info: communicationMethod method is email");
} else {
console.log("Error: communicationMethod is not set.");
}
}
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 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";
}
function closePopupSurrender() {
var popupSurrender = document.getElementById("popup-surrender");
popupSurrender.style.display = "none";
}
var filter_brand = (filter_color = filter_disc = []);
var communicationMethod = "phone";
var discID = -1;
//window.addEventListener('resize', updateButtonText);
window.onload = function () {
const loadingBar = document.getElementById("loading-bar");
loadingBar.style.animation = "none";
//updateButtonText();
populatePickupLocations();
discID = getQueryParam("id");
console.log(discID);
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 For Release: ";
communicationMethod = "phone";
};
btnEmail.onclick = function () {
document.getElementById("inputEmail").style.display = "block";
document.getElementById("inputPhone").style.display =
"none !important";
modal.style.display = "none";
communicationMethodLabel.textContent = "Email For Release: ";
communicationMethod = "email";
};
};
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
}
</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">
Let's Get Your
<span
class="lato"
style="font-weight: 300 !important; font-size: 3rem"
>Disc</span
>
</h3>
<h4 class="text-white px-0 mt-0 mb-4" style="font-weight: unset" ;>
Just Enter Some <span class="overtext">Info</span>.
</h4>
</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; padding-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-12 pe-0" style="padding: 0px">
<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"
style="padding: 0px !important; flex-wrap: nowrap"
>
<div class="col-12 pe-0 arrow one" style="padding: 0px">
<select
id="inputPickupLocation"
class="form-select"
style="height: 55px !important"
>
<option selected>Choose a Pickup Location</option>
<!-- Pickup Locations options will be populated by JavaScript -->
</select>
</div>
</div>
<div
class="col mt-2 mb-2 select-box"
style="padding: 0px !important; flex-wrap: nowrap"
>
<button
class="btn red white-border-hover text-white mt-3 mb-3"
style="
width: 100%;
min-height: 55px !important;
font-size: unset !important;
"
onClick="verifyInfo()"
>
Schedule your Disc Pickup
</button>
<button
class="btn blue white-border-hover"
style="
min-height: 55px !important;
width: 100%;
font-size: unset !important;
"
onClick="surrenderDisc()"
>
Surrender Disc
</button>
</div>
</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" onclick="closePopupVerify()"
>×</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" style="flex-direction: column">
<div
class="popup-content popup-claim-disc"
id="popup-verify-content"
style="margin: unset !important"
>
<span class="close" id="close" onclick="closePopupVerify()"
>×</span
>
<h2 style="font-size: 3rem; margin-top: 10px; margin-bottom: 10px">
Verify Your <span class="fw-light">INFO</span>
</h2>
<div class="verify-info claim-disc">
<div class="box-content-disc d-flex flex-column">
<div class="verify-row">
<label>Pickup Date:</label>
<span id="verifyPickupDate" class="fw-light"></span>
</div>
<div class="verify-row">
<label id="pickupLocationLabel">Pickup Location:</label>
<span id="verifyPickupLocation" class="fw-light"></span>
</div>
<div class="verify-row">
<label id="communicationMethodLabel"></label>
<span id="verifyContactInfoForRelease" class="fw-light"></span>
</div>
</div>
<div
class="verify-row"
id="discInfoVerify"
style="
color: var(--primary-black) !important;
width: 65%;
max-width: 400px;
"
>
<!-- disc info will be populated here -->
</div>
</div>
<div id="loading-bar" class="loading-bar"></div>
</div>
<div
class="d-flex justify-content-center align-items-center mt-2 mb-2"
style="
flex-direction: column;
width: 90%;
max-width: 450px;
background: transparent;
justify-content: flex-start;
margin: auto;
padding-bottom: 50px;
"
>
<button class="stepbutton text-white mt-2 mb-3" onClick="claimDisc()">
Perfect! Give me my disc back!
</button>
<button
class="rememberbtn fw-light"
style="width: 80%; max-width: 450px"
onClick="closePopupVerify()"
>
Need to adjust some pickup information
</button>
</div>
</div>
<div id="popup-surrender" class="popup" style="flex-direction: column">
<div
class="popup-content"
id="popup-surrender-content"
style="margin: unset !important"
>
<span class="close" id="close" onclick="closePopupSurrender()"
>×</span
>
<h2>
You are about to <span class="redText">Surrender</span> Your Disc
</h2>
<p>
Hi There! Surrendering your disc is just like a donation. This disc
can be sold by the course to raise funds for things like new tee pads,
new baskets or general maintenance.
</p>
</div>
<div
class="d-flex justify-content-center align-items-center mt-2 mb-2"
style="
flex-direction: column;
width: 90%;
max-width: 450px;
background: transparent;
justify-content: flex-start;
margin: auto;
padding-bottom: 50px;
"
>
<button
class="stepbutton red text-white mt-2 mb-3 no-border"
onClick="surrenderDiscConfirm()"
style="font-size: 1rem"
>
Yes, please donate my disc to the course!
</button>
<button
class="rememberbtn fw-light blue no-border-1"
style="width: 80%; max-width: 450px; font-weight: 400 !important"
onClick="closePopupSurrender()"
>
Sorry, I want my disc back
</button>
</div>
</div>
<script src="js/discs.js"></script>
</body>
</html>