-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresult-page.html
251 lines (225 loc) · 8.42 KB
/
result-page.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>AML Report</title>
<link rel="stylesheet" href="assets/css/bootstrap.min.css" />
<link rel="stylesheet" href="assets/css/LineIcons.3.0.css" />
<link rel="stylesheet" href="assets/css/animate.css" />
<link rel="stylesheet" href="assets/css/tiny-slider.css" />
<link rel="stylesheet" href="assets/css/glightbox.min.css" />
<link rel="stylesheet" href="assets/css/main.css" />
<link rel="shortcut icon" type="image/x-icon" href="assets/images/favicon.svg" />
<style>
/* Second loader CSS */
.second-loader {
width: 48px;
height: 48px;
display: block;
margin: 0 auto 10px auto; /* Adjusted margin */
position: relative;
border: 3px solid #000; /* Black color */
border-radius: 50%;
box-sizing: border-box;
animation: animloader 2s linear infinite;
}
.second-loader::after {
content: '';
box-sizing: border-box;
width: 6px;
height: 24px;
background: #000; /* Black color */
transform: rotate(-45deg);
position: absolute;
bottom: -20px;
left: 46px;
}
@keyframes animloader {
0% {
transform: translate(-10px, -10px);
}
25% {
transform: translate(-10px, 10px);
}
50% {
transform: translate(10px, 10px);
}
75% {
transform: translate(10px, -10px);
}
100% {
transform: translate(-10px, -10px);
}
}
/* Third loader CSS */
.third-loader {
height: 30px;
width: 10px;
border-radius: 4px;
color: #000; /* Black color */
background: currentColor;
position: relative;
animation: ht 1s ease-in infinite alternate;
box-shadow: 15px 0 0 -1px currentColor, -15px 0 0 -1px currentColor,
30px 0 0 -2px currentColor, -30px 0 0 -2px currentColor,
45px 0 0 -3px currentColor, -45px 0 0 -3px currentColor;
margin-top: 10px; /* Adjusted margin */
}
@keyframes ht {
100% { height: 0px; }
}
#loadingScreen {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(255, 255, 255, 0.8);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 9999;
}
#loadingScreen p {
font-size: 1.2em;
color: black;
text-align: center;
max-width: 600px;
margin: 20px;
padding: 20px;
background: white;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
#loadingScreen h2 {
color: black;
text-align: center;
font-size: 2em;
margin-bottom: 20px;
}
#amlReport {
display: none;
justify-content: center;
align-items: center;
flex-direction: column;
text-align: center;
background: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
margin: 50px auto;
width: 80%;
max-width: 600px;
}
.wallet-address {
font-size: 1.5em;
font-weight: bold;
margin: 20px 0;
}
.high-risk {
font-size: 1.2em;
margin: 10px 0;
}
.risk-circle {
display: none;
}
.pie {
--p: 20;
--b: 22px;
--c: darkred;
--w: 150px;
width: var(--w);
aspect-ratio: 1;
position: relative;
display: inline-grid;
margin: 20px 0;
place-content: center;
font-size: 25px;
font-weight: bold;
font-family: sans-serif;
}
.pie:before,
.pie:after {
content: "";
position: absolute;
border-radius: 50%;
}
.pie:before {
inset: 0;
background:
radial-gradient(farthest-side, var(--c) 98%, #0000) top/var(--b) var(--b) no-repeat,
conic-gradient(var(--c) calc(var(--p) * 1%), #0000 0);
-webkit-mask: radial-gradient(farthest-side, #0000 calc(99% - var(--b)), #000 calc(100% - var(--b)));
mask: radial-gradient(farthest-side, #0000 calc(99% - var(--b)), #000 calc(100% - var(--b)));
}
.pie:after {
inset: calc(50% - var(--b) / 2);
background: var(--c);
transform: rotate(calc(var(--p) * 3.6deg)) translateY(calc(50% - var(--w) / 2));
}
.animate {
animation: p 1s .5s both;
}
.no-round:before {
background-size: 0 0, auto;
}
.no-round:after {
content: none;
}
@keyframes p {
from { --p: 0 }
}
body {
background: #f2f2f2;
}
.detailed-analysis {
font-size: 1em;
line-height: 1.5;
text-align: left;
margin: 20px 0;
}
.transaction-id, .transaction-date {
font-weight: bold;
color: black;
margin: 10px 0;
}
</style>
</head>
<body>
<div id="loadingScreen">
<h2>Checking Wallet</h2>
<span class="second-loader"></span>
<span class="third-loader"></span>
<p>Be patient, your wallet is being checked. It usually takes 1 minute. After checking your wallet, you will be redirected to your AML Report.</p>
</div>
<div id="amlReport">
<h2 class="wallet-address">Wallet Address: <span id="walletAddressDisplay"></span></h2>
<h3 class="high-risk">No Risk Address!</h3>
<p>Risk: <span id="riskScore">0.0%</span></p>
<div class="pie animate" style="--p:99;--c:lightgreen">100%</div>
<h4>Detailed Analysis:</h4>
<p class="detailed-analysis">After a thorough review, we confirm that your wallet has a clean record with no associated risk. It has not been involved in any high-risk transactions, large volume transfers, or interactions with known high-risk entities over the past 12 months. Your wallet is considered secure, and no further concerns are currently noted. Regular monitoring is always recommended to maintain ongoing security and compliance.</p>
<p class="transaction-id">Transaction ID: #<span id="transactionID"></span></p>
<p class="transaction-date">Date: <span id="transactionDate"></span></p>
</div>
<script>
document.addEventListener("DOMContentLoaded", function() {
// Simulate loading process
setTimeout(() => {
document.getElementById('loadingScreen').style.display = 'none';
document.getElementById('amlReport').style.display = 'flex';
// Retrieve data from URL parameters or local storage
const urlParams = new URLSearchParams(window.location.search);
const walletAddress = urlParams.get('walletAddress') || localStorage.getItem('walletAddress');
const txHash = urlParams.get('txHash') || localStorage.getItem('txHash');
const date = new Date().toLocaleString();
document.getElementById('walletAddressDisplay').textContent = walletAddress;
document.getElementById('transactionID').textContent = txHash || Math.floor(Math.random() * 1e16).toString(16);
document.getElementById('transactionDate').textContent = date;
}, 60000); // 1 min loading time
});
</script>
</body>
</html>