-
Notifications
You must be signed in to change notification settings - Fork 0
/
Mobile-Legends.html
416 lines (361 loc) · 17.5 KB
/
Mobile-Legends.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
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
<!DOCTYPE html>
<html lang="en-PH">
<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>Top Up Mobile Legends</title>
<link rel="stylesheet" href="stle.css">
<link rel="stylesheet"
ref="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
integrity="sha512-iecdLmaskl7CVkqkXNQ/ZH/XLlvWZOJyj7Yy7tcenmpD1ypASozpmT/E0iPtmFIB46ZmdtAc9eNBvH0H/ZpiBw=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
</head>
<body dir="ltr">
<div class="container">
<header>
<div class="navbar">
<a href="index.html"><img src="img/logo.png" class="logo"></a><p class="line">Unlock your gaming potential with our premium gaming credits.</p>
<button onclick="document.getElementById('id01').style.display='block'" style="width:auto;" class="signup" type="button">Sign Up</button>
</div>
</header>
<label class="bars">
<input type="checkbox">
<div class="toggle">
<div class="top_line common"></div>
<div class="middle_line common"></div>
<div class="bottom_line common"></div>
</div>
<div class="menubar">
<ul>
<li><p>Sign up to GameCredz now!</p></li>
<li><button onclick="document.getElementById('id01').style.display='block'" class="signup" type="button">Sign Up for Free</button></li>
<li><button onclick="document.getElementById('id02').style.display='block'" style="width:auto;" class="signin_button" type="button">Sign in</button></li>
</ul>
</div>
</label>
<div class="topup-content">
<div class="topup-container">
<section class="product-details">
<div class="product-banner">
<img src="img/ml-banner.jpg" alt="">
</div>
<div class="product-description">
<h2>Mobile Legends: Bang Bang</h2>
</div>
</section>
<section class="topup-form">
<form action="">
<div class="bg-form">
<h2 class="form-section__circle">
<span class="form-section__number">1</span>
<span class="form-section__name" required>Enter User ID</span>
</h2>
<div class="inputInfo">
<div class="userID">
<div class="userinput">
<div class="form-field-wrapper userid user-input-fields inline-element">
<span class="provider">
<div class="input-container">
<div>
<div class="input-block">
<label for="userId" class="form-label"></label>
<div class="input-holder userid form-input font-normal text-center">
<input type="tel" placeholder="Enter User ID" id="userId" name="user_0" model autocomplete="off" class="userid form-input font-normal text-center" required >
</div>
</div>
</div>
</div>
</span>
</div>
<div class="form-field-wrapper userid user-input-fields inline-element">
<span class="provider">
<div class="input-container">
<div>
<div class="input-block with-parenthesis">
<label for="zoneId" class="form-label"></label>
<span class="form-field-parenthesis left"></span>
<div class="input-holder userid form-input font-normal text-center">
<input type="tel" placeholder="Enter Zone ID" id="zoneId" name="user_0" model autocomplete="off" class="userid form-input font-normal text-center" required>
</div>
<span class="form-field-parenthesis right"></span>
</div>
</div>
</div>
</span>
</div>
<p class="instruction">To find your User ID, click on your avatar in the top left corner of the main game screen. Then go to the "Basic Info" tab. Your user ID is shown below your nickname. Please input the complete user ID here, e.g. 12345678(1234).</p>
</div>
</div>
</div>
</div>
</form>
</section>
<section class="topup-form">
<h2 class="form-section__circle">
<span class="form-section__number">2</span>
<span class="form-section__name">Select Amount</span>
</h2>
<div class="amount-list">
<div data-copy="price4" class="amount-category">
<div onclick="changeColor(this)" class="form-section__denom-btn form-section__with-image">
<div class="price">
<div class="diamond-img">
<img src="img/dia.png" alt="" class="dia-img">
</div>
<div class="price-section">
<span>56 Diamonds</span>
</div>
<p class="starting-price">
<span class="starting-price-value" id="price4">₱45</span>
</p>
</div>
</div>
</div>
<div data-copy="price5" class="amount-category">
<div onclick="changeColor(this)" class="form-section__denom-btn form-section__with-image">
<div class="price">
<div class="diamond-img">
<img src="img/dia.png" alt="" class="dia-img">
</div>
<div class="price-section">
<span>112 Diamonds </span>
</div>
<p class="starting-price">
<span class="starting-price-value" id="price5">₱95</span>
</p>
</div>
</div>
</div>
<div data-copy="price6" class="amount-category">
<div onclick="changeColor(this)" class="form-section__denom-btn form-section__with-image">
<div class="price">
<div class="diamond-img">
<img src="img/dia.png" alt="" class="dia-img">
</div>
<div class="price-section">
<span>223 Diamonds</span>
</div>
<p class="starting-price">
<span class="starting-price-value" id="price6">₱185</span>
</p>
</div>
</div>
</div>
<div data-copy="price7" class="amount-category">
<div onclick="changeColor(this)" class="form-section__denom-btn form-section__with-image">
<div class="price">
<div class="diamond-img">
<img src="img/dia.png" alt="" class="dia-img">
</div>
<div class="price-section">
<span>336 Diamonds</span>
</div>
<p class="starting-price">
<span class="starting-price-value" id="price7">₱270</span>
</p>
</div>
</div>
</div>
<div data-copy="price8" class="amount-category">
<div onclick="changeColor(this)" class="form-section__denom-btn form-section__with-image">
<div class="price">
<div class="diamond-img">
<img src="img/dia.png" alt="" class="dia-img">
</div>
<div class="price-section">
<span>570 Diamonds</span>
</div>
<p class="starting-price">
<span class="starting-price-value" id="price8">₱450</span>
</p>
</div>
</div>
</div>
<div data-copy="price9" class="amount-category">
<div onclick="changeColor(this)" class="form-section__denom-btn form-section__with-image">
<div class="price">
<div class="diamond-img">
<img src="img/dia.png" alt="" class="dia-img">
</div>
<div class="price-section">
<span>1163 Diamonds</span>
</div>
<p class="starting-price">
<span class="starting-price-value" id="price9">₱900</span>
</p>
</div>
</div>
</div>
<div data-copy="price10" class="amount-category">
<div onclick="changeColor(this)" class="form-section__denom-btn form-section__with-image">
<div class="price">
<div class="diamond-img">
<img src="img/dia.png" alt="" class="dia-img">
</div>
<div class="price-section">
<span>2398 Diamonds</span>
</div>
<p class="starting-price">
<span class="starting-price-value" id="price10">₱1800</span>
</p>
</div>
</div>
</div>
<div data-copy="price11" class="amount-category">
<div onclick="changeColor(this)" class="form-section__denom-btn form-section__with-image">
<div class="price">
<div class="diamond-img">
<img src="img/dia.png" alt="" class="dia-img">
</div>
<div class="price-section">
<span>6042 Diamonds</span>
</div>
<p class="starting-price">
<span class="starting-price-value " id="price11">₱4,500</span>
</p>
</div>
</div>
</div>
<div data-copy="price1" class="amount-category">
<div onclick="changeColor(this)" class="form-section__denom-btn form-section__with-image">
<div class="price">
<div class="diamond-img">
<img src="img/dia.png" alt="" class="dia-img">
</div>
<div class="price-section">
<span>8440 Diamonds</span>
</div>
<p class="starting-price">
<span class="starting-price-value" id="price1">₱6,300</span>
</p>
</div>
</div>
</div>
<div data-copy="price2" class="amount-category">
<div onclick="changeColor(this)" class="form-section__denom-btn form-section__with-image">
<div class="price">
<div class="diamond-img">
<img src="img/dia.png" alt="" class="dia-img">
</div>
<div class="price-section">
<span>12084 Diamonds</span>
</div>
<p class="starting-price">
<span class="starting-price-value" id="price2">₱9,000</span>
</p>
</div>
</div>
</div>
</div>
</section>
<section class="topup-form">
<h2 class="form-section__circle">
<span class="form-section__number">3</span>
<span class="form-section__name">Payment</span>
</h2>
<ul class="payment-section">
<li onclick="changeBG(this)" data-copy="targetprice" class="payment-container">
<a class="payment-channel">
<div class="payment-logo">
<figure class="logo-wrapper">
<img src="img/GCash-Logo.png" alt="GCash" class="PM-logo">
<span class="targetprice" id="targetprice"></span>
</figure>
</div>
</a>
</li>
<li data-copy="targetprice2" class="payment-container">
<a onclick="changeBG(this)" class="payment-channel">
<div class="payment-logo">
<figure class="logo-wrapper">
<img src="img/PayMaya_Logo.png" alt="GCash" class="PM-logo2">
<span class="targetprice2" id="targetprice2"></span>
</figure>
</div>
</a>
</li>
</ul>
</section>
<div class="buy">
<div class="checkout">
<span class="target-span"></span>
</div>
<button type="button" class="buyBtn btn-default btn-single" id="buyButton" onclick="buyProduct()">Buy now</button>
</div>
<div id="popup" class="popup">
<div class="popup-content">
<h2>Successfully Purchased!</h2>
<p>Thank you for your purchase.</p>
<button onclick="closePopup()">Close</button>
</div>
</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
const clickableDivs = document.querySelectorAll('.amount-category');
const pasteableSpan = document.querySelector('.targetprice');
const pasteableSpan2 = document.querySelector('.targetprice2');
const pasteableSpan3 = document.querySelector('.target-span')
let activeSpanId = null;
clickableDivs.forEach(function(div) {
div.addEventListener('click', function() {
const spanId = div.dataset.copy;
const span = document.getElementById(spanId);
const range = document.createRange();
range.selectNode(span);
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand('copy');
window.getSelection().removeAllRanges();
pasteableSpan.textContent = span.textContent;
pasteableSpan2.textContent = span.textContent;
pasteableSpan3.textContent = span.textContent;
paymentElement.style.backgroundColor = '';
activeSpanId = spanId;
});
});
});
var currentElement = null;
function changeColor(element) {
if (currentElement !== null) {
// Reset the background color of the previously clicked element
currentElement.style.backgroundColor = '';
}
// Change the background color of the clicked element
element.style.backgroundColor = '#34255c';
// Update the currentElement to the newly clicked element
currentElement = element;
}
var paymentElement = null;
const pasteSpan = document.querySelector('.target-span');
function changeBG(element) {
if (paymentElement !== null) {
// Reset the background color of the previously clicked element
paymentElement.style.backgroundColor = '';
}
// Change the background color of the clicked element
element.style.backgroundColor = '#34255c';
// Update the paymentElement to the newly clicked element
paymentElement = element;
}
function buyProduct() {
// Add your logic here to process the purchase
// For demonstration purposes, let's assume the purchase is successful
// Show the popup
var popup = document.getElementById("popup");
popup.style.display = "block";
}
function closePopup() {
// Hide the popup
var popup = document.getElementById("popup");
popup.style.display = "none";
window.location.href = "index.html";
}
</script>
</body>
</html>