-
Notifications
You must be signed in to change notification settings - Fork 3
/
checkout.html
293 lines (260 loc) · 9 KB
/
checkout.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
<!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> Trial Plane - Semrush</title>
<style>
body {
margin: 0px;
padding: 0px;
}
#main {
display: grid;
grid-template-columns: repeat(2, 1fr);
}
h1 {
line-height: 0px;
margin: 20px;
}
#details {
/* border: 1px solid red; */
color: #767676;
margin: auto;
width: 50%;
display: grid;
grid-template-rows: repeat(6);
grid-template-rows: repeat(1);
gap: 10px;
}
h2 {
line-height: 0px;
color: black;
font-weight: bold;
}
#Emaildiv {
line-height: 0px;
}
#pt,
#pt1 {
color: black;
}
p {
line-height: 08px;
}
.flex {
display: grid;
grid-template-columns: repeat(2, 1fr);
}
#form {
width: 100%;
}
form {
width: 100%;
}
input {
width: 100%;
border-radius: 10px;
border: 1px solid #767676;
}
#vlid {
width: 70%;
}
#cvv {
width: 50%;
}
.flex2{
display: flex;
}
#cardholder{
/* border-left: none; */
width: 99.5%;
}
#cardhdiv{
width: 100%;
/* border: 1px solid #767676; */
}
.chi{
border: 1px solid #767676;
border-right: none;
}
input{
width: 100%;
font-size: 20px;
padding: 5px;
line-height: 25px;
margin-bottom: 18px;
}
#sel{
width: 100%;
}
select{
width: 103%;
font-size: 20px;
padding: 5px;
line-height: 25px;
margin-bottom: 18px;
border-radius: 10px;
cursor: pointer;
}
#p2{
margin: 0px;
line-height: 20px;
font-size: 18px;
/* border: 1px solid gray; */
}
#p2 span{
color: black;
font-weight: bold;
line-height: 0px;
}
#bottomp{
display: flex;
padding: 0px;
margin: 0px;
}
#bottomp div{
width: 50%;
/* border: 1px solid gray; */
padding: 0px;
margin: 0px;
}
#bottomp div button{
background-color: #ff642d;
border: none;
font-size: 18px;
color: white;
font-weight: bold;
padding: 10px;
margin-left: 5%;
cursor: pointer;
border-radius: 10px;
}
#imgdiv{
width: 100%;
cursor: text;
}
#imgdiv img{
width: 100%;
}
</style>
</head>
<body onload="rcb()">
<div id="main">
<div id="">
<h1><a href="home.html"><img src="https://i.ibb.co/XJ26L8z/logo-semrush.png" alt="logo-semrush"
border="0"></a>
</h1>
<div id="details">
<div>
<h2>GURU 7-day free trial</h2>
</div>
<div id="Emaildiv">
<p>Your account: <span id="pt"></span></p>
<p>Billing: <span id="pt1">Monthly</span></p>
</div>
<div id="form">
<form action="">
<div>
<input type="number" id="cardnumber" placeholder="Card Number">
</div>
<div class="flex">
<input type="string" id="vlid" placeholder="MM / YY">
<input type="number" id="cvv" placeholder="CVV">
</div>
<div id="cardhdiv">
<input type="name" placeholder="👨🏽 Card holder" id="cardholder">
</div>
<div id="sel">
<select name="State" id="Select">
<option value="State/UT">State/UT</option>
<option value="Andaman and Nicobar">Andaman and Nicobar</option>
<option value="">Arunachal Pradesh</option>
<option value="">Assam</option>
<option value="">Bihar</option>
<option value="">Chandigrah</option>
<option value="">Chhattisgrah</option>
<option value="">Dadra Nagar Haveli</option>
<option value="">Daman and Diu</option>
<option value="">Delhi</option>
<option value="">Goa</option>
<option value="">Gujrat</option>
<option value="">Haryana</option>
<option value="">Himanchal Pardesh</option>
<option value="">Jammu and Kashmir</option>
<option value="">Jharkhand</option>
<option value="">Karnataka</option>
<option value="">Kerala</option>
<option value="">Ladakh</option>
<option value="">Lakshdweep</option>
<option value="">Madhya Pradesh</option>
<option value="">Maharastra</option>
<option value="">Manipur</option>
<option value="">Meghalya</option>
<option value="">Mizoram</option>
<option value="">Nagaland</option>
<option value="">Odisha</option>
<option value="">Puducherry</option>
<option value="">Panjab</option>
<option value="">Rajasthan</option>
<option value="">Sikkim</option>
<option value="">Tamil Nadu</option>
<option value="">Telangana</option>
<option value="">Uttar Pardesh</option>
<option value="">Uttarakhand</option>
<option value="">West Bengal</option>
</select>
</div>
<div>
<input type="text" id="gstin" placeholder="GSTIN">
</div>
</form>
</div>
<div id="bottomp" >
<div>
<P id="p2">Today's charge: <span>$0.00(inc. Tax) i </span></P>
</div>
<div><button onclick="placeorder()">Place the Order</button></div>
</div>
<div>
<hr>
</div>
<div id="imgdiv" onclick="loginpage()">
<img src="https://i.ibb.co/XJjL7rW/bottom-p.png" alt="bottom-p" border="0">
</div>
</div>
</div>
<div><img src="https://i.ibb.co/bvTwmCD/checkout-cd-image.png" alt="checkout-cd-image" border="0"></div>
</div>
</body>
</html>
<script>
function rcb() {
let email = localStorage.getItem("email");
console.log(email)
document.getElementById("pt").innerText = email;
}
function placeorder(){
let cardnumber=document.getElementById("cardnumber").value;
let validety= document.getElementById("vlid").value;
let cvv= document.getElementById("cvv").value;
let cardholder=document.getElementById("cardholder").value;
if(cardnumber.length < 7 || cardnumber.length > 17){
alert("You Enterd wrong card number(Card Number Should greter the 7 and less then 17)");
}else if(validety.length==4){
alert("You Entered wrong validity");
}else if(cvv.length<3||cvv.length>4){
alert("You entered wrong cvv");
}else if(cardholder.length<=0){
alert("Please Enter Card holder name")
}else{
alert("payment succesfull👍");
window.location.href="login.html";
}
}
function loginpage(){
window.location.href="login.html";
}
</script>
<script src=""></script>