-
Notifications
You must be signed in to change notification settings - Fork 0
/
success.html
252 lines (235 loc) · 11.1 KB
/
success.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
<!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>Successful</title>
<link rel="stylesheet" href="./styles/qrstyle.css">
<link rel="stylesheet" href="./styles/otp.css">
<link rel="stylesheet" href="./styles/footer.css">
<link rel="stylesheet" href="./styles/navbar.css">
<link rel="stylesheet" href="./styles/indexstyle.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"
integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.1/dist/jquery.slim.min.js"></script>
<!-- Popper JS -->
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/js/bootstrap.bundle.min.js"></script>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper/swiper-bundle.min.css" />
<script src="./src/jquery-3.6.3.min.js"></script>
<style>
/* CSS styles for the page */
/* You can add your own styles here */
/* Feel free to adjust the layout and design as needed */
/* Add a container for the success message */
.success-container {
width: 50%;
margin: 0 auto;
text-align: center;
}
/* Add some styling to the success message */
.success-message {
padding: 20px;
margin-top: 20px;
border: 1px solid green;
border-radius: 4px;
color: green;
}
/* Add some styling to the order details section */
.order-details {
margin-top: 20px;
border: 1px solid #ccc;
border-radius: 4px;
padding: 12px;
}
#successContainer{
display: show;
}
</style>
</head>
<body>
<div class="main" id="qrparent" style="background-color: #F8F9FC;">
<div class="menuContainer">
<div class="loginLeftSectionContainer">
<p class="heading ng-scope">Login to Paytm Mall on your computer</p>
<div class="ng-scope">
<div class="loginSteps">
<ul>
<li>
<span class="index">
1.
</span>
<span class="text">
Open Paytm App
</span>
</li>
<li>
<span class="index">
2.
</span>
<span class="text">
Tap Scan <img class="icon" ng-src="/pages/themesv2/images/mp-web/q-rcode.svg"
src="https://accounts.paytm.com/pages/themesv2/images/mp-web/q-rcode.svg">
option
available
at the bottom
</span>
</li>
<li>
<span class="index">
3.
</span>
<span class="text">
Point Paytm Scan at QR Code to login
</span>
</li>
</ul>
</div>
<div class="watchVideoButton">
<img ng-if="isHowToLoginAllowed=='true'" ng-click="toggleIntroVideo()" class="icon ng-scope"
ng-src="/pages/themesv2/images/mp-mall/video-icon.svg" role="button" tabindex="0"
src="https://accounts.paytm.com/pages/themesv2/images/mp-mall/video-icon.svg">
<span ng-if="isHowToLoginAllowed=='true'" ng-click="toggleIntroVideo()" class="ng-scope"
role="button" tabindex="0">
Watch Video
</div>
<div class="ctaArea">
<div class="cta-description">To create an account download Paytm App</div>
<div class="actionContainer">
<a href="https://play.google.com/store/apps/details?id=net.one97.paytm" target="_blank"
event-category="web_login" event-action="download_app_clicked" event-type="customEvent"
event-label="android" screen-name="auth-init/QRlogin" ga-clickevent=""
rel="noopener noreferrer">
<img class="icon" ng-src="/pages/themesv2/images/mp-web/googleplay.svg"
src="https://accounts.paytm.com/pages/themesv2/images/mp-web/appstore.svg">
<span>
Google Play
</span>
</a>
<a href="https://apps.apple.com/bw/app/paytm-payments-bank-account/id473941634"
target="_blank" event-category="web_login" event-action="download_app_clicked"
event-type="customEvent" event-label="ios" screen-name="auth-init/QRlogin"
ga-clickevent="" rel="noopener noreferrer">
<img class="icon" ng-src="/pages/themesv2/images/mp-web/appstore.svg"
src="https://accounts.paytm.com/pages/themesv2/images/mp-web/appstore.svg">
<span>
App Store
</span>
</a>
</div>
</div>
</div>
</div>
</div>
<div class="qrCodeContainer">
<button class="close" id="Closeqr" style="text-align: center;
line-height: 12px;color: red;">Close</button>
<div class="qrcodechild">
<img src="https://accounts.paytm.com/pages/themesv2/images/paytm-qr-logo/paytm-qr-icon.svg" id="paytm"
alt="">
<div class="qr-container">
<div>
<div class="overlay-refresh" role="button" tabindex="0">
<img style="margin-top: 15px;" id="qr" src="./imges/download.png">
</div>
</div>
</div>
<div>
<div class="content">
Scan QR code with Paytm App to login
</div>
</div>
</div>
</div>
<div id="hrdiv">
<hr id="qrhr">
</div>
</div>
<nav id="nav" id="navi">
<!-- Create navbar here make sure all id and classes name start with nav -->
<div style="height: 25px;background-color: #F4F4F4;" class="active"></div>
<div>
<a href="index.html"> <img src="./imges/WhatsApp Image 2023-01-18 at 15.05.36.jpeg" alt="logo"
style="width: 100px;display: block; height: 80px;margin: auto;"></a>
</div>
<div class="navsearch">
<div style="display: grid;place-items: center;">
<div>
<i class="fa-solid fa-bars"></i>
<span class="_19km">Shop By Category</span>
</div>
</div>
<div>
<div>
<input type="text" name="" id="navinput" placeholder="Search for a Product, Brand or Category">
<span><i class="fa fa-search"></i></span>
</div>
</div>
<div>
<i class="fa-light fa-list-dropdown"></i>
<i class="fa fa-list"></i>
<div class="navanchor" style="display: inline-block;"><a href="./order.html"> My Orders</a></div>
</div>
<div>
<i class="fa-solid fa-bag-shopping"></i>
<div class="navanchor" style="display: inline-block;"><a href="./cart.html"> Not items in the bag</a>
</div>
</div>
<div>
<i class="fa-solid fa-user-plus"></i>
<div class="navanchor" id="click" style="display: inline-block;">Login/SignUp</div>
</div>
<div>
<i class="fa-solid fa-user"></i>
<div class="navanchor" id="click" style="display: inline-block;"><a href="./admin-page.html"> Admin </a></div>
</div>
</div>
</nav>
<div class="success-container" id="success-container">
<h1>Order Successful</h1>
<div class="success-message">
Your order has been placed successfully! Your order number is <span id="orderid"></span>.
</div>
<div class="order-details">
<h2>Order Details</h2>
<p>Shipping Name: <span id="ordername"></span></p>
<p>Shipping Address: <span id="orderaddress"></span></p>
<p>Shipping City: <span id="ordercity"></span></p>
<p>Shipping State: <span id="orderstate"></span></p>
<p>Shipping Zip Code: <span id="ordercode"></span></p>
<p>Payment Method: <span id="orderpayment"></span></p>
<p>Mobile Number: <span id="ordermobile"></span></p>
</div>
</div>
</body>
</html>
<script src="./src/qrcode.js"></script>
<script>
let obj = JSON.parse(localStorage.getItem("address"))||[];
let mobile = JSON.parse(localStorage.getItem("userData"))|| [];
console.log(obj);
document.getElementById("ordername").innerText=obj.name;
document.getElementById("orderaddress").innerText=obj.address;
document.getElementById("ordercity").innerText=obj.city;
document.getElementById("orderstate").innerText=obj.state;
document.getElementById("ordercode").innerText=obj.zip;
document.getElementById("orderpayment").innerText=obj.payment;
document.getElementById("ordermobile").innerText=mobile.mob;
let arr = [];
for(let i =0; i<20; i++){
arr.push(Math.floor(Math.random() * 10));
}
document.getElementById("orderid").innerText=arr.join("");
</script>