-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfirm-booking.html
More file actions
149 lines (148 loc) · 7.12 KB
/
confirm-booking.html
File metadata and controls
149 lines (148 loc) · 7.12 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Confirm booking</title>
<link rel="stylesheet" href="css/main.css">
<script type="module">
"use strict";
import {calcPrice} from "./calc-cost.js";
window.onload = () => {
const searchParams = new URL(window.location.href).searchParams;
// fill form values from url
searchParams.forEach((x, y) => {
console.log (x, y, document.getElementById(y));
document.getElementById(y).value = x;
});
document.getElementById("cost").innerText = calcPrice(searchParams);
}
</script>
</head>
<body>
<div id="container" class="">
<header>
<div id="header-container">
<section class="utility-bar">
<article class="logo-container">
<div class="">
<h1 tabindex="0">Vrum Vrum company</h1>
</div>
</article>
</section>
<div id="nav-container">
<article class="nav-menu">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="skip-to-content">
<a href="#main-content" class="skip-to-content">Skip to content</a>
</td>
<td>
<a href="car-guide.html">Car Guide</a>
</td>
<td>
<a href="index.html">Car Hire</a>
</td>
<td>
<a href="not-implemented.html">Van Hire</a>
</td>
<td>
<a href="not-implemented.html">Locations</a>
</td>
<td>
<a href="not-implemented.html">Business Hire</a>
</td>
<td>
<a href="not-implemented.html">Offers</a>
</td>
<td>
<a href="not-implemented.html">Products</a>
</td>
<td>
<a href="not-implemented.html">Help</a>
</td>
<td>
<a href="not-implemented.html">Gold Plus Reward</a>
</td>
</tr>
</tbody>
</table>
</article>
</div>
</div>
</header>
<div id="page">
<div id="reservation-container">
<div id="reservation-heading">
<h2 id="main-content">Confirm your booking</h2>
</div>
<div id="help-button">
<abbr title="You use car guide to choose your car! This link will take you to our car guide page">
<a href="car-guide.html">
<img src="img/help.svg" alt="help-button" aria-label="You use car guide to choose your car! This link will take you to our car guide page.">
</a>
</abbr>
</div>
<form method="GET">
<div id="location-time-date">
<div class="label">
<label for="location">
Pick-up Location
<input type="text" name="location" id="location" required>
</label>
<label for="pick-up-date">
Pick-up Date</label>
<input type="date" id="pick-up-date" name="pick-up-date" value="" required aria-label="Pickup date input with format month - day - year">
<label for="pick-up-time"> Pick up Time
<input type="time" id="pick-up-time" name="pick-up-time" value="" required aria-label="Pickup time input with format hour - minute - PM or AM">
</label>
<label for="return-date">
Return Date</label>
<input type="date" name="return-date" id="return-date" value="" required aria-label="Return date input with format month - day - year">
<label for="return-time"> Return Time
<input type="time" name="return-time" id="return-time" value="" required aria-label="Return time input with format hour - minute - PM or AM">
</label>
</div>
</div>
<div id="car-details">
<label for="car-category">
Car category
<select name="car-category" id="car-category" class="label">
<option value="A">A</option>
<option value="B">B</option>
<option value="C">C</option>
<option value="D">D</option>
</select>
</label>
</div>
<strong>The cost is: <span id="cost">0</span></strong>
<div id="submit-container" class="flex-center-row">
<input type="submit" class="button flex-grow-1" value="Cancel" formaction="index.html">
<input type="submit" class="button flex-grow-1" value="Recalculate" formaction="confirm-booking.html">
<input type="submit" class="button flex-grow-1" value="Confirm" formaction="booking-result.html">
</div>
</form>
</div>
</div>
</div>
<footer>
<article id="social-bar">
<form>
<fieldset>
<label for="social-email" id="social-label">
Enter your email to receive news from us.
<input type="text" id="social-email" value="Your email!">
</label>
<button type="button" id="social-button">Sign up!</button>
</fieldset>
</form>
<ul>
<li><a href="http://www.instagram.com/"><img src="img/ig.png" alt="Instagram"></a></li>
<li><a href="https://twitter.com/"><img src="img/twitter.png" alt="Twitter"></a></li>
<li><a href="https://www.facebook.com/"><img src="img/fb.png" alt="Facebook"></a></li>
</ul>
</article>
</footer>
</body>
</html>