-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
174 lines (143 loc) · 5.92 KB
/
index.html
File metadata and controls
174 lines (143 loc) · 5.92 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Home | Disc Golf Reservation</title>
<link rel="stylesheet" href="index.css" />
<link rel="icon" type="image/x-icon" href="images/Logo-NO-BG.png">
<!-- Map CSS Links (for Leaflet Map + Marker Cluster) just asset stuff no need of citing should be plagerism free -->
<link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css" />
<link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster/dist/MarkerCluster.css" />
<link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster/dist/MarkerCluster.Default.css" />
<!-- the link below is for acseiblity for people with bad grammer(like me) GENERAL SEARCH feature-->
<script src="https://cdn.jsdelivr.net/npm/fuse.js/dist/fuse.min.js"></script>
</head>
<body>
<header class="main-header">
<div>
<a href="index.html"><img id="logo" src="images/Logo-NO-BG.png" alt="Our Logo"></a>
<h1>Disc Golf Reservation</h1>
<nav>
<ul class="nav-links">
<li><a href="index.html">Home</a></li>
<li><a href="course/courses.html">Courses</a></li>
<li><a href="about/about.html">About</a></li>
<li><a href="Contact/contact.html">Contact</a></li>
</ul>
</nav>
<a href="form/td-form.html"><button class="reserve-header-btn">Reserve</button></a>
</div>
</header>
<main class="container">
<section class="top-callout">
<h2>Start your park reservation request with ease</h2>
<p>
Tournament directors can quickly find parks and begin the request process online —
giving cities everything they need to respond by email or phone.
</p>
</section>
<!-- FEATURE: Live Park Search with Dropdown and Dynamic Info Display -->
<div class="park-search-section">
<h2>Search for Parks</h2>
<div class="search-with-mic">
<input type="text" id="liveParkSearch" placeholder="Type or say a park name..." autocomplete="off">
<button id="voiceSearchBtn" title="Speak" aria-label="Voice Search">
<img src="https://www.svgrepo.com/show/15581/microphone.svg" alt="Microphone Icon" id="micIcon" />
</button>
</div>
<ul id="dropdownResults" class="dropdown-results"></ul>
<!-- Selected Park Info Box -->
<div class="selected-park-info" id="selectedParkInfo" style="display: none;">
<h3 id="selectedParkName"></h3>
<div id="searching-bar">
<div class="left">
<img id="parkImage" src="Logo-NO-BG.png" alt="Park Image" style="max-width: 100%; border-radius: 8px;">
</div>
<div class="right">
<p><strong>Holes:</strong> <span id="selectedHoles"></span></p>
<p><strong>Course Type:</strong> <span id="selectedCourseType"></span></p>
<p><strong>Requirements:</strong> <span id="selectedRequirements"></span></p>
<p><strong>Info:</strong> <span id="selectedInfo"></span></p>
<p><strong>Contact:</strong> <span id="selectedContact"></span></p>
<p><a id="parkMapLink" href="#" target="_blank">View Park Map</a></p>
<div id="parkReservations" style="margin-top: 20px;">
<ul id="reservationList"></ul>
</div>
</div>
</div>
<!-- Reserved Dates and Calendar BELOW info -->
<div id="parkReservations" style="margin-top: 30px;">
<h4 style="margin-bottom: 10px;">Reserved dates for this park:</h4>
<ul id="reservationList"></ul>
<div class="calendar-container">
<div id="reservationCalendar"></div>
<!-- Legend -->
<div class="calendar-legend">
<span class="legend-item"><span class="legend-color red"></span> Reserved</span>
<span class="legend-item"><span class="legend-color yellow"></span> Pending</span>
<span class="legend-item"><span class="legend-color green"></span> Available</span>
</div>
</div>
</div>
<div class="button-action-row" style="display: none;"></div>
<!-- buttons outsidee the dark box, in light area -->
<div id="parkActionButtons" style="display: none; margin-top: 25px; flex-wrap: wrap; gap: 15px;">
<button class="suggest-edit-btn" id="generalSuggestEditBtnBottom">Suggest an Edit</button>
<button class="suggest-edit-btn" id="reserveSelectedParkBtnBottom">Reserve This Park</button>
</div>
</div>
</div> <!-- END of selectedParkInfo -->
<!-- Flatpickr CSS and JS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">
<script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>
<!-- script -->
<script src="display.js" defer></script>
<div id="cta-with-parkowners">
<div class="left-img">
<img src="images/cta-picture.png" alt="Disc Golf Players" >
</div>
<div id="right-content">
<h3>Your Park, More Efficient With Us.</h3>
<p>Sign up to partner today!</p>
<div>
<a href="login-and-signup/login.html" ><button class="suggest-edit-btn">Log In</button></a>
<a href="login-and-signup/register.html" ><button class="suggest-edit-btn">Sign Up</button></a>
</div>
</div>
</div>
<div id="illustration">
<div>
<div><img src="images/illustration1.png"></div>
</div>
<div>
<div><img src="images/illustration2.png"></div>
</div>
<div>
<div><img src="images/illustration3.png"></div>
</div>
<div>
<div><img src="images/illustration5.png"></div>
</div>
</div>
<div id="footer-placeholder"></div>
</main>
<!-- Footer Placeholder + Loader -->
<script>
fetch("footer/footer.html")
.then(res => res.text())
.then(data => {
document.getElementById("footer-placeholder").innerHTML = data;
});
</script>
<!-- Map JS Links -->
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
<script src="https://unpkg.com/leaflet.markercluster/dist/leaflet.markercluster.js"></script>
<!-- Page Scripts -->
<script src="index.js"></script>
<!-- Parky Chatbot Loader -->
<link rel="stylesheet" href="chatbot/parky.css" />
<div id="parky-container"></div>
<script src="chatbot/parky.js"></script>
</body>
</html>