-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
209 lines (193 loc) · 11.2 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Find EV Charging Stations Near You</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@1.0.0/css/bulma.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.min.css">
<link rel="stylesheet" href="./assets/css/style.css" />
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A==" crossorigin=""/>
</head>
<body>
<!-- Navbar -->
<header class="has-background-black-ter">
<nav class="navbar">
<!-- Zap & Go Logo -->
<section class="navbar-brand is-flex is-justify-content-center is-align-items-center">
<a class="navbar-item">
<img src="./img/zapndrivelogo.png" alt="Site Logo" style="max-height: 80px">
</a>
</section>
<!-- Navbar Links -->
<section class="navbar-menu navbar-end" id="nav-links">
<a class="is-primary navbar-item has-text-light mr-5 pr-5" target="_blank" href="https://github.com/jwilferd10/Zap-and-Drive">
<i class="fab fa-github fa-2x pr-2"></i>
GitHub
</a>
</section>
</nav>
</header>
<!-- Search Functionality -->
<main class="container pb-5">
<section class="m-6">
<h2 class="title is-3 pb-1">Getting Started</h2>
<p class="subtitle is-4">Locating charging stations is a simple and straightforward process. Here's a quick run-down:</p>
<ul class="content is-medium">
<li>Searches are currently limited to US states.</li>
<li>Fields marked with an asterisk (*) are required.</li>
<li>For more accurate results, please include the state in your search criteria.</li>
<li>Clearing markers will also reset the map.</li>
<li>Clicking on an Address directs you to the map location.</li>
</ul>
</section>
<!-- Form & Map Section -->
<section id="search-container" class="section box">
<!-- Search and clear marker buttons -->
<header class="container pb-2 bottom-border" id="startSearch">
<h1 class ="title">Locate Nearby Charging Stations</h1>
<!-- Search Button (Toggles Modal) -->
<button class="button is-primary js-modal-trigger" data-target="modal-popup">
<i class="fas fa-search pr-2"></i>
Search
</button>
<!-- Clear Markers (Resets & Clears Map) -->
<button class="button is-danger" id="delMark">
<i class="fas fa-trash-alt pr-2"></i>
Clear Markers
</button>
</header>
<article class="columns is-multiline">
<!-- OpenStreetMap -->
<section class="column is-two-quarters-desktop is-two-thirds-tablet is-full-mobile">
<div id="mapID" class="custom-box-shadow-1"></div>
</section>
<!-- Address List -->
<aside class="column is-two-quarter-desktop is-one-third-tablet is-full-mobile">
<h4 id="address-header" class="title is-4 has-text-centered pb-2"> Address List </h4>
<!-- Nearby charging stations list -->
<section class="box address-list-wrapper" id ="clickItems">
<!-- Data collected for addressList will populate here -->
</section>
</aside>
</article>
<!-- Notifies Current App Actions -->
<section class="notification"></section>
</section>
</main>
<!-- Pop-up modal for search functionality -->
<section id="modal-popup" class="modal">
<!-- Adjusts the background color -->
<aside class="modal-background"></aside>
<!-- Modal -->
<section class="modal-card">
<!-- Modal Header -->
<header class="modal-card-head">
<p class="modal-card-title"><i class="fas fa-map-marked-alt pr-1"></i> Search An Area</p>
<button class="delete" aria-label="close"></button>
</header>
<!-- Modal Body -->
<form class="modal-card-body">
<fieldset class="is-2" id="citySearch">
<!-- Start of fetching data -->
<legend class="label content is-large pb-1">Enter Desired Location</legend>
<section class="field m-3 p-3">
<label class="label content is-medium"><i class="fas fa-city pr-1"></i> City *</label>
<input id="inputValue" class="control input is-rounded is-medium" onkeydown="handleKeyDown(event)" type="text" placeholder="Enter a City...">
</section>
<!-- State entry and dropdown menu -->
<section class="field m-3 p-3">
<legend class="label content is-medium"><i class="fas fa-flag-usa pr-1"></i> State</legend>
<section class="select is-medium is-rounded">
<select id="inputValue1" name="state">
<option value="">Select a State...</option>
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
<option value="CA">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
<option value="DE">Delaware</option>
<option value="DC">District of Columbia</option>
<option value="FL">Florida</option>
<option value="GA">Georgia</option>
<option value="HI">Hawaii</option>
<option value="ID">Idaho</option>
<option value="IL">Illinois</option>
<option value="IN">Indiana</option>
<option value="IA">Iowa</option>
<option value="KS">Kansas</option>
<option value="KY">Kentucky</option>
<option value="LA">Louisiana</option>
<option value="ME">Maine</option>
<option value="MD">Maryland</option>
<option value="MA">Massachusetts</option>
<option value="MI">Michigan</option>
<option value="MN">Minnesota</option>
<option value="MS">Mississippi</option>
<option value="MO">Missouri</option>
<option value="MT">Montana</option>
<option value="NE">Nebraska</option>
<option value="NV">Nevada</option>
<option value="NH">New Hampshire</option>
<option value="NJ">New Jersey</option>
<option value="NM">New Mexico</option>
<option value="NY">New York</option>
<option value="NC">North Carolina</option>
<option value="ND">North Dakota</option>
<option value="OH">Ohio</option>
<option value="OK">Oklahoma</option>
<option value="OR">Oregon</option>
<option value="PA">Pennsylvania</option>
<option value="RI">Rhode Island</option>
<option value="SC">South Carolina</option>
<option value="SD">South Dakota</option>
<option value="TN">Tennessee</option>
<option value="TX">Texas</option>
<option value="UT">Utah</option>
<option value="VT">Vermont</option>
<option value="VA">Virginia</option>
<option value="WA">Washington</option>
<option value="WV">West Virginia</option>
<option value="WI">Wisconsin</option>
<option value="WY">Wyoming</option>
</select>
</section>
</section>
</fieldset>
</form>
<!-- Modal Footer -->
<footer class="modal-card-foot buttons">
<button id="submitBtn" class="button is-success is-dark" disabled><i class="fas fa-search pr-2"></i>Search</button>
<button class="button is-info" id="searchEV"><i class="fas fa-map-pin pr-2"></i>Search Immediate Location</button>
<button class="button is-danger"><i class="fas fa-times-circle pr-1"></i> Cancel</button>
</footer>
</section>
</section>
<!-- Footer -->
<footer class="footer mt-5 content has-text-centered">
<section>
<h3>Checkout Our Repository!</h3>
<a class="button is-primary is-outlined m-1" target="_blank" href="https://github.com/jwilferd10/Zap-and-Drive"><i class="fab fa-github fa-2x pr-2"></i>GitHub</a>
</section>
<section class="mt-3">
<h3>Follow The Developers</h3>
<a class="button is-info is-outlined m-1" target="_blank" href="https://github.com/jwilferd10">
<i class="fab fa-github fa-2x pr-2"></i>
@jwilferd10
</a>
<a class="button is-info is-outlined m-1" target="_blank" href="https://github.com/ArlonTuazon">
<i class="fab fa-github fa-2x pr-2"></i>
@ArlonTuazon
</a>
</section>
</footer>
<!-- Script Files -->
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js" integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA==" crossorigin=""></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js" integrity="sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg==" crossorigin="anonymous"></script>
<script src="./assets/js/bulma.js"></script>
<script src="./assets/js/script.js"></script>
</body>
</html>