-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwallet.html
More file actions
631 lines (550 loc) · 32.3 KB
/
wallet.html
File metadata and controls
631 lines (550 loc) · 32.3 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
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
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
<!DOCTYPE HTML>
<html lang="en-GB">
<head>
<title>Giddy Key | Wallet</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="description"
content="Giddy Key Wallet — your personal Solana wallet for $GIDDY, $eXPB Bouncy Ball, and local currencies.">
<!-- ONLY CHANGE: updated description meta tag for better SEO and clarity about the wallet's purpose -->
<link class="restore-typography" rel="stylesheet" href="/assets/css/main.css">
<!-- ONLY CHANGE: added noscript stylesheet for better degraded experience when JS is disabled -->
<noscript>
<link rel="stylesheet" href="/assets/css/noscript.css">
</noscript>
<!-- ONLY CHANGE: added noscript tag with fallback CSS to ensure basic styling when JavaScript is disabled -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
<!-- ONLY CHANGE: added Tailwind CSS via CDN for utility-first styling and rapid design adjustments -->
<script src="https://cdn.tailwindcss.com"></script>
<style>
body {
background: linear-gradient(to bottom, #1e0533, #000000);
color: white;
}
.card {
background: rgba(30, 5, 51, 0.95);
border: 1px solid #6b21a8;
border-radius: 1.5rem;
}
.token-card:hover {
transform: translateY(-4px);
box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.2);
}
.fade-in {
opacity: 0;
transform: translateY(20px);
transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.fade-in.visible {
opacity: 1;
transform: translateY(0);
}
.card-content {
text-align: left;
}
.token-icon {
width: 72px;
height: 72px;
object-fit: contain;
}
@media (min-width: 768px) {
.token-icon {
width: 96px;
height: 96px;
}
}
.back-btn {
color: #ffffff;
font-size: 2.25rem;
padding-left: 12px;
padding-right: 12px;
}
/* Mobile Floating Bubble - fixed position so it stays on scroll */
.mobile-claim {
display: none;
position: fixed;
bottom: 100px;
right: 20px;
z-index: 50;
}
@media (max-width: 767px) {
.mobile-claim {
display: flex;
}
}
#mobileClaimBubble {
position: fixed;
right: 13px;
bottom: calc(68px + env(safe-area-inset-bottom));
z-index: 50;
display: flex;
align-items: center;
}
/* Remove border + outline from the close button */
#mobileClaimBubble .close-btn {
border: none;
outline: none;
background: transparent;
box-shadow: none;
-webkit-tap-highlight-color: transparent;
}
.mobile-claim {
display: none;
}
@media (max-width: 767px) {
.mobile-claim {
display: flex;
}
}
/* Hide mobile claim bubble on desktop only */
@media (min-width: 768px) {
#mobileClaimBubble {
display: none !important;
}
}
/* === ONE KIN COMMUNITY TOKENS STYLES === */
#community-header {
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#community-header:hover {
box-shadow: 0 0 25px -5px rgb(165 243 252);
}
#community-content {
transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.mini-community-card {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mini-community-card:hover {
transform: scale(1.05);
box-shadow: 0 10px 15px -3px rgb(165 243 252);
}
.scrollbar-hide::-webkit-scrollbar {
display: none;
}
</style>
</head>
<body class="is-preload">
<div id="wrapper" class="fade-in">
<header class="header-subpage">
<a href="/index.html">
<img src="/assets/images/webp/giddys-shop-tile-rnd.webp" alt="Giddy's Key" class="logo">
</a>
</header>
<a href="#darkModePanel" id="darkModeToggle" class="alt">
<i class="fas fa-sun"></i>
</a>
<nav id="nav">
<ul class="links">
<li><a href="index.html">Home</a></li>
<li><a href="ofidtales.html">Giddy's TV & Toys</a></li>
<li class="active"><a href="wallet.html">Wallet</a></li>
<li><a href="bouncyball.html">Tokens</a></li>
<li><a href="cashlinks.html">Digital Gifts</a></li>
</ul>
<ul class="icons top-icons">
<li class="top-toggle">
<a href="#" aria-label="Dark-Light Desktop Toggle Button">
<img src="/assets/images/darklight-toggle01.svg" alt="Dark-Light Desktop Toggle Button"
class="custom-site-icon">
</a>
</li>
<li class="top-hvr"><a href="https://www.ofidcrypt.ca" aria-label="Hvr"><img
src="/assets/images/hvr-logo01.svg" alt="Hvr Logo" class="custom-site-icon"></a></li>
</ul>
<ul class="icons">
<li><a href="https://x.com/OFiDCrypt" class="icon brands fa-x-twitter"><span class="label">X</span></a>
</li>
<li><a href="https://youtube.com/@OFiDCrypt" class="icon brands fa-youtube"><span
class="label">YouTube</span></a></li>
<li><a href="https://www.tiktok.com/@Giddys_CA" class="icon brands alt fa-tiktok"><span
class="label">TikTok</span></a></li>
<li><a href="https://www.facebook.com/OFiDCrypt" class="icon brands alt fa-facebook-f"><span
class="label">Facebook</span></a></li>
<li><a href="https://linkedin.com/company/OFiDCrypt" class="icon brands alt fa-linkedin"><span
class="label">LinkedIn</span></a></li>
</ul>
</nav>
<div id="main">
<div
class="relative flex items-center justify-between px-6 pt-5 pb-4 border-b border-purple-700 bg-gradient-to-r from-purple-950 to-black">
<div class="flex items-center gap-4 z-10">
<button onclick="history.back()" class="back-btn">
<i class="fas fa-arrow-left"></i>
</button>
<div onclick="claimBonus()"
class="hidden md:flex bg-gradient-to-r from-purple-600 to-pink-500 text-white text-sm font-bold px-5 py-2.5 rounded-3xl items-center gap-2 cursor-pointer shadow-lg hover:shadow-xl transition-all">
<span class="text-xl">🎁</span>
Claim $GIDDY
</div>
</div>
<h1
class="absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-3xl font-bold tracking-tight text-white pointer-events-none">
Giddy Key Wallet
</h1>
<div class="flex items-center gap-5 z-10">
<i
class="fa-solid fa-bell text-2xl text-white/80 hover:text-white cursor-pointer transition-colors"></i>
<div onclick="showProfile()"
class="w-10 h-10 bg-purple-300 rounded-full flex items-center justify-center text-black font-bold cursor-pointer hover:bg-purple-200 transition-colors">
👤</div>
</div>
</div>
<div class="px-4 pt-2 pb-8">
<h2 class="text-4xl font-bold mt-6 mb-6"></h2>
<div class="grid grid-cols-2 gap-4 mb-8">
<div onclick="goToToken('expb')" class="card p-5 cursor-pointer token-card fade-in">
<div class="flex items-center justify-between gap-2">
<div class="card-content w-1/2 flex flex-col justify-center">
<span
class="uppercase text-[10px] sm:text-xs tracking-widest text-purple-300 block leading-tight">DYNAMIC
TOKEN</span>
<div class="text-2xl sm:text-3xl font-bold mt-1">eXPB</div>
<div class="text-sm sm:text-lg leading-tight text-zinc-300">BOUNCY BALL</div>
</div>
<div class="w-1/2 flex justify-end">
<img src="/assets/images/webp/expb-case.webp" alt="eXPB" class="token-icon max-w-full">
</div>
</div>
<div class="mt-8 card-content">
<div class="text-xs uppercase text-zinc-400">YOUR VALUE</div>
<div class="text-4xl font-bold">$1.00 CAD</div>
<div class="text-green-400 text-sm">+0.05% Today</div>
</div>
<div class="text-purple-400 text-sm mt-6 flex items-center gap-1">Token Price Details →</div>
</div>
<div onclick="goToToken('giddy')" class="card p-5 cursor-pointer token-card fade-in">
<div class="flex items-center justify-between gap-2">
<div class="card-content w-1/2 flex flex-col justify-center">
<span
class="uppercase text-[10px] sm:text-xs tracking-widest text-purple-300 block leading-tight">STABLE
TOKEN</span>
<div class="text-2xl sm:text-3xl font-bold mt-1">GIDDY</div>
<div class="text-sm sm:text-lg leading-tight text-zinc-300">GIDDY DOLLAR</div>
</div>
<div class="w-1/2 flex justify-end">
<img src="/assets/images/webp/giddy-case.webp" alt="GIDDY"
class="token-icon max-w-full">
</div>
</div>
<div class="mt-8 card-content">
<div class="text-xs uppercase text-zinc-400">YOUR VALUE</div>
<div class="text-4xl font-bold">$0.68 CAD</div>
<div class="text-zinc-400 text-sm">0.00% Today</div>
</div>
<div class="text-purple-400 text-sm mt-6 flex items-center gap-1">Token Price Details →</div>
</div>
</div>
<!-- === ONE KIN COMMUNITY TOKENS (7 real tokens from your JSON, in exact order) === -->
<div class="mb-8">
<div id="community-header" onclick="toggleCommunityTokens()"
class="card p-6 cursor-pointer flex items-center justify-between border-2 border-yellow-400 bg-gradient-to-r from-purple-950 via-blue-950 to-cyan-950 shadow-[0_0_20px_-5px] shadow-cyan-400">
<div class="flex items-center gap-5">
<!-- Golden neon flair icon -->
<div
class="w-14 h-14 bg-gradient-to-br from-yellow-300 to-cyan-300 rounded-2xl flex items-center justify-center text-4xl shadow-inner ring-2 ring-offset-2 ring-offset-purple-950 ring-cyan-400">
🔗
</div>
<div>
<span
class="uppercase text-sm tracking-[3px] font-bold bg-gradient-to-r from-yellow-300 to-cyan-300 bg-clip-text text-transparent">ONE
KIN</span>
<h3 class="text-3xl font-black tracking-tighter text-white">Community Tokens</h3>
<p class="text-cyan-300 text-sm flex items-center justify-center gap-1">
<span class="inline-block w-2 h-2 bg-cyan-400 rounded-full animate-pulse"></span>
7 Solana-Powered Tokens
</p>
</div>
</div>
<!-- Yellow arrow — made a bit smaller (text-4xl instead of text-5xl) -->
<div id="expand-icon" class="text-4xl text-yellow-300 transition-transform duration-500">
▼
</div>
</div>
<!-- Expandable long rectangle content -->
<div id="community-content"
class="max-h-0 overflow-hidden bg-zinc-900/70 border border-cyan-400/30 rounded-3xl mt-3">
<div class="px-6 py-6">
<div class="flex gap-6 overflow-x-auto scrollbar-hide snap-x snap-mandatory pb-2">
<!-- 1. ONE -->
<div onclick="window.open('https://x.com/OneKinCommunity?s=20', '_blank')"
class="mini-community-card flex-shrink-0 w-44 card p-4 rounded-3xl cursor-pointer border border-yellow-400/30">
<div class="flex flex-col items-center text-center">
<img src="/assets/images/dgcl-one.JPG" alt="ONE"
class="token-icon w-16 h-16 rounded-2xl shadow-md mb-4">
<span class="uppercase text-[10px] tracking-widest text-yellow-300">ONE KIN •
COMMUNITY</span>
<div class="text-2xl font-bold mt-1">ONE</div>
<div class="text-xs text-zinc-300">ONE</div>
<div class="mt-6 w-full">
<div class="text-xs uppercase text-zinc-400">YOUR VALUE</div>
<div class="text-3xl font-bold text-emerald-400">$0.42 CAD</div>
<div
class="text-emerald-400 text-xs flex items-center justify-center gap-1">
+1.2% <span class="text-[10px]">24h</span></div>
</div>
</div>
</div>
<!-- 2. KIN -->
<div onclick="window.open('https://x.com/OneKinCommunity?s=20', '_blank')"
class="mini-community-card flex-shrink-0 w-44 card p-4 rounded-3xl cursor-pointer border border-yellow-400/30">
<div class="flex flex-col items-center text-center">
<img src="/assets/images/dgcl-kin.JPG" alt="KIN"
class="token-icon w-16 h-16 rounded-2xl shadow-md mb-4">
<span class="uppercase text-[10px] tracking-widest text-yellow-300">ONE KIN •
COMMUNITY</span>
<div class="text-2xl font-bold mt-1">KIN</div>
<div class="text-xs text-zinc-300">KIN</div>
<div class="mt-6 w-full">
<div class="text-xs uppercase text-zinc-400">YOUR VALUE</div>
<div class="text-3xl font-bold text-emerald-400">$0.88 CAD</div>
<div
class="text-emerald-400 text-xs flex items-center justify-center gap-1">
+0.9% <span class="text-[10px]">24h</span></div>
</div>
</div>
</div>
<!-- 3. DOBBY -->
<div onclick="window.open('https://x.com/Dobby_Coin?s=20', '_blank')"
class="mini-community-card flex-shrink-0 w-44 card p-4 rounded-3xl cursor-pointer border border-yellow-400/30">
<div class="flex flex-col items-center text-center">
<img src="/assets/images/dgcl-dobby.JPG" alt="DOBBY"
class="token-icon w-16 h-16 rounded-2xl shadow-md mb-4">
<span class="uppercase text-[10px] tracking-widest text-yellow-300">ONE KIN •
COMMUNITY</span>
<div class="text-2xl font-bold mt-1">DOBBY</div>
<div class="text-xs text-zinc-300">DOBBY</div>
<div class="mt-6 w-full">
<div class="text-xs uppercase text-zinc-400">YOUR VALUE</div>
<div class="text-3xl font-bold">$0.15 CAD</div>
<div class="text-amber-400 text-xs flex items-center justify-center gap-1">
-0.4% <span class="text-[10px]">24h</span></div>
</div>
</div>
</div>
<!-- 4. MYLO -->
<div onclick="window.open('https://x.com/MYLOCAT_?s=20', '_blank')"
class="mini-community-card flex-shrink-0 w-44 card p-4 rounded-3xl cursor-pointer border border-yellow-400/30">
<div class="flex flex-col items-center text-center">
<img src="/assets/images/dgcl-mylo.JPG" alt="MYLO"
class="token-icon w-16 h-16 rounded-2xl shadow-md mb-4">
<span class="uppercase text-[10px] tracking-widest text-yellow-300">ONE KIN •
COMMUNITY</span>
<div class="text-2xl font-bold mt-1">MYLO</div>
<div class="text-xs text-zinc-300">MYLOCAT</div>
<div class="mt-6 w-full">
<div class="text-xs uppercase text-zinc-400">YOUR VALUE</div>
<div class="text-3xl font-bold text-emerald-400">$1.65 CAD</div>
<div
class="text-emerald-400 text-xs flex items-center justify-center gap-1">
+2.3% <span class="text-[10px]">24h</span></div>
</div>
</div>
</div>
<!-- 5. DUNO -->
<div onclick="window.open('https://x.com/dunoglobal?s=20', '_blank')"
class="mini-community-card flex-shrink-0 w-44 card p-4 rounded-3xl cursor-pointer border border-yellow-400/30">
<div class="flex flex-col items-center text-center">
<img src="/assets/images/dgcl-duno.JPG" alt="DUNO"
class="token-icon w-16 h-16 rounded-2xl shadow-md mb-4">
<span class="uppercase text-[10px] tracking-widest text-yellow-300">ONE KIN •
COMMUNITY</span>
<div class="text-2xl font-bold mt-1">DUNO</div>
<div class="text-xs text-zinc-300">DUNO</div>
<div class="mt-6 w-full">
<div class="text-xs uppercase text-zinc-400">YOUR VALUE</div>
<div class="text-3xl font-bold text-emerald-400">$0.29 CAD</div>
<div
class="text-emerald-400 text-xs flex items-center justify-center gap-1">
+4.1% <span class="text-[10px]">24h</span></div>
</div>
</div>
</div>
<!-- 6. CPT -->
<div onclick="window.open('https://x.com/CaptTrench?s=20', '_blank')"
class="mini-community-card flex-shrink-0 w-44 card p-4 rounded-3xl cursor-pointer border border-yellow-400/30">
<div class="flex flex-col items-center text-center">
<img src="/assets/images/dgcl-cpt.JPG" alt="CPT"
class="token-icon w-16 h-16 rounded-2xl shadow-md mb-4">
<span class="uppercase text-[10px] tracking-widest text-yellow-300">ONE KIN •
COMMUNITY</span>
<div class="text-2xl font-bold mt-1">CPT</div>
<div class="text-xs text-zinc-300">CAPTAIN TRENCH</div>
<div class="mt-6 w-full">
<div class="text-xs uppercase text-zinc-400">YOUR VALUE</div>
<div class="text-3xl font-bold text-emerald-400">$3.20 CAD</div>
<div
class="text-emerald-400 text-xs flex items-center justify-center gap-1">
+0.7% <span class="text-[10px]">24h</span></div>
</div>
</div>
</div>
<!-- 7. SINU -->
<div onclick="window.open('https://x.com/Sock_Inu?s=20', '_blank')"
class="mini-community-card flex-shrink-0 w-44 card p-4 rounded-3xl cursor-pointer border border-yellow-400/30">
<div class="flex flex-col items-center text-center">
<img src="/assets/images/dgcl-sinu.JPG" alt="SINU"
class="token-icon w-16 h-16 rounded-2xl shadow-md mb-4">
<span class="uppercase text-[10px] tracking-widest text-yellow-300">ONE KIN •
COMMUNITY</span>
<div class="text-2xl font-bold mt-1">SINU</div>
<div class="text-xs text-zinc-300">SOCK INU</div>
<div class="mt-6 w-full">
<div class="text-xs uppercase text-zinc-400">YOUR VALUE</div>
<div class="text-3xl font-bold">$0.11 CAD</div>
<div class="text-amber-400 text-xs flex items-center justify-center gap-1">
-0.2% <span class="text-[10px]">24h</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- === END OF ONE KIN COMMUNITY TOKENS === -->
<div onclick="goToShop()" class="relative rounded-3xl overflow-hidden mb-8 cursor-pointer fade-in">
<img src="/assets/images/webp/giddys-shop-wide-follow.webp" alt="Giddy's Shop"
class="w-full h-52 object-cover">
<div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/30 to-transparent"></div>
<div class="absolute bottom-6 left-6 right-6">
<button
class="mt-4 w-full bg-purple-600 hover:bg-purple-500 py-3 rounded-2xl font-semibold text-lg text-center">Visit
Store</button>
</div>
</div>
<div class="flex items-center justify-between bg-zinc-900/80 rounded-3xl px-6 py-3 mb-8 text-sm">
<span>Kelowna BC Canada</span>
<img src="https://flagcdn.com/w40/ca.png" alt="Canada" class="h-5">
</div>
<div id="walletTotalCard" class="card p-5 fade-in mb-12">
<div class="flex justify-between items-start">
<div class="flex items-center gap-3">
<div class="text-4xl">💰</div>
<div>
<div class="font-bold text-2xl">TOTAL</div>
<div class="text-sm text-zinc-400">CASH IN BAG</div>
</div>
</div>
<div class="text-right">
<div class="text-xs uppercase text-zinc-400">YOUR VALUE</div>
<div class="text-4xl font-bold">$1.68 CAD</div>
<div class="text-green-400 text-sm">+0.01% Today</div>
</div>
</div>
<div class="flex flex-col items-center mt-8">
<div class="flex justify-center gap-8">
<div class="flex flex-col items-center w-20">
<button onclick="buyToken()"
class="w-20 h-20 bg-purple-600 hover:bg-purple-500 rounded-full text-4xl mb-2">+</button>
<span class="text-sm font-medium">Buy</span>
</div>
<div class="flex flex-col items-center w-20">
<button onclick="sellToken()"
class="w-20 h-20 bg-purple-600 hover:bg-purple-500 rounded-full text-4xl mb-2">-</button>
<span class="text-sm font-medium">Sell</span>
</div>
</div>
</div>
</div>
</div>
</div>
<nav class="bottom-nav">
<div class="nav-item" onclick="window.location.href='https://t.me/oneGIDDY'"><i
class="fas fa-comment-dots"></i>Ask Giddy</div>
<div class="nav-item" onclick="window.location.href='/kincommunity.html'"><i
class="fas fa-users"></i>Connect</div>
<div class="nav-item" onclick="window.location.href='/game/app-play.html'"><i
class="fas fa-gamepad"></i>Play Blinko!</div>
<div class="nav-item active"><i class="fas fa-wallet"></i>Wallet</div>
<div class="nav-item" id="navPanelTrigger"><i class="fas fa-bars"></i> Menu</div>
</nav>
</div>
<!-- ONLY CHANGE: mobile floating bubble moved outside #wrapper + class="mobile-claim" + positioning from the working version -->
<div id="mobileClaimBubble" onclick="claimBonus()"
class="mobile-claim bg-gradient-to-r from-purple-600 to-pink-500 text-white text-sm font-bold px-5 py-3 rounded-3xl shadow-2xl cursor-pointer items-center gap-2">
<span>🎁</span>
Claim $GIDDY
<button onclick="event.stopPropagation(); dismissClaimBubble();"
class="ml-auto text-white/90 hover:text-white text-2xl leading-none bg-transparent p-0 close-btn">
×
</button>
</div>
<script>
function goToToken(token) {
if (token === 'expb') window.location.href = '/bouncyball.html';
else if (token === 'giddy') window.location.href = '/onegiddy.html';
}
function goToShop() { window.location.href = '/shop.html'; }
function claimBonus() { window.location.href = "/cashlinks.html#giddy"; }
function buyToken() { alert("Buy Interface Loading..."); }
function sellToken() { alert("Sell Interface Loading..."); }
function showProfile() { alert("Profile coming soon"); }
function dismissClaimBubble() {
const bubble = document.getElementById('mobileClaimBubble');
if (bubble) {
bubble.setAttribute('data-visible', 'false');
setTimeout(() => bubble.style.setProperty('display', 'none', 'important'), 300);
}
localStorage.setItem('claimBubbleDismissed', 'true');
}
/* === Toggle for ONE KIN Community Tokens expandable rectangle === */
function toggleCommunityTokens() {
const content = document.getElementById('community-content');
const icon = document.getElementById('expand-icon');
if (content.style.maxHeight && content.style.maxHeight !== '0px') {
content.style.maxHeight = '0px';
icon.style.transform = 'rotate(0deg)';
} else {
content.style.maxHeight = content.scrollHeight + 'px';
icon.style.transform = 'rotate(180deg)';
}
}
</script>
<script src="/assets/js/jquery.min.js"></script>
<script src="/assets/js/jquery.scrollex.min.js"></script>
<script src="/assets/js/jquery.scrolly.min.js"></script>
<script src="/assets/js/browser.min.js"></script>
<script src="/assets/js/breakpoints.min.js"></script>
<script src="/assets/js/util.js"></script>
<script src="/assets/js/main.js"></script>
<script src="/assets/js/ofid-main.js"></script>
<script>
jQuery(document).ready(function ($) {
const bubble = document.getElementById('mobileClaimBubble');
const targetCard = document.getElementById('walletTotalCard');
if (bubble) {
if (window.innerWidth < 768 && localStorage.getItem('claimBubbleDismissed') !== 'true') {
bubble.setAttribute('data-visible', 'true');
} else {
bubble.setAttribute('data-visible', 'false');
}
}
if (targetCard && bubble) {
const bndObserver = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (localStorage.getItem('claimBubbleDismissed') === 'true') return;
if (entry.isIntersecting) {
bubble.setAttribute('data-visible', 'false');
} else {
if (entry.boundingClientRect.top > 0) {
bubble.setAttribute('data-visible', 'true');
}
}
});
}, {
root: null,
rootMargin: '0px 0px -40px 0px',
threshold: 0.1
});
bndObserver.observe(targetCard);
}
const fallbackObserver = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) entry.target.classList.add('visible');
});
}, { threshold: 0.1 });
document.querySelectorAll('.fade-in').forEach(el => fallbackObserver.observe(el));
});
</script>
</body>
</html>