-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpaymentOtp.html
308 lines (280 loc) · 9.73 KB
/
paymentOtp.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
<!DOCTYPE html>
<html>
<head>
<title>opt page</title>
<link rel="stylesheet" href="./css/navbar.css">
<link rel="stylesheet" href="./css/footer.css">
<script src="https://kit.fontawesome.com/0d69f46662.js" crossorigin="anonymous"></script>
<style>
body {
margin: 0;
/* width: 40%; */
margin: auto;
text-align: center;
background-image: 'https://www.bialetti.com/media/wysiwyg/torrefazione.png';
}
#otpDiv {
padding: 15px;
box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
/* margin-top: 70px; */
width: 20%;
margin: auto;
margin-bottom: 50px;
margin-top: 50px;
text-align: center;
}
#otpDiv > h1{
margin-bottom: 15px;
}
form {
text-align: center;
}
form>input {
width: 35%;
}
#submit {
background-color: black;
color: white;
padding: 5px 12px 5px 12px;
border-radius: 3px;
}
#paymentSuccessfull {
display: none;
flex-direction: column;
text-align: center;
align-items: center;
margin-top: 50px;
margin-bottom: 50px;
}
#paymentSuccessfull>img {
width:20%;
}
#paymentSuccessfull>h3 {
margin-bottom: 5px;
}
#paymentSuccessfull>p {
margin-top: 5px;
}
</style>
</head>
<body>
<body>
<div id="navbar-container">
<header class="page-header">
<div class="header-container">
<div class="Full-header">
<div class="logo-container">
<div class="logo-container-box">
<a class="logo" href="index.html">
<img src="https://www.bialetti.com/media/logo/default/5-layers_3x.png" alt="Bialetti">
</a>
</div>
</div>
<div class="menu-container">
<div class="Header-menu">
<a class="menu-name" href="#">MOKA EXPRESS</a>
</div>
<div class="Header-menu">
<a class="menu-name" href="#">BIALETTI COFFEE ROASTING</a>
</div>
<div class="Header-menu dropdown">
<a href="./product.html">
<button class="dropbtn">PRODUCTS
<i class="fa-solid fa-angle-down"></i>
</button>
</a>
<div class="dropdown-content">
<div class="row">
<div class="column">
<h3 class="column-h3">COFFEE</h3>
<a href="#">Grounds</a>
<a href="#">Coffee beans</a>
</div>
<div class="column">
<div class="vl"></div>
<h3 class="column-h3">COFFEE MAKERS</h3>
<a href="#">Aluminium coffee makers</a>
<a href="#">Stainless steal coffee makers</a>
<a href="#">Special coffee makers</a>
</div>
<div class="column">
<div class="vl"></div>
<h3 class="column-h3">ACCESSORIES</h3>
<a href="#">Small cups and mugs</a>
<a href="#">Coffee accessories</a>
<a href="#">Spare Parts</a>
</div>
<div class="column">
<div class="vl"></div>
<img class="column-img" src="https://www.bialetti.com/media/wysiwyg/moka-express-menu.jpg"
alt="Coffee">
</div>
</div>
</div>
</div>
<div class="Header-menu dropdown">
<button class="dropbtn">NEWS
<i class="fa-solid fa-angle-down" id="fa-down"></i>
</button>
<div class="dropdown-content-2">
<div class="column-2">
<a href="#">Small cups and mugs</a>
<a href="#">Coffee accessories</a>
</div>
</div>
</div>
<div class="Header-menu">
<a class="menu-name" href="#">INSPIRATION</a>
</div>
<div class="Header-menu">
<a class="menu-name" href="#">OUR HISTORY</a>
</div>
</div>
<div class="icon-container">
<button id="magniglass">
<a href="#">
<i class="fa-solid fa-magnifying-glass"></i>
</a>
</button>
<button onclick="document.getElementById('login-form').style.display='block'">
<a href="#">
<i class="fa-solid fa-user"></i>
</a>
</button>
<button>
<a href="#">
<i class="fa-solid fa-cart-plus"></i>
</a>
</button>
<button id="open">
<a href="#">
<i class="fa-solid fa-bars"></i>
</a>
</button>
<form id="search-bar">
<input type="text" id="search" placeholder="Search entire store here...">
</form>
</div>
</div>
</div>
</header>
<div id='login-form' class='login-page'>
<div class="form-box">
<div class='button-box'>
<div id='btn'></div>
<button type='button' onclick='login()' class='toggle-btn'>Log In</button>
<button type='button' onclick='register()' class='toggle-btn'>Register</button>
</div>
<form id='login' class='input-group-login'>
<input type='text' class='input-field' id='login-email' placeholder='Email Id' required>
<input type='password' class='input-field' id='login-pass' placeholder='Enter Password' required>
<span class='input-field-2' id="password-error" style="display:none;color:red;">Email and/or password
incorrect.</span>
<input type='checkbox' class='check-box'><span>Remember Password</span>
<button type='submit' class='submit-btn'>Log in</button>
</form>
<form id='register' class='input-group-register'>
<input type='text' id="firstname" class='input-field' placeholder='First Name' required>
<input type='text' id="lastname" class='input-field' placeholder='Last Name ' required>
<input type='email' id="regisemail" class='input-field' placeholder='Email Id' required>
<input type='password' id="resipass" class='input-field' placeholder='Enter Password' required>
<input type='password' id="resirepass" class='input-field' placeholder='Confirm Password' required>
<input type='checkbox' class='check-box' required><span>I agree to the terms and conditions</span>
<span id="email-exists" class='input-field-2' style="display:none;"></span>
<button type='submit' class='submit-btn'>Register</button>
</form>
</div>
</div>
</div>
<div id="otpDiv">
<h1>Enter OTP</h1>
<form id="myform">
<label for="otp">OTP:</label>
<input type="text" id="otp">
<br>
<br>
<button id="submit" type="submit">Submit</button>
</form>
</div>
<div id="paymentSuccessfull">
<img id="image"
src="https://user-images.githubusercontent.com/12693087/31615154-9c8c4886-b280-11e7-828d-2f64e4250c53.gif"
alt="successful" />
<h3>Order Confirmed</h3>
<p>Order ID: 546758645454</p>
</div>
<footer>
<div>
<div id="contact_container">
<div>
<div class="contact">
<img src="https://www.bialetti.com/media/wysiwyg/logo-footer_4x.png" alt="">
<p>The essence of <br>
Italian coffee culture.</p>
</div>
<p>
<span id="address">
Registered Office
</span>
<br>
25030 Coccaglio BS
<br>
Via Fogliano, 1
<br>
Italia
</p>
<button id="contact-btn">
<i class="fa-solid fa-pen"></i>
CONTACT US
</button>
</div>
<div class="legal">
<h4><a href="">Legal</a> </h4>
<ul>
<li><a href="">Cookies</a></li>
<li><a href="">Privacy Policy</a></li>
<li><a href="">Terms and conditions</a></li>
<li><a href="">B2B</a></li>
</ul>
</div>
</div>
<hr>
<div class="footer-bottom">
<div>
<div class="tags">
<a href="">About Us</a>
<a href="">Our history</a>
<a href="">Work with us</a>
</div>
<div class="bottom-para">
<p>
2021 © Bialetti Industrie S.p.A. / Cap. Soc. i.v. Euro 1.041.628,00 / Cod.Fisc., P.IVA e numero
d’iscrizione al Registro delle Imprese di Brescia 03032320248
</p>
</div>
</div>
<div class="social-icons">
<a class="icons" href="https://www.facebook.com/Bialetti/" target="_blank"><i
class="fa-brands fa-facebook-f"></i></a>
<a class="icons" href="https://www.instagram.com/bialetti/" target="_blank"><i
class="fa-brands fa-instagram"></i></a>
</div>
</div>
</div>
</footer
</body>
<script>
document.getElementById("submit").addEventListener("click", displaySuccess);
function displaySuccess(event) {
event.preventDefault();
var otpDiv = document.getElementById("otpDiv");
var paymentSuccessfull = document.getElementById("paymentSuccessfull");
// otpDiv.style.display = "none"; // Hide the OTP div
setTimeout(function () {
otpDiv.style.display = "none";
paymentSuccessfull.style.display = "flex";
}, 3000);
otpDiv.innerHTML = "<p>Payment Processing...</p>";
}
</script>
</html>