-
Notifications
You must be signed in to change notification settings - Fork 1
/
finalcheckout.html
261 lines (163 loc) · 4.45 KB
/
finalcheckout.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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://kit.fontawesome.com/697099b486.js" crossorigin="anonymous"></script>
<title>Document</title>
</head>
<style>
body{
padding: 0;
margin: 0;
}
#container1{
width: 100%;
height: 100px;
background-color: black;
margin-bottom: 20px;
}
#name{
margin-top: 30px;
margin-left: 550px;
}
#container{
/* border: 1px solid black; */
height: 470px;
width: 800px;
margin: auto;
}
/* .container5{
border: 1px solid black;
height: 100px;
width: 800px;
margin: auto;
} */
#box1{
/* border: 1px solid red; */
height: 15%;
font-family: "BBText Bold",Helvetica,Arial,sans-serif;
font-weight: 400;
font-size: 21px;
letter-spacing: .24em;
text-transform: uppercase;
text-indent: 20px;
}
#box2{
/* border: 1px solid yellow; */
height: 75%;
width: 45%;
}
#box3{
/* border: 1px solid blue; */
height: 75%;
width: 45%;
margin-left: 5%;
}
#box4{
display: flex;
width: 100%;
height: 100%;
/* border: 1px solid blue; */
}
#p1, #p2{
font-family: "BBText Bold",Helvetica,Arial,sans-serif;
font-weight: 600;
font-size: 14px;
line-height: 18px;
letter-spacing: .2em;
text-transform: uppercase;
text-indent: 0;
margin: 4px 0 30px 0;
padding-bottom: 17px;
border-bottom: 1.5px solid #000000;
/* border: 1px solid black; */
}
.checkout {
padding-bottom: 10px;
border-bottom: 2px solid black;
}
.button1{
height: 12%;
width: 50%;
background-color: black;
color: white;
font-weight: bold;
margin-top: 70px;
margin-left: 10px
}
.button2{
height: 12%;
width: 30%;
background-color: black;
color: white;
font-weight: bold;
margin-top: 20px;
margin-left: 10px
}
input{
width: 95%;
height: 42px;
margin-top: 15px;
padding-left: 15px;
}
</style>
<body>
<div id= "container1">
<a href="index.html">
<img id = "name" src="https://m.bobbibrowncosmetics.com/media/export/cms/logo.png" width= 300 alt="">
</a>
</div>
<div id="container">
<div id="box1">
<div class="checkout"> CHECKOUT </div>
</div>
<div id=box4 >
<div id="box2">
<p id= "p1"> ENTER SHIPPING ADDRESS </p>
<hr>
<input id="shipping" type="text" placeholder= "Shipping Address">
<p>
<i class="fas fa-external-link-square-alt"></i> Yes! I would like to receive the Bobbi Brown Email Newsletter.
</p>
<a href="checkout.html">
<button class= "button1"> CHECKOUT AS GUEST </button>
</a>
</div>
<div id="box3">
<p id="p2"> Checkout details </p>
<hr>
<input type="text" placeholder= "Enter Name">
<input id="CCN" type="number" placeholder= "Enter Credit Card Number">
<input id="CVV" type="number" placeholder= "Enter CVV number">
<input id="expiry" type="number" placeholder= "Enter Expiry Year">
<button class= "button2"> PAY </button>
</div>
</div>
</div>
</body>
</html>
<script>
document.querySelector(".button1").addEventListener("click", finale)
function finale(){
var a= document.querySelector("#shipping").value
if(a=="G-804 Ganesh Genesis")
{
window.location.href="otp.html"
}
}
document.querySelector(".button2").addEventListener("click", finaletouch)
function finaletouch(){
var b= document.querySelector("#CCN").value
var c= document.querySelector("#CVV").value
var d= document.querySelector("#expiry").value
if(b=="123456789" && c=="321" && d=="2025"){
alert("Congratualtion Order placed")
window.location.href="index.html"
}
else{
alert("invalid credit card details");
}
}
</script>