-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile.html
380 lines (280 loc) · 11.5 KB
/
profile.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
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="royalblue"/>
<title>User Profile Page</title>
<!--<script src="https://alwingulla.com/88/tag.min.js" data-zone="80483" async data-cfasync="false"></script>-->
<link rel="icon" type="image/x-icon" href="prime-logo.png">
<link rel="stylesheet" href="common-style.css">
<link rel="stylesheet" href="profile.css">
<link rel='stylesheet' href='https://cdn-uicons.flaticon.com/uicons-regular-rounded/css/uicons-regular-rounded.css'>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/izitoast/1.4.0/css/iziToast.min.css" integrity="sha512-O03ntXoVqaGUTAeAmvQ2YSzkCvclZEcPQu1eqloPaHfJ5RuNGiS4l+3duaidD801P50J28EHyonCV06CUlTSag==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/izitoast/1.4.0/js/iziToast.min.js" integrity="sha512-Zq9o+E00xhhR/7vJ49mxFNJ0KQw1E1TMWkPTxrWcnpfEFDEXgUiwJHIKit93EW/XxE31HSI5GEOW06G6BF1AtA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="wallet.js" async></script>
</head>
<body id="body" onmousedown="return false" onselectstart="return false">
<header id="header">
<nav>
<div class="nav current">
<i id="fi" class="fi fi-rr-angle-small-left"></i>
<h1>Profile</h1>
<i id="fi-bell" class="fi fi-rr-bell"></i>
</div>
</nav>
</header>
<main>
<div class="profile">
<div id="profile-image" class="profile-image">
<span id="span"></span>
<img id="default" src="a3.jpg" alt="">
<span id="edit-img"></span>
</div>
<h2><span id="greet"> </span>! <span id="welcome"> </span></h2>
<div class="edit-profile">
<h3>Edit Profile </h3>
<img id="img-from-local-storage">
<div class="edit-info">
<input type="file" id="img-input" />
<!--<label for="fullname">Full name</label>
<input type="text" class="input" name="" id="fullname">
<label for="phone">Phone</label>
<input type="number" class="input" name="" id="phone">
<label for="password">Password</label>
<input type="password" class="input" name="" id="pass">-->
<button id="add-btn" type="button">Save Changes</button>
</div>
<script>
const saveBtn = document.getElementById('add-btn')
saveBtn.addEventListener('click', function(){
iziToast.success({
timeout: 2000,
title: 'Success!',
message: 'Profile picture saved!',
});
})
</script>
</div>
<a href="https://t.me/primetek_cs" target="_blank"><div class="cs-1"></div></a>
</div>
<section class="balance-section">
<div class="balance-box">
<h4>Wallet Balance:</h4>
<p>₦<input type="number" id="accountBal" value="200"></p>
</div>
<div class="entice">
</div>
<a id="historial" href="withdrawal-history.html">History ></a>
<div class="transact-box">
<a href="withdrawal.html"><button id="btn1">Withdraw</button></a>
<a href="deposit.html"><button id="btn2">+ Add Money</button></a>
</div>
</section>
<section class="summary">
<div class="data">
<span>NGN</span>
<span id="today-income">200</span>
Today's Income
</div>
<!--<div class="data">
<span>NGN</span>
<span id="asset-value">0</span>
Asset value
</div>-->
<div class="data">
<span>NGN</span>
<span id="total-income">200</span>
Total Income
</div>
<div class="data">
<span>NGN</span>
<span id="withdrawable">200</span>
Withdrawable
</div>
</section>
<section class="quick-links">
<a href="deposit.html"><div class="ql1"></div>Deposit</a>
<a href="withdrawal.html"><div class="ql2"></div>Withdraw</a>
<a href="https://whatsapp.com/channel/0029VaKllEqCXC3BBa7gUN37"><div class="ql3"></div>Whatsapp</a>
<a href="https://t.me/+5896aBwIzm45ZThk"><div class="ql4" ></div>Telegram</a>
</section>
<div class="list">
<ul>
<li onclick="location.href='withdrawal-history.html'"><img class="dicons" src="record.png" alt="">
<p>Withdrawal History</p>
<img class="darrows" src="right-arrow.png" alt="">
</li>
<li onclick="location.href='my-investment.htm'"><img class="dicons" src="investment.png" alt=""> <p>My Investment</p>
<img class="darrows" src="right-arrow.png" alt="">
</li>
<li onclick="location.href='bank.html'"><img class="dicons" src="bank.png" alt=""> <p>Bank & Card Details</p>
<img class="darrows" src="right-arrow.png" alt="">
</li>
<li onclick="window.location.href='https://t.me/primetek_cs'"><img class="dicons" src="cs2.png" alt=""> <p>Customer Support</p>
<img class="darrows" src="right-arrow.png" alt="">
</li>
<li onclick="displayRules()"><img class="dicons" src="about.png" alt=""> <p>Platform rules</p>
<img class="darrows" src="right-arrow.png" alt="">
</li>
<li onclick="iziToast.error({
timeout: 3000,
title: 'Sorry!',
message: 'The app version is still under review.',
});"><img class="dicons" src="apk-download.png" alt=""> <p>Download Android App</p>
<img class="darrows" src="right-arrow.png" alt="">
</li>
<li onclick="location.href='reward.html#how-to-earn'"><img class="dicons" src="earn.png" alt=""><p>How to Earn</p>
<img class="darrows" src="right-arrow.png" alt="">
</li>
<li onclick="location.href='settings.html'"><img class="dicons" src="settings.png" alt=""> <p>Settings</p>
<img class="darrows" src="right-arrow.png" alt=""></li>
</ul>
</div>
<button class="testing" id="logout" onclick="logOut()"><img class="darrows" src="logout4.png" alt=""> Log Out</button>
</main>
<section>
<a href="https://t.me/primetek_cs" target="_blank"><div class="CS"></div></a>
</section>
<section class="horizontal-nav">
<div onclick="window.location.href='index.html'">
<i class="fi fi-rr-home"></i>
<h5>HOME</h5>
</div>
<div onclick="window.location.href='product.html'">
<i class="fi fi-rr-box-open"></i>
<h5>PRODUCT</h5>
</div>
<div onclick="window.location.href='deposit.html'">
<i class="fi fi-rr-money-from-bracket"></i>
<h5>DEPOSIT</h5>
</div>
<div onclick="window.location.href='reward.html'">
<i class="fi fi-rr-trophy-star"></i>
<h5>REWARD</h5>
</div>
<div onclick="window.location.href='profile.html'" class="current">
<i class="fi fi-rr-circle-user"></i>
<h5>PROFILE</h5>
</div>
</section>
<!-- Section for modals, popup & cover screen -->
<section class="main">
</section>
<div class="card card-3">
<h5>Login first!</h5>
<div class="loader"></div>
</div>
<div class="platform-rules">
<ul>
<li></li>
<li></li>
<li></li>
</ul>
<h3>Platform Rules</h3>
<div class="rules">
<ol>
<li>Please follow the instructions on the "deposit page", "withdrawal page" and "reward page" strictly.</li>
<li>Ensure your account details binded to the system is valid, to avoid withdrawal failure.</li>
<li>Do not share your credentials with anyone, except to the customer support if necessary.</li>
<li>You can only register once. That's on one browser, because we don't accept creation of multiple accounts by one user.</li>
<li>Login is only possible on the same browser you registered with. Reason is above.</li>
<li>We shall suspend your account if you're traced to be a malicious user.</li>
</ol>
</div>
<button id="got-it" type="button">Got it</button>
</div>
<script>
window.onload = function() {
document.getElementById('welcome').innerText = /*"Hello, " + */localStorage.getItem('username');
};
var statusInterval = setInterval(function() {
var dot = document.getElementById('span');
if (navigator.onLine) {
dot.classList.add('active');
} else {
dot.classList.remove('active');
}
}, 1000);
const divBlock = document.querySelector('.platform-rules')
function displayRules(){
//const divBlock = document.querySelector('.platform-rules')
divBlock.classList.add('active');
};
document.getElementById('got-it').addEventListener('click', function(){
divBlock.classList.remove('active');
});
</script>
<script>
var today = new Date();
var curHr = today.getHours();
const greetUser = document.getElementById("greet");
function greetMe(){
if (curHr >= 0 && curHr < 6) {
greetUser.innerHTML = 'Good Morning';
}
else if (curHr >= 6 && curHr < 12) {
greetUser.innerHTML = 'Good Morning';
}
else if (curHr >= 12 && curHr <= 15) {
greetUser.innerHTML = 'Good Afternoon';
}
else {
greetUser.innerHTML = 'Good Evening';
}
}
setInterval(greetMe, 100);
</script>
<script>
const defaultImg = document.getElementById('default')
const editImg = document.getElementById('profile-image')
const editProfile = document.querySelector('.edit-profile')
const addBtn = document.getElementById('add-btn')
editImg.addEventListener('click', function() {
editProfile.classList.add('active');
});
addBtn.addEventListener('click', function() {
editProfile.classList.remove('active');
});
//localStorage.removeItem('image');
const imageInput = document.getElementById('img-input');
const newImage = document.getElementById(
'img-from-local-storage',
);
imageInput.addEventListener('change', event => {
// 👇️ Save the image to localStorage
const image = event.target.files[0];
const reader = new FileReader();
reader.addEventListener('load', () => {
newImage.src = reader.result;
defaultImg.src = reader.result;
localStorage.setItem('image', reader.result);
});
if (image) {
reader.readAsDataURL(image);
}
});
window.addEventListener('load', () => {
// 👇️ Take the image from localStorage
// and display it
if (localStorage.getItem('image') !== null) {
newImage.style.display = 'block';
defaultImg.src = localStorage.getItem('image');
}
else {
newImage.src = 'a3.jpg';
}
newImage.src = localStorage.getItem('image');
});
</script>
<script>
function logOut(){
sessionStorage.removeItem("userPhone");
location.replace("login.html");
}
</script>
<script src="main.js"></script>
<script src="illegal-user.js"></script>
</body>
</html>