-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbooking_3.html
88 lines (67 loc) · 2.57 KB
/
booking_3.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
<!DOCTYPE html>
<html>
<head>
<title>Book a Test Drive</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel = "icon" href ="images\logo.png" type = "image/x-icon">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="stylesheets\styleBooking_3.css">
</head>
<script>
var query = window.location.search.substring(1);
function myfunction(){
var arrayNew= new Array();
var add=document.getElementById("Address").value;
var location=document.getElementById("Your Location").value;
var showroom=document.getElementById("At Showroom").value;
if (add !=""){
arrayNew.push("&Address="+add);
}
else if(location !=""){
arrayNew.push("&Your Location="+location);
}
else{
arrayNew.push("&At Showroom="+showroom);
}
var actionTaken="printPage.html"+"?"+query+arrayNew.join();
window.location.replace(actionTaken);
}
</script>
<body>
<div class="bookTestDrive" id="sec1">
<div class="slider">
<figure>
<div class="slide">
<img src="https://hips.hearstapps.com/hmg-prod.s3.amazonaws.com/images/hyundai-1-1575903969.jpg" alt="hyundai logo">
</div>
<div class="slide">
<img src="https://autopolis.files.wordpress.com/2013/09/hyundai-pony-76-94a.jpg?w=584" alt="">
</div>
<div class="slide">
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/a/a1/Hyundai_Pony_1984_Utrecht.jpg/1200px-Hyundai_Pony_1984_Utrecht.jpg" alt="">
</div>
<div class="slide">
<img src="https://www.fitmycar.com/journal/wp-content/uploads/2016/10/Hyundai-Pony-1.jpg" alt="">
</div>
</figure>
</div>
<div class="tD">
<h1>Book a Test Drive</h1>
<h4>Select Your Preferred Location</h4><br>
<input type="radio" name="add" value="add">
<label for="hAdd"><b>Home Address</b></label><br>
<input type="text" id="Address" placeholder="Enter Your Address" name="add"><br>
<input type="radio" name="add" value="location">
<label for="other"><b>Preferred Location</b></label>
<input type="text" id="Your Location" placeholder="Your Location"><br>
<input type="radio" id="At Showroom" name="add" value="BTS Motors - Raipur">
<label for="sAdd"><b>At Showroom</b></label>
<i id="At Showroom" class="fa fa-address-book" style="font-size:14px; position: relative; left: 20px; padding: 10px; font-family= Arial;"> BTS Motors - Raipur
Near HNLU, Sector - 40, Atal Nagar, Raipur, Chhattisgarh - 492002</i><br>
<button class="btn" onclick="myfunction()"><span>Book Now</span></button>
</div>
<div class="back"><button><a href="booking_2.html"><span>Go Back</span></a></button></div>
</div>
</div>
</body>
</html>