-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbooking.html
140 lines (128 loc) · 6.29 KB
/
booking.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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Queenstown Booking</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<link rel="stylesheet" href="style1.css">
<link href="https://fonts.googleapis.com/css2?family=Roboto&family=Roboto+Slab:wght@300&display=swap" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"><script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
</head>
<body>
<script>
function calculateTotal(){
var price = new Array();
price["Skiing"] = 299;
price["Mountain Flight"] = 399;
price["Jet Boat"] = 120;
price["Hiking"] = 59;
price["Gandola"] = 120;
price["Biking"] = 49;
var qty = document.getElementById("qty").value;
if ( document.getElementById("skiing").checked == true ){
var total = qty * price["Skiing"];
document.getElementById("total").value = total + "NZD$";
}
else if (document.getElementById("mount").checked == true){
var total = qty * price["Mountain Flight"];
document.getElementById("total").value = total + "NZD$";
}
else if(document.getElementById("jet").checked == true) {
var total = qty * price["Jet Boat"];
document.getElementById("total").value = total + "NZD$";
}
else if (document.getElementById("hike").checked == true){
var total = qty * price["Hiking"];
document.getElementById("total").value = total + "NZD$";
}
else if(document.getElementById("gand").checked == true) {
var total = qty * price["Gandola"];
document.getElementById("total").value = total + "NZD$";
}
else if(document.getElementById("bik").checked == true) {
var total = qty * price["Biking"];
document.getElementById("total").value = total + "NZD$";
}
}
</script>
<!-- Nav BAr -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="#"> <img src="img/" alt=""> </a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" >
<h2>Queenstown Tour</h2>
<ul class="navbar-nav mr-auto " >
<li class="nav-item">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="activ.html">Activities</a>
</li>
<li class="nav-item active ">
<a class="nav-link" href="booking.html">Booking</a>
</li>
<li class="nav-item ">
<a class="nav-link " href="contact.html" >Contact</a>
</li>
</ul>
<form class="form-inline my-2 my-lg-0">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="booking-form-box" >
<div class="box">
<h1>Bookings</h1>
<form action="checkout.html" method="get" >
<div class="input-grp">
<h5>Activity:</h5>
<input id="skiing" type="radio" name="act" value="Skiing" onClick="calculateTotal()" checked>Skiing
<input id="mount" type="radio" name="act" value="Mountain Flight" onClick="calculateTotal()"> Mountain Flight
<input id="jet" type="radio" name="act" value="Jet Boat" onClick="calculateTotal()">Jet Boat
<input id="hike" type="radio" name="act" value="Hiking" onClick="calculateTotal()"> Hiking
<input id="gand" type="radio" name="act" value="Gandola" onClick="calculateTotal()"> Gandola
<input id="bik" type="radio" name="act" value="Biking" onClick="calculateTotal()">Biking <br><br>
</div>
<div class="input-grp">
<h5>No of People</h5>
<input id="qty" type="Number" name="qty" required placeholder="0" onchange="calculateTotal()" class="form-control">
</div>
<div class="input-grp">
<h5>Date of Booking</h5>
<input id="date" type="date" name="date" class="form-control select-date" required>
</div>
<h5>Time</h5>
<input id="morning" type="radio" name="time" value="10am" checked> 10am
<input id="noon" type="radio" name="time" value="2pm" > 2pm
<input id="evening" type="radio" name="time" value="4pm"> 4pm <br><br>
<h5>Pick Up</h5>
<input type="radio" name="ask" value="yes" checked> Yes
<input type="radio" name="ask" value="No" > No
<h5>Total</h5>
<input id="total" type="text" name="total" placeholder="0" readonly><br><br>
<input class="btn btn-primary btn-md" type="submit" value="Book Now" onClick="calculateTotal()">
</form>
</div>
</div>
</div>
<div class="col-md-6">
<div class="align">
<br><br><br><br><br><br><br>
<h1>Hurry Up and </h1>
<h1>Book Now! </h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
</div>
</div>
</div>
<!-- footer -->
</body>
</html>