forked from MahdiF/taptaptap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
408 lines (376 loc) · 15.2 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>B3 Sepolia Testnet Faucet</title>
<meta name="description" content="Get B3 Testnet Funds by playing our Faucet Game"/>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<meta name="HandheldFriendly" content="true"/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css">
<link href="style.css" rel="stylesheet">
<!-- favicon -->
<link rel="apple-touch-icon" href="https://cdn.b3.fun/b3_logo%40.png">
<link rel="icon" type="image/png" href="https://cdn.b3.fun/b3_logo%40.png">
<link rel="icon" type="image/svg" href="https://cdn.b3.fun/b3_logo.svg">
<!-- OG Details -->
<meta property="og:title" content="B3 Sepolia (Testnet) Faucet" />
<meta property="og:description" content="Get B3 Testnet Funds by playing our Faucet Game" />
<meta property="og:site_name" content="B3 Faucet - Get B3 Testnet Funds by playing our Faucet Game" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://faucet.b3.fun" />
<meta property="og:image" content="https://cdn.b3.fun/b3_logo%40.png" />
<script>
!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="capture identify alias people.set people.set_once set_config register register_once unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled onFeatureFlags getFeatureFlag getFeatureFlagPayload reloadFeatureFlags group updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures getActiveMatchingSurveys getSurveys onSessionId".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);
posthog.init('phc_iDF20Eb3fBfVxjjxPmxQETLrEYAlUZvVrDBDoAcB0H8',{api_host:'https://us.i.posthog.com'})
</script>
</head>
<body ontouchstart="">
<header class="py-5 z-10 relative">
<div class="px-4 mx-auto max-w-7xl sm:px-6 lg:px-8">
<div class="flex items-center justify-between max-md:flex-col w-full gap-5">
<div class="w-full flex gap-2 items-center flex-grow">
<span class="flex items-center lg:hidden mr-4">
<button
class="text-white/50 hidden max-md:block"
type="button"
id="open-menu-btn"
>
<span
id="open-menu-icon"
aria-hidden="true"
>
<svg
class="w-8 h-8"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M4 6h16M4 12h16M4 18h16"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="1.5"
/>
</svg>
</span>
<span
id="close-menu-icon"
aria-hidden="true"
class="hidden"
>
<svg
class="w-8 h-8"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M6 18L18 6M6 6l12 12"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
/>
</svg>
</span>
</button>
</span>
<div class="flex gap-4 items-center justify-between w-full">
<div class="flex gap-4 items-center">
<img
src="https://cdn.b3.fun/b3_logo.svg"
alt="B3 Logo"
class="w-16 h-12 block max-md:hidden"
/>
<img
src="https://cdn.b3.fun/b3_logo_white.svg"
alt="B3 Logo"
class="w-16 h-12 hidden max-md:block"
/>
<span class="body-text-color font-dark text-xl flex items-center gap-2">
<span class="heading-font font-dark max-md:text-white">Faucet</span>
<span class="tertiary-bg px-3 py-1 rounded-md text-sm shadow">
Testnet
</span>
</span>
</div>
<div class="relative">
<div class="gap-2 items-center hidden lg:flex">
<a
href="https://b3.fun/"
class="nav-button hover:text-white duration-200"
rel="noopener noreferrer"
target="_blank"
title=""
>
About B3
</a>
<a
href="https://docs.b3.fun/"
class="nav-button hover:text-white duration-200"
rel="noopener noreferrer"
target="_blank"
title=""
>
Docs
</a>
<a
href="https://sepolia.explorer.b3.fun/"
class="nav-button hover:text-white duration-200"
rel="noopener noreferrer"
target="_blank"
title=""
>
Explorer
</a>
<a
href="https://bridge.b3.fun/"
class="nav-button hover:text-white duration-200"
rel="noopener noreferrer"
target="_blank"
title=""
>
Bridge
</a>
</div>
<div class="connector"></div>
</div>
</div>
</div>
</div>
<nav class="hidden">
<div class="p-4 tertiary-bg border border-black/5 mt-4 rounded-lg shadow-xl">
<div class="grid gap-y-7">
<a
className="flex items-center p-2 -m-2 text-base font-medium body-text-color transition-all duration-200 rounded-md hover:bg-black/20 focus:outline-none font-pj focus:ring-1 focus:ring-colorFive focus:ring-offset-2"
href="https://b3.fun/"
rel="noopener noreferrer"
target="_blank"
title=""
>
About B3
</a>
<a
className="flex items-center p-2 -m-2 text-base font-medium body-text-color transition-all duration-200 rounded-md hover:bg-black/20 focus:outline-none font-pj focus:ring-1 focus:ring-colorFive focus:ring-offset-2"
href="https://docs.b3.fun/"
rel="noopener noreferrer"
target="_blank"
title=""
>
Docs
</a>
<a
className="flex items-center p-2 -m-2 text-base font-medium body-text-color transition-all duration-200 rounded-md hover:bg-black/20 focus:outline-none font-pj focus:ring-1 focus:ring-colorFive focus:ring-offset-2"
href="https://sepolia.explorer.b3.fun/"
rel="noopener noreferrer"
target="_blank"
title=""
>
Explorer
</a>
<a
className="flex items-center p-2 -m-2 text-base font-medium body-text-color transition-all duration-200 rounded-md hover:bg-black/20 focus:outline-none font-pj focus:ring-1 focus:ring-colorFive focus:ring-offset-2"
href="https://bridge.b3.fun/"
rel="noopener noreferrer"
target="_blank"
title=""
>
Bridge
</a>
</div>
</div>
</nav>
</div>
</header>
<div id="faucet-game">
<div class="main-wrapper">
<!-- SPLASH/LOADING PAGE -->
<div id="pageSplash" class="page-cont page-splash page-faded-bg">
<div class="fixed-75w-wrapper">
<div id="splashScreenLogo" class="tpbl-circle c-white splash-screen-logo"></div>
<div id="splashScreenTxt">
Loading Faucet Game
</div>
</div>
</div>
<!-- GAME MENU PAGE -->
<div id="pageGameMenu" class="page-cont page-game-menu page-faded-bg">
<div class="fixed-75w-wrapper">
<div class="gm-menu-header-cont">
<div class="tpbl-circle c-blue gm-menu-logo-bg"></div>
<h1 class="gm-menu-title heading-font">B3 Testnet Faucet</h1>
<h2 class="gm-menu-subtitle">Play to receive testnet funds</h2>
</div>
<p class="gm-menu-subtitle" style="font-size: 70%;">Enter recipient wallet address (ENS supported)</p>
<div id="wallet-input">
<input id="address" type="text" name="address" placeholder="Address (0x... or ENS.eth)" required
style="width: 100%;padding: 10px 15px;border-radius: 10px;border: 1px solid rgba(255,255,255,0.3);background: rgba(255,255,255,0.2);color: #FFF;margin: 10px 0 20px;" />
<button id="connect-wallet" class="tertiary-bg px-3 py-1 rounded-lg text-sm border border-white/40 shadow">Connect Wallet</button>
</div>
<button id="newGameBtn" type="submit" class="gm-btn btn-blue heading-font">Play to Get Funds</button>
<button id="aboutBtn" class="small-btn" type="button" name="button" style="background: transparent; font-size: 70%; margin-top: 10px;">Game Credits</button>
</div>
</div>
<!-- ABOUT PAGE -->
<div id="pageAbout" class="page-cont page-about page-faded-bg anmtd-grdnt-bg blu-grdnt-bg no-bg">
<div class="fixed-75w-wrapper">
<div class="info-screen-title-cont">
<div class="info-screen-ttl-txt-bld">Game Credits</div>
</div>
<div class="info-screen-txt-cont">
<div>Original Game Created by</div>
<a href="http://mahdif.com/" class="txt-bold">Mahdi Farra</a>
<hr>
<div>Credits</div>
<div class="credits-cont">
<ul class="credits-list">
<li>Nour Abu Saud</li>
<li>Ahmed El Gabri</li>
<li>Gustavo Siqueira</li>
<li>Eduardo Abreu</li>
<li>Michael Rurka</li>
<li>Kolton Gagnon</li>
<li>Philip Rurka</li>
</ul>
</div>
</div>
<div id="abtPageBackBtn" class="tpbl-circle c-white submit-circle"></div>
</div>
</div>
<!-- NEW HIGH SCORE PAGE -->
<div id="pageHighScore" class="page-cont page-high-score page-faded-bg anmtd-grdnt-bg rd-grdnt-bg no-bg">
<div class="fixed-75w-wrapper">
<div class="info-screen-title-cont">
<div class="info-screen-icon you-lost-icon"></div>
<div class="info-screen-ttl-txt-bld">Game Over</div>
<div >You Lost</div>
</div>
<div class="info-screen-txt-cont">
<div class="info-screen-body-txt-reg">Score</div>
<div id="lvlLostNewHighScore" class="lvl-fnshd-score-nmb">86</div>
<div class="info-screen-body-txt-reg">New High Score</div>
<div class="lvl-fnshd-highscore-icon"></div>
</div>
<div class="sbmt-tryagain-txt">Try again?</div>
<div class="tpbl-circle c-white submit-circle"></div>
</div>
</div>
<!-- GAME TUTORIAL PAGE -->
<div id="pageTutorial" class="page-cont page-tutorial page-faded-bg">
<div class="fixed-100w-wrapper">
<div id="tutPgStartGameBtn" class="tpbl-circle c-blue tut-circle"></div>
<div class="tut-arrow"></div>
<h2 class="tut-text">TAP THE CIRCLE<br/>TO START</h2>
</div>
</div>
<!-- PLAY DELAY PAGE -->
<div id="pagePlayDelay" class="page-cont page-play-delay page-faded-bg">
<div id="palyDelayCont" class="fixed-75w-wrapper">
<div class="" id="playDelayNum">
3
</div>
</div>
</div>
<!-- GAME PLAY AREA PAGE -->
<div id="pagePlayArea" class="page-cont page-play-area">
<div class="game-stats-cont">
<!-- time progress bar -->
<div id="gmStatsTimeProgress" class="gm-stats-time-progress"></div>
<div class="gm-stats-wrapper">
<!-- pause button -->
<div class="gm-stats-vcont">
<button id="gmStatsPauseBtn" class="gm-stats-pause-button"></button>
</div>
<!-- score -->
<div class="gm-stats-vcont">
<div class="stat-wrapper">
<div class="gm-stats-title">Score</div>
<div id="gmStatsScore" class="gm-stats-value">2894</div>
</div>
</div>
<!-- level number -->
<div class="gm-stats-vcont">
<div class="stat-wrapper text-align-right">
<div id="gmStatsLvlNumb" class="gm-stats-title">Level 7</div>
<div class="gm-stats-value">
<span id="gmStatsCurrentTapCount" class="gm-stats-tap-count">16</span>
<span id="gmStatsTotalTapCount">/20</span>
</div>
</div>
</div>
</div>
</div>
<div id="gameSpace" class="game-space">
<!-- Where the magic happens -->
<!-- <div class="tpbl-circle c-blue"></div> -->
<!-- <div class="tpbl-circle c-red"></div> -->
</div>
</div>
<!-- GAME PAUSE PAGE -->
<div id="pagePauseMenu" class="page-cont page-pause-menu page-faded-bg anmtd-grdnt-bg blu-grdnt-bg no-bg">
<div class="fixed-75w-wrapper">
<div class="info-screen-title-cont">
<div class="info-screen-icon puz-icon"></div>
<div class="info-screen-ttl-txt-bld">GAME PAUSED</div>
</div>
<div class="info-screen-txt-cont">
<div class="info-screen-body-txt-reg">Score</div>
<div id="lvlPausedScore" class="lvl-fnshd-score-nmb">521</div>
</div>
<div class="puz-menu-btnz-cont">
<button id="pmCntnuGmBtn" class="gm-btn btn-blue">Continue</button>
<button id="pmRstrtLvlBtn" class="gm-btn pm-rstrt-lvl-btn">Restart</button>
</div>
</div>
</div>
<!-- YOU LOST PAGE -->
<div id="pageYouLost" class="page-cont page-you-lost page-faded-bg anmtd-grdnt-bg rd-grdnt-bg no-bg">
<div class="fixed-75w-wrapper">
<div class="info-screen-title-cont">
<div id="lvlLostIcon" class="info-screen-icon you-lost-icon"></div>
<div class="info-screen-ttl-txt-bld">Game Over</div>
<div id="lvlLostTtl" >You Lost</div>
</div>
<div class="info-screen-txt-cont">
<div class="info-screen-body-txt-reg">Score</div>
<div id="lvlLostScore" class="lvl-fnshd-score-nmb">746</div>
<!-- <div class="info-screen-body-txt-reg">Best Score</div>
<div id="lvlLostBestScore" class="lvl-fnshd-score-nmb">146</div> -->
</div>
<div class="sbmt-tryagain-txt">Try again?</div>
<div id="lvlLostTryAgainBtn" class="tpbl-circle c-white submit-circle"></div>
</div>
</div>
<!-- LEVEL PASSED PAGE -->
<div id="pageLevelPassed" class="page-cont page-level-passed page-faded-bg anmtd-grdnt-bg grn-grdnt-bg no-bg">
<div class="fixed-75w-wrapper">
<div class="info-screen-title-cont">
<div class="info-screen-icon flag-icon"></div>
<div id="lvlPssdTtl">Level 2</div>
<div class="info-screen-ttl-txt-bld">Passed</div>
</div>
<div class="info-screen-txt-cont">
<div class="info-screen-body-txt-reg">Score</div>
<div id="lvlPssdScore" class="lvl-fnshd-score-nmb">521</div>
<div id="lvlPssdBonusScore" class="grow-animation"></div>
<div id="lvlPssdFaucetMessage" class="grow-animation" style="font-size: 70%; margin-top: 20px;">+0.001 ETH Earned (Loading...)</div>
</div>
<div id="lvlPssdContinueNextLvlBtn" class="tpbl-circle c-white submit-circle"></div>
</div>
</div>
</div>
</div>
<div id="stats" style="display: none;">
Distributing to
<span id="statsAddress">0x----</span>
<span id="statsBadge" class="tertiary-bg px-3 py-1 rounded-lg text-sm border border-white/5 shadow"><span id="statsAmount">0.001</span> ETH Issued Today</span>
</div>
<!-- logic & brain -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/web3/4.8.0/web3.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/toastify-js"></script>
<script src="js/habibiScript.js"></script>
</body>
</html>