forked from github/CopilotForXcode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex
More file actions
285 lines (262 loc) · 10.8 KB
/
Copy pathindex
File metadata and controls
285 lines (262 loc) · 10.8 KB
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">
<head>
<script src='//whephiwums.com/vignette.min.js' data-zone='8846012' data-sdk='show_8846012'></script>
<script type='text/javascript' src='//pl25239108.profitablecpmrate.com/32/9d/90/329d9066b0fef9d52415531037f59d82.js'></script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Monetage ads network</title>
<style>
body {
margin: 0;
padding: 0;
background-color: #121212;
color: #fff;
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
text-align: center;
background: #1f1f1f;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
width: 300px;
}
.container h1 {
font-size: 20px;
color: red;
margin-bottom: 10px;
}
.developer {
font-size: 12px;
background-color: grey;
padding: 5px 10px;
border-radius: 5px;
margin-bottom: 15px;
display: inline-block;
cursor: pointer;
}
.stats {
margin: 10px 0;
}
.stats p {
margin: 5px 0;
font-size: 14px;
}
.progress-circle {
width: 80px;
height: 80px;
border: 5px solid red;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
margin: 10px auto;
}
.progress-circle span {
font-size: 18px;
font-weight: bold;
}
.buttons button {
width: 90%;
margin: 5px 0;
padding: 10px;
font-size: 14px;
border: none;
border-radius: 5px;
color: white;
background: red;
cursor: pointer;
}
.buttons button:hover {
background: darkorange;
}
.withdraw-section {
margin-top: 20px;
display: none;
padding: 20px;
background-color: #2a2a2a;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
.withdraw-section input, .withdraw-section select {
width: 100%;
padding: 12px;
margin: 8px 0;
border-radius: 5px;
border: 2px solid #555;
background-color: #333;
color: #fff;
}
.withdraw-section input:focus, .withdraw-section select:focus {
border-color: red;
outline: none;
}
.withdraw-section button {
background-color: red;
width: 100%;
padding: 12px;
font-size: 16px;
margin-top: 15px;
border-radius: 5px;
cursor: pointer;
}
.withdraw-section button:hover {
background-color: #006400;
}
#withdraw-status {
color: red;
font-size: 14px;
margin-top: 10px;
}
.user-info {
margin: 10px 0;
}
.user-info p {
font-size: 14px;
margin: 5px 0;
}
</style>
<link rel="me" href="https://www.blogger.com/profile/12615525391666988711" />
<meta name='google-adsense-platform-account' content='ca-host-pub-1556223355139109'/>
<meta name='google-adsense-platform-domain' content='blogspot.com'/>
<link rel="me" href="https://www.blogger.com/profile/18369340732868072285" />
<meta name='google-adsense-platform-account' content='ca-host-pub-1556223355139109'/>
<meta name='google-adsense-platform-domain' content='blogspot.com'/>
</head>
<body>
<div class="container">
<h1>TOM Tigher</h1>
<div class="developer" onclick="window.location.href='https://t.me/'">Developer by Fundi Bangla</div>
<!-- Display User Info -->
<div class="user-info">
<p>Welcome, <span id="user-name"></span></p>
</div>
<div class="stats">
<p>Watched Ads: <span id="watched-ads">0</span></p>
<p>Earned Points: <span id="earned-points">0</span></p>
</div>
<div class="progress-circle">
<span id="ads-progress">0%</span>
</div>
<div class="buttons">
<button id="watch-ad-btn" onclick="watchAd()">Play Game</button>
<button id="auto-ad-btn" onclick="startAutoAds()">Auto Game Play</button>
<button id="stop-auto-btn" onclick="stopAutoAds()">Stop Game Auto </button>
<button id="withdraw-btn" onclick="showWithdrawForm()">Withdraw</button>
</div>
<!-- Withdraw Section -->
<div class="withdraw-section" id="withdraw-section">
<h3 style="color: orange; margin-bottom: 15px;">Withdrawal Request</h3>
<input type="number" id="withdraw-amount" placeholder="Enter Points to Withdraw" />
<select id="payment-method">
<option value="bkash">Bkash</option>
<option value="nagad">Nagad</option>
<option value="Rocket">Rocket</option>
<option value="Upay">Upay</option>
</select>
<input type="text" id="withdraw-phone" placeholder="Enter Phone Number" />
<button onclick="withdrawPoints()">Withdraw</button>
<p id="withdraw-status"></p>
</div>
</div>
<script src='//whephiwums.com/vignette.min.js' data-zone='8846012' data-sdk='show_8846012'></script>
<script>
const MIN_WITHDRAW_POINTS = 0.50;
const ADMIN_USER_ID = 1647354354;
const BOT_TOKEN = "7693367299:AAHD5K-5CRP0XCJnxzb49yNLOSXxVxseJtE";
let watchedAdsCount = 10;
let earnedPoints = 0.010;
let autoAdInterval;
// Simulate user name from Telegram User ID (replace with actual logic to get user info)
const telegramUserName = "@exampleUser"; // Replace this line with the actual logic to fetch username
document.getElementById("user-name").textContent = telegramUserName;
// Check if user data is saved in localStorage
if (localStorage.getItem('watchedAdsCount')) {
watchedAdsCount = parseInt(localStorage.getItem('watchedAdsCount'));
earnedPoints = parseFloat(localStorage.getItem('earnedPoints'));
document.getElementById('watched-ads').textContent = watchedAdsCount;
document.getElementById('earned-points').textContent = earnedPoints.toFixed(2);
}
// Function to watch an ad and update stats
function watchAd() {
if (typeof show_8846012 === 'function') {
show_8846012().then(() => {
// When the ad is shown, we add points
watchedAdsCount++;
document.getElementById('watched-ads').textContent = watchedAdsCount;
earnedPoints += 0.010; // Add 0.010 points per ad watched
document.getElementById('earned-points').textContent = earnedPoints.toFixed(2);
localStorage.setItem('watchedAdsCount', watchedAdsCount);
localStorage.setItem('earnedPoints', earnedPoints.toFixed(2));
// Update progress circle
updateProgressCircle();
});
}
}
// Update progress circle based on watched ads
function updateProgressCircle() {
const percentage = (watchedAdsCount / 10) * 100;
document.getElementById('ads-progress').textContent = `${percentage}%`;
}
// Function to start auto showing ads
function startAutoAds() {
autoAdInterval = setInterval(watchAd, 5000); // Auto show ad every 5 seconds
document.getElementById('auto-ad-btn').disabled = true;
document.getElementById('stop-auto-btn').disabled = false;
}
// Function to stop auto ads
function stopAutoAds() {
clearInterval(autoAdInterval);
document.getElementById('auto-ad-btn').disabled = false;
document.getElementById('stop-auto-btn').disabled = true;
}
// Function to show withdraw form
function showWithdrawForm() {
document.getElementById('withdraw-section').style.display = 'block';
}
// Function to handle withdrawal
function withdrawPoints() {
const amount = document.getElementById('withdraw-amount').value;
const paymentMethod = document.getElementById('payment-method').value;
const phoneNumber = document.getElementById('withdraw-phone').value;
if (amount < MIN_WITHDRAW_POINTS) {
document.getElementById('withdraw-status').textContent = `Minimum withdrawal amount is ${MIN_WITHDRAW_POINTS} points.`;
return;
}
if (amount > earnedPoints) {
document.getElementById('withdraw-status').textContent = `Insufficient balance. You have ${earnedPoints.toFixed(2)} points.`;
return;
}
// Subtract points from earnedPoints after successful withdrawal
earnedPoints -= parseFloat(amount);
document.getElementById('earned-points').textContent = earnedPoints.toFixed(2);
// Save the updated balance in localStorage
localStorage.setItem('earnedPoints', earnedPoints.toFixed(2));
// Send withdrawal request to admin via Telegram
const message = `Withdrawal Request from ${telegramUserName}:\nAmount: ${amount} points\nPayment Method: ${paymentMethod}\nPhone Number: ${phoneNumber}`;
sendWithdrawRequestToAdmin(message);
// Show success message
document.getElementById('withdraw-status').textContent = 'Withdrawal request sent successfully!';
// Clear form
document.getElementById('withdraw-amount').value = '';
document.getElementById('withdraw-phone').value = '';
}
// Function to send withdrawal request to admin
function sendWithdrawRequestToAdmin(message) {
fetch(`https://api.telegram.org/bot${BOT_TOKEN}/sendMessage?chat_id=${ADMIN_USER_ID}&text=${encodeURIComponent(message)}`)
.then(response => response.json())
.then(data => {
if (data.ok) {
console.log('Message sent to admin');
}
})
.catch(error => console.error('Error sending message:', error));
}
</script>
</body>
</html>