-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
217 lines (196 loc) · 8.81 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
210
211
212
213
214
215
216
217
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Choice Cars</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.45.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.45.0/mapbox-gl.css' rel='stylesheet' />
<link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Philosopher" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Heebo" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="shortcut icon" href="img/favicon.ico">
<link rel="stylesheet" href="css/style.min.css">
</head>
<body>
<div class="main">
<div class="home">
<!-- Banner -->
<div class="banner">
<h1 class="logo">Choice<br />Cars</h1>
</div>
<div class="homeSection">
<div class="locations">
<!-- Pick up location -->
<label for="pickLocation">Pick Up</label>
<div class="input-group mb-3">
<select class="custom-select locInput red-tooltip" id="pickLocation" data-toggle="tooltip" title="Choose a pick up location">
<option selected>Choose...</option>
<option value="Auckland">Auckland</option>
<option value="Taupo">Taupo</option>
<option value="Wellington">Wellington</option>
<option value="Picton">Picton</option>
<option value="Dunedin">Dunedin</option>
<option value="Christchurch">Christchurch</option>
<option value="Queenstown">Queenstown</option>
</select>
</div>
<!-- Drop off location -->
<label for="dropLocation">Drop Off</label>
<div class="input-group mb-3">
<select class="custom-select locInput" id="dropLocation">
<option value="0" selected>Same as pick up</option>
<option value="Auckland">Auckland</option>
<option value="Taupo">Taupo</option>
<option value="Wellington">Wellington</option>
<option value="Picton">Picton</option>
<option value="Dunedin">Dunedin</option>
<option value="Christchurch">Christchurch</option>
<option value="Queenstown">Queenstown</option>
</select>
</div>
</div>
<!-- Dates -->
<div class="dateInputs">
<div class="groupInput">
<label for="pickDate">From</label>
<input type="text" class="form-control dateInput red-tooltip" id="pickDate" name="pickDate" placeholder="dd/mm/yyyy" data-toggle="tooltip" title="Choose a valid date">
</div>
<div class="groupInput dateTwo">
<label for="dropDate">to</label>
<input type="text" class="form-control dateInput red-tooltip" id="dropDate" name="dropDate" placeholder="dd/mm/yyyy" data-toggle="tooltip" title="Choose a valid date">
</div>
</div>
<div class="justCenter">
<div class="people">
<!-- People -->
<label>People</label>
<div class="input-group mb-3 peopleGroup">
<div class="input-group-prepend">
<button class="btn btn-outline-secondary pplButton" type="button" id="minus">-</button>
</div>
<p class="peopleInput form-control" id="totalPpl">1</p>
<div class="input-group-append">
<button class="btn btn-outline-secondary pplButton" type="button" id="plus">+</button>
</div>
</div>
</div>
<button class="btn btn-outline-secondary greeenButton" id="search">Search</button>
</div>
</div>
</div>
<!-- Results page -->
<div class="results displayNone">
<!-- Results banner -->
<div class="nav">
<i class="fas fa-arrow-left" id="return"></i>
<h2 class="headerTitle">Results</h2>
<i class="fas fa-arrow-left colorDark"></i>
</div>
<!-- Map and Chart -->
<div class="topper row">
<!-- Map -->
<div class="col-10" id="mapDiv">
<div id='map'></div>
</div>
<!-- Button -->
<div class="col-2 mcButton" id="mapChart">
<h3 class="rotate" id="buttonText">Pricing Chart</h3>
</div>
<!-- Chart -->
<div class="col-10 chartDiv displayNone" id="chartDiv">
<canvas id="chart"></canvas>
</div>
</div>
</div>
</div>
<!-- no vehicle available modal -->
<div class="modal fade" id="noVehModal" tabindex="-1" role="dialog" aria-labelledby="bookModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="modalLabel">Unfortunately there are no vehicles available for this selection.</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- book modal -->
<div class="modal fade" id="bookModal" tabindex="-1" role="dialog" aria-labelledby="bookModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="bookModalLabel">New Booking</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<h5 class="modalTitle">
Pick Up
</h5>
<p id="modalPick"></p>
<h5 class="modalTitle">
Drop Off
</h5>
<p id="modalDrop"></p>
<h5 class="modalTitle">
Total Daily Price
</h5>
<p id="modalPrice"></p>
<form>
<div class="form-group">
<label for="bookingName" class="col-form-label">Full Name:</label>
<input type="text" class="form-control modalInput" id="bookingName" data-toggle="tooltip" title="Your name is requried">
</div>
<div class="form-group">
<label for="bookingEmail" class="col-form-label">Email Address:</label>
<input type="text" class="form-control modalInput" id="bookingEmail" data-toggle="tooltip" title="Your email is requried">
</div>
<div class="form-group">
<label for="bookingPhone" class="col-form-label">Contact Number:</label>
<input type="tel" class="form-control modalInput" id="bookingPhone" data-toggle="tooltip" title="A phone number is required">
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary greeenButton" id="bookingConfirmed">Book</button>
</div>
</div>
</div>
</div>
<!-- booking confirmed -->
<div class="modal fade" id="bookingMade" tabindex="-1" role="dialog" aria-labelledby="bookModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="madeLabel">Thank you for your booking. <br />You should receive an email shortly.</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-datalabels"></script>
<script src="js/data-min.js"></script>
<script src="js/script-min.js"></script>
</body>
</html>