-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprintPage.html
92 lines (74 loc) · 1.57 KB
/
printPage.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
<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<title>Test Drive Confiramation | BTS MOTORS</title>
<head>
<style>
*{
position: relative;
margin: 10px;
padding: 10px;
background-color: #8eb28a;
font-weight: bold;
text-align: center;
}
input {
width: 20%;
height: 15px;
font-weight: bolder;
text-transform:uppercase;
padding: 10px;
}
button {
background-color: #333;
opacity: 0.7;
padding: 10px;
color: white;
border-radius: 10px;
position: relative;
left: 10px;
}
button:hover {
cursor: pointer;
opacity: 5;
color: white;
transform: scale(1.1);
font-weight: bold;
}
</style>
</head>
<body>
<h1>Test Drive Booking Confirmation</h1>
<script>
var a1=new Array();
var a2=new Array();
var query = window.location.search.substring(1);
a1=query.split("&");
for (i=0;i<a1.length;i++){
a2=a1[i].split("=");
if (a2[1].toString().includes("+")){
a2[1]= a2[1].replace("+", " ");
}
if (a2[0].toString().includes("+")){
a2[0]= a2[0].replace("+", " ");
}
if (a2[0].toString().includes("%")){
a2[0]= a2[0].replace("%20", " ");
}
if (a2[1].toString().includes("%")){
a2[1]= a2[1].replace("%20", " ");
}
if (a2[1].toString().includes("%")){
a2[1]= a2[1].replace("%20", " ");
}
if (a2[1].toString().includes("%")){
a2[1]= a2[1].replace("%20", " ");
}
document.write(a2[0]+" = "+"<input type='text' name='"+a2[0]+"' value='"+a2[1]+"' readonly></br>");
}
</script>
<center><p>Click the button to print the current page.</p></center>
<button onclick="window.print()">Print</button>
<button onclick="document.location='index1.html'">HOME</button>
</body>
</html>