-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbooking-result.html
More file actions
117 lines (116 loc) · 4.99 KB
/
booking-result.html
File metadata and controls
117 lines (116 loc) · 4.99 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Finished 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) => document.getElementById(y).innerText = x);
document.getElementById("cost").innerText = calcPrice(searchParams);
const carCat = searchParams.get("car-category");
document.getElementById('picture').src = "img/" + carCat + ".jpg";
}
</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="page-container">
<div id="home-page">
<div id="reservation-container">
<div id="reservation-heading">
<h2 id="main-content" tabindex="0">Booking confirmed!</h2>
</div>
<div style="padding: 10px" >
<span tabindex="0">You are borrowing:</span>
<ul>
<li tabindex="0">Category: <strong id="car-category"> </strong></li>
<li tabindex="0">From city (location): <strong id="location"></strong></li>
<li tabindex="0">From date <strong id="pick-up-date"></strong> and time <strong id="pick-up-time"></strong></li>
<li tabindex="0">To date: <strong id="return-date"></strong> and time <strong id="return-time"></strong></li>
<li tabindex="0">Cost (usd): <strong id="cost"></strong></li>
</ul>
<img tabindex="0" style="padding: 10px 30px 10px;" id="picture" src="" alt="Picture of your choosen car.">
</div>
</div>
</div>
</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 tabindex="0" href="http://www.instagram.com/"><img src="img/ig.png" alt="Instagram"></a></li>
<li><a tabindex="0" href="https://twitter.com/"><img src="img/twitter.png" alt="Twitter"></a></li>
<li><a tabindex="0" href="https://www.facebook.com/"><img src="img/fb.png" alt="Facebook"></a></li>
</ul>
</article>
</footer>
</body>
</html>