-
Notifications
You must be signed in to change notification settings - Fork 0
/
lastpayment.html
319 lines (249 loc) · 6.89 KB
/
lastpayment.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
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
<!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" />
<title>Cart Page</title>
</head>
<link rel="stylesheet" href="./lastpayment.css">
<style>
body{
margin: 0px;
padding: 0px;
font-family: "PT Sans",sans-serif;
background-color:white;
}
#menu{
width: 35px;
height: 30px;
margin: 30px 0 20px 20px;
cursor: pointer;
z-index: 100;
}
.bar{
height: 10px;
width: 140%;
background-color: rgb(0,0,0);
display: block;
border-radius: 5px;
transition: 0.3s ease;
position: relative;
bottom: 150px;
}
#bar1{
transform: translateY(-4px);
}
#bar3{
transform: translateY(4px);
}
.burger li a{
color: rgb(0, 0, 0);
text-decoration: none;
margin-right:120px;
}
.burger li a:hover{
border: 1px solid #fff;
}
.burger li{
list-style: none;
padding:0px;
text-decoration: none;
margin: 0px;
position: relative;
top: 60px;
text-align: left;
}
.burger{
padding: 0;
margin: 0 20px;
transition: 1s ease;
display: none;
}
.icon .bar{
background-color: rgb(236, 6, 6);
}
.icon #bar1{
transform: translateY(4px) rotate(-45degree);
}
.icon #bar3{
transform: translateY(-6px) rotate(45degree);
}
.icon #bar2{
opacity: 0;
}
.change{
background-color: rgb(255, 255, 255);
height: 100vh;
margin: 0;
position:absolute;
top: 0;
z-index: -100;
width: 20%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.nav{
margin-top: 20px;
width: 100%;
gap: 10px;
position: fixed;
top: 0;
}
.nav>div>img{
width: 20%;
position: relative;
left: 130px;
}
.nav>div>div>a{
text-align: end;
margin-left:100px ;
position: relative;
bottom: 100px;
left: 820px;
text-decoration: none;
list-style: none;
font-size: 25px;
}
</style>
<body>
<div class="nav">
<div>
<img src="https://www.freepnglogos.com/uploads/zara-logo-png/zara-avrupa-logos-2020-desing--11.png" alt="Zara">
</div>
<div id="navigation">
<div id="menu" onclick="onclickmenu()">
<div id="bar1" class="bar"></div>
<div id="bar2" class="bar"></div>
<div id="bar3" class="bar"></div>
</div>
<u class="burger" id="burger">
<li><a href="#">New</a></li>
<li><a href="#">Party</a></li>
<li><a href="#">Best Seller</a></li>
<li><a href="./product.html">Basic </a></li>
<li><a href="#">KNIT Wears</a></li>
<li><a href="#">Coat</a></li>
<li><a href="#">Dress</a></li>
<li><a href="#">Shirt</a></li>
<li><a href="#">Top</a></li>
<li><a href="#">Trouser</a></li>
<li><a href="#">Jeans</a></li>
<li><a href="#">Jacket</a></li>
<li><a href="#">Bleazer</a></li>
<li><a href="#">Jacket</a></li>
<li><a href="#">Sweat shirts</a></li>
<li><a href="#">Tshirt</a></li>
<li><a href="#">Suits</a></li>
<li><a href="#">Co-Order Suits</a></li>
<li><a href="#">Accessories</a></li>
<li><a href="#">Shoes</a></li>
<li><a href="#">Bags</a></li>
<li><a href="#">Perfumes</a></li>
<li><a href="#">Special price</a></li>
<li><a href="#">Gift Idea</a></li>
<li><a href="#">Special Edition</a></li>
<li><a href="#">Gift Card</a></li>
</u>
</div>
</div>
<div id="cart-container">
<!-- Here Append All the cart Products -->
</div>
<div id="const">
<div >
<img src="https://static.zara.net/static/images/payment/payment/icon-payment-visa.svg" alt="">
</div>
</div>
<div id="head">
<h3>ENTER YOUR CARD DETAILS</h3>
</div>
<div id="main">
<div id="months">
<input type="number" id="number" required placeholder="Card Number">
<input type="month" required placeholder="Month">
</div>
<div id="cvv">
<input type="text" required placeholder="placeholder name">
<input type="number" required placeholder="CVV">
</div>
<button id="submit">Submit</button>
</div>
<div id="footer">
<div>
<h3>HELP</h3>
<p>SHOP AT ZARA</p>
<p>PRODUCT</p>
<p>GIFT CARD</p>
<p>PAYMENT</p>
<p>SHIPPING</p>
<p>EXCHANGE AND RETURN</p>
<p>SHOP AND COMPANY</p>
<p>CLOTHES COLLECTION PROGRAM</p>
<p>MY ACCOUNT</p>
</div>
<div>
<h3>FOLLOW US</h3>
<p>NEWSLETTER</p>
<p>INSTAGRAM</p>
<p>FACEBOOK</p>
<p>TWITTER</p>
<p>PINTEREST</p>
<p>YOUTUBE</p>
</div>
<div>
<h3>COMPANY</h3>
<p>ABOUT US</p>
<p>JOIN LIFE</p>
<p>OFFICES</p>
<p>STORES</p>
<p>WORK WITH US</p>
</div>
<div>
<h3>POLICIES</h3>
<p>PRIVACY POLICY</p>
<p>PURCHASE CONDITIONS</p>
<p>GIFT CARD CONDITIONS</p>
<p>COOKIES SETTINGS</p>
</div>
</div>
<div id="blank">
<div id="last">
<div>
<p>INDIA</p>
</div>
<div>
<p>NAME AND ADDRESS OF THE MANUFACTURER: <br>
INDUSTRIA DE DISEÑO TEXTIL, S.A. (INDITEX, S.A.) <br>
AVENIDA DE LA DIPUTACIÓN, EDIFICIO INDITEX, <br>
15143, ARTEIXO (A CORUÑA), SPAIN</p>
</div>
</div>
</div>
</body>
<script>
let cartdata = JSON.parse(localStorage.getItem("cartproducts")) || []
let span = document.querySelector("#cart-total")
let div2 = document.querySelector("#cart-container")
function onclickmenu(){
document.getElementById("menu").classList.toggle("icon")
document.getElementById("burger").classList.toggle("change")
}
let number = document.querySelector("#number")
console.log(number.value)
let btn = document.querySelector("#submit")
btn.addEventListener("click",function(){
if(number.value=="1234567890" || number.value == 1234567890){
alert("Your purchase is sucessful")
window.location.assign("./loginhomepage.html")
console.log("alert")
}else if(number.value!=="1234567890" || number.value !== 1234567890){
alert("please fill required value correctly")
}else if(number.value==""){
alert("please fill required value")
}
})
</script>
</html>