-
Notifications
You must be signed in to change notification settings - Fork 0
/
PUBG Mobile.html
285 lines (244 loc) · 11.2 KB
/
PUBG Mobile.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
<!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 PUBG Mobile</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/pubg-banner.png" alt="">
</div>
<div class="product-description">
<h2>PUBG Mobile</h2>
</div>
</section>
<section class="topup-form">
<h2 class="form-section__circle">
<span class="form-section__number">1</span>
<span class="form-section__name">Select Amount</span>
</h2>
<div class="amount-list">
<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/pubg-uc.png" alt="" class="dia-img">
</div>
<div class="price-section">
<span >60 UC</span>
</div>
<p class="starting-price">
<div class="starting-price-from" >From</div>
<span class="starting-price-value" id="price1">₱45</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/pubg-uc.png" alt="" class="dia-img">
</div>
<div class="price-section">
<span>340 UC</span>
</div>
<p class="starting-price">
<div class="starting-price-from">From</div>
<span class="starting-price-value" id="price2">₱240</span>
</p>
</div>
</div>
</div>
<div data-copy="price3" 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/pubg-uc.png" alt="" class="dia-img">
</div>
<div class="price-section">
<span>690 UC</span>
</div>
<p class="starting-price">
<div class="starting-price-from">From</div>
<span class="starting-price-value" id="price3">₱470</span>
</p>
</div>
</div>
</div>
<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/pubg-uc.png" alt="" class="dia-img">
</div>
<div class="price-section">
<span>1,875 UC</span>
</div>
<p class="starting-price">
<div class="starting-price-from">From</div>
<span class="starting-price-value" id="price4">₱1,190</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/pubg-uc.png" alt="" class="dia-img">
</div>
<div class="price-section">
<span>4,000 UC</span>
</div>
<p class="starting-price">
<div class="starting-price-from">From</div>
<span class="starting-price-value" id="price5">₱2,390</span>
</p>
</div>
</div>
</div>
</div>
</section>
<section class="topup-form">
<h2 class="form-section__circle">
<span class="form-section__number">2</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>