-
Notifications
You must be signed in to change notification settings - Fork 0
/
Payment-pg.html
163 lines (137 loc) · 5.17 KB
/
Payment-pg.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
<!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>Document</title>
<style>
.container{
width: 350px;
height:500px;
margin-top: 20px;
margin-left: 200px;
border-radius: 20px;
/* box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px; */
border: 1px solid rgb(230, 224, 224);
/* text-align: center; */
/* height: 100vh; */
}
.container>#but{
width: 300px;
height: 35px;
/* border-radius: 20px; */
background-color: rgb(177, 18, 18);
color: white;
font-weight:bold;
font-size: 20px;
border: 1px solid white;
}
.big{
width:300px;
height:25px;
text-align: center;
}
#order{
width: 70%;
height:auto;
margin-left:200px ;
border: 1px solid gray;
padding-left: 3%;
}
#pay{
display: flex;
width: 70%;
/* justify-content: center; */
justify-content: space-between;
border: 1px solid gray;
margin-left:200px ;
margin-top:20px ;
padding: 16px;
}
#break{
margin-top: 14%;
}
.done{
color: rgb(228, 62, 62);
}
</style>
</head>
<body>
<div class="container">
<h1 style="color:rgb(201, 59, 83) ;">Shipping Address Details</h1>
<label class="done"> Name </label><br>
<input class="big" type="text" name="" id="naam" placeholder="Enter Name"><br><br>
<label class="done">Mobile no.</label><br>
<input class="big" id="num" type="tel"placeholder="Enter Mobile Number"><br><br>
<label class="done">Email </label><br>
<input class="big" type="email" id="ema" placeholder="Enter Email" ><br><br>
<label style="color:rgb(201, 59, 83)">Country</label><br>
<select name="" id="" style="display: block; padding:8px ; width: 90%;">
<option value="">Select Country</option>
<option value="">India</option>
<option value="">USA</option>
<option value="">Turky</option>
<option value="">Russia</option>
<option value="">London</option>
</select><br>
<label style="color:rgb(201, 59, 83)">Address Detail:</label><br>
<input class="big" type="text" id="cnf" placeholder=""><br><br>
<label style="color:rgb(201, 59, 83)">State</label><br>
<input class="big" type="text" id="cnf" placeholder="Enter your state"><br>
<!-- <button id="but"> SIGN UP </button> -->
</div>
<div id="order"><h2 style="color:rgb(201, 59, 83)">Order Details</h2>
<h3 style="color:rgb(201, 59, 83)">Order Total:<span id="total">0</span></h3>
</div>
<div id="pay">
<div >
<h2 style="color:rgb(201, 59, 83) ;">Payment Information</h2>
<img style="width:140px" src="https://www.nicepng.com/png/full/54-542683_credit-card-pay-now-visa-and-mastercard-accepted.png" alt="">
<p>Credit Card Number:</p>
<p>Card Type</p>
<p>Expiration Date:</p>
<p>Security Code:</p>
</div>
<div id="break"><input type="text"><br><br>
<select name="" id="" >
<option value="">Select Card</option>
<option value="">Visa</option>
<option value="">MasterCard</option>
</select><br><br>
<input type="text"><br><br>
<input type="text"></div>
</div>
<button id="place-order" style="text-align: center; display: block; margin-left: 210px; margin-top: 20px; padding: 8px; background-color: rgb(195, 71, 129); color: white;">Place Order</button>
</body>
</html>
<script>
document.querySelector("button").addEventListener("click", fun2);
let arr= JSON.parse(localStorage.getItem(""))||[];
function fun2() {
let name = document.querySelector("").value;
// let last = document.querySelector("#last").value;
let email = document.querySelector("#").value;
let mobile = document.querySelector("#").value;
let password = document.querySelector("#").value;
let confirm = document.querySelector("#").value;
let dataobj={
name,
// last,
email,
mobile,
password,
confirm,
};
arr.push(dataobj);
localStorage.setItem("cart",JSON.stringify(arr))
window.location.href="signin1.html";
}
document.querySelector("#total").innerText=localStorage.getItem("total-price");
document.querySelector("#place-order").addEventListener("click",function(){
localStorage.removeItem("myproduct")
localStorage.removeItem("total-price")
alert("Your Order placed successfully!..........Thanks!!! VISIT AGAIN..")
window.location.href="index.html"
})
</script>