-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathledger-testnet.html
More file actions
873 lines (841 loc) · 31.9 KB
/
ledger-testnet.html
File metadata and controls
873 lines (841 loc) · 31.9 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
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta content="width=device-width, initial-scale=1.0, maximum-scale=5.0, viewport-fit=cover" name="viewport"/>
<title>TruthWeb Ledger Testnet | Transparent Profit Tracking</title>
<!-- TailwindCSS CDN -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Font Awesome CDN (v6.5.1 for consistency with index) -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" rel="stylesheet"/>
<!-- Google Fonts: Poppins -->
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap" rel="stylesheet"/>
<style>
:root {
--primary-color: #000000;
--secondary-color: #FFFFFF;
--highlight-color: #CCCCCC;
--text-color: #FFFFFF;
--button-bg-color: #000000;
--button-text-color: #FFFFFF;
--button-hover-bg-color: #FFFFFF;
--button-hover-text-color: #000000;
--background-color: #FFFFFF;
--pi-gold: #FFD700;
}
body {
background: var(--background-color);
color: var(--primary-color);
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 0;
overflow-x: hidden;
line-height: 1.6;
padding-bottom: 60px; /* Space for footer menu */
}
/* Header (X-Style with Hide/Show) */
.sticky-header {
position: fixed;
top: 0;
width: 100%;
z-index: 1000;
background: var(--primary-color);
color: var(--text-color);
transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 1rem;
height: 64px;
animation: slideInHeader 0.5s ease-out forwards;
}
.sticky-header.hidden {
transform: translateY(-100%);
}
.sticky-header.scrolled {
background: var(--secondary-color);
color: var(--primary-color);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
transform: scale(0.98);
}
@keyframes slideInHeader {
from { transform: translateY(-100%); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.sticky-header .logo-text {
font-size: 1.5rem;
font-weight: 700;
transition: font-size 0.3s ease;
}
.sticky-header.scrolled .logo-text { font-size: 1.25rem; }
.burger-btn {
cursor: pointer;
flex-direction: column;
justify-content: center;
width: 30px;
height: 30px;
margin-left: 0.5rem;
transition: transform 0.3s ease;
}
.burger-btn:hover { transform: scale(1.1); }
.burger-btn span {
width: 100%;
height: 3px;
background: var(--text-color);
margin: 2px 0;
transition: all 0.3s ease;
transform-origin: center;
}
.burger-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger-btn.open span:nth-child(2) { opacity: 0; transform: scale(0); }
.burger-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu {
position: fixed;
top: 64px;
left: -100%;
width: 80%;
max-width: 300px;
height: calc(100vh - 64px);
background: var(--primary-color);
color: var(--text-color);
transition: left 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
z-index: 999;
padding: 1rem;
animation: fadeInMenu 0.4s ease-out forwards;
}
.mobile-menu.open { left: 0; }
@keyframes fadeInMenu {
from { opacity: 0; }
to { opacity: 1; }
}
.mobile-menu ul { list-style: none; padding: 0; }
.mobile-menu .nav-item a {
display: block;
padding: 0.75rem;
color: var(--text-color);
font-size: 1.1rem;
transition: all 0.3s ease;
}
.mobile-menu .nav-item a:hover {
color: var(--highlight-color);
transform: translateX(10px) scale(1.05);
}
.desktop-nav { display: flex; }
.desktop-nav .nav-item a {
color: var(--text-color);
padding: 0.5rem 1rem;
transition: all 0.3s ease;
}
.desktop-nav .nav-item a:hover {
color: var(--highlight-color);
transform: scale(1.1);
}
.desktop-nav .nav-item a.active {
font-weight: 700;
border-bottom: 2px solid var(--highlight-color);
}
.search-container {
position: relative;
flex-grow: 1;
max-width: 400px;
margin: 0 1rem;
transition: all 0.3s ease;
}
.search-input {
width: 100%;
padding: 0.5rem 2.5rem 0.5rem 1rem;
border: 1px solid var(--highlight-color);
border-radius: 9999px;
background: var(--secondary-color);
color: var(--primary-color);
font-size: 1rem;
outline: none;
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.search-input:focus {
border-color: var(--primary-color);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
transform: scale(1.02) translateY(-2px);
}
.search-icon {
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
color: var(--primary-color);
font-size: 1.2rem;
transition: transform 0.3s ease;
}
.search-input:focus + .search-icon { transform: translateY(-50%) scale(1.1); }
.search-results {
position: absolute;
top: 100%;
left: 0;
width: 100%;
max-height: 300px;
overflow-y: auto;
background: var(--secondary-color);
border: 1px solid var(--highlight-color);
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
z-index: 60;
display: none;
animation: dropIn 0.3s ease-out forwards;
}
.search-results.active { display: block; }
@keyframes dropIn {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}
.search-result-item {
padding: 0.75rem;
color: var(--primary-color);
border-bottom: 1px solid var(--highlight-color);
cursor: pointer;
transition: background 0.3s ease, transform 0.2s ease;
}
.search-result-item:hover {
background: var(--highlight-color);
transform: scale(1.02);
}
.icon {
color: var(--text-color);
font-size: 1.25rem;
transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
margin-left: 0.75rem;
}
.icon:hover {
transform: scale(1.15) rotate(5deg);
}
main { margin-top: 64px; }
.ledger-section {
background: var(--primary-color);
min-height: 100vh;
padding: 4rem 1rem;
position: relative;
overflow: hidden;
border-top: 4px solid var(--highlight-color);
}
.ledger-section::after {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: radial-gradient(circle, rgba(204, 204, 204, 0.2), transparent);
opacity: 0.5;
z-index: 0;
}
.ledger-content {
position: relative;
z-index: 1;
max-width: 1200px;
margin: 0 auto;
display: flex;
flex-direction: column;
align-items: center;
}
h1 {
color: var(--text-color);
font-size: 3rem;
font-weight: 700;
text-align: center;
text-shadow: 0 0 10px var(--highlight-color);
animation: glow 2s infinite alternate;
margin-bottom: 1.5rem;
}
@keyframes glow {
0% { text-shadow: 0 0 10px var(--highlight-color); }
100% { text-shadow: 0 0 20px var(--highlight-color); }
}
.testnet-notice {
color: var(--pi-gold);
font-size: 1.2rem;
text-align: center;
margin: 1rem 0;
background: rgba(0, 0, 0, 0.8);
padding: 0.5rem 1rem;
border-radius: 5px;
max-width: 90%;
}
.ledger-card {
background: rgba(255, 255, 255, 0.1);
border: 1px solid var(--highlight-color);
border-radius: 15px;
padding: 2rem;
margin: 1rem 0;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
transition: transform 0.3s ease, box-shadow 0.3s ease;
animation: slideInCard 0.5s ease-out forwards;
width: 100%;
max-width: 800px;
}
.ledger-card:hover {
transform: translateY(-5px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
@keyframes slideInCard {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.ledger-title {
color: var(--pi-gold);
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 1rem;
}
.ledger-value {
color: var(--text-color);
font-size: 2rem;
font-weight: 700;
text-shadow: 0 0 5px var(--highlight-color);
}
.transaction-list {
max-height: 400px;
overflow-y: auto;
background: rgba(0, 0, 0, 0.8);
border: 1px solid var(--highlight-color);
border-radius: 10px;
padding: 1rem;
}
.transaction-item {
display: flex;
justify-content: space-between;
padding: 0.5rem;
border-bottom: 1px solid var(--highlight-color);
color: var(--text-color);
font-size: 1rem;
animation: slideIn 0.5s ease-in-out;
}
@keyframes slideIn {
from { opacity: 0; transform: translateX(-20px); }
to { opacity: 1; transform: translateX(0); }
}
.bot-ledger {
position: relative;
width: 100px;
height: 120px;
margin: 2rem 0; /* Increased margin for more space */
transition: transform 0.5s ease;
z-index: 5;
cursor: pointer;
}
.bot-body {
width: 80px;
height: 80px;
background: #999;
border-radius: 10px;
position: relative;
top: 20px;
left: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.bot-head {
width: 60px;
height: 40px;
background: #777;
border-radius: 5px;
position: absolute;
top: -20px;
left: 10px;
}
.bot-eyes {
display: flex;
justify-content: space-around;
padding: 10px;
}
.eye {
width: 15px;
height: 15px;
background: #fff;
border-radius: 50%;
}
.bot-wheels {
display: flex;
justify-content: space-between;
position: absolute;
bottom: -10px;
width: 100%;
}
.wheel {
width: 20px;
height: 20px;
background: #555;
border-radius: 50%;
}
.activity-text {
position: absolute;
top: -45px; /* Adjusted for more space */
left: 50%;
transform: translateX(-50%);
background: rgba(0, 0, 0, 0.9);
color: var(--pi-gold);
padding: 8px 16px; /* Increased padding for better readability */
border-radius: 6px;
font-size: 14px;
white-space: nowrap;
line-height: 1.2; /* Ensures text isn’t squished */
}
.chart-container {
width: 100%;
max-width: 600px;
margin: 1rem auto;
display: flex;
justify-content: space-around;
align-items: flex-end;
height: 200px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid var(--highlight-color);
border-radius: 10px;
padding: 1rem;
}
.chart-bar {
width: 20%;
background: var(--pi-gold);
border-radius: 5px;
transition: height 1s ease;
position: relative;
}
.chart-bar span {
position: absolute;
top: -25px;
left: 50%;
transform: translateX(-50%);
color: var(--text-color);
font-size: 0.9rem;
}
/* Responsive Video Embed */
.video-container {
position: relative;
width: 100%;
max-width: 800px;
margin: 2rem auto;
padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
height: 0;
overflow: hidden;
}
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 0;
}
/* Footer Menu (Fixed, Mobile-Only) */
.footer-menu {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 60px;
background: var(--primary-color);
color: var(--text-color);
display: flex;
justify-content: space-around;
align-items: center;
z-index: 1000;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
transition: transform 0.3s ease;
animation: slideInFooter 0.5s ease-out forwards;
}
.footer-menu.hidden {
transform: translateY(100%);
}
@keyframes slideInFooter {
from { transform: translateY(100%); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.footer-menu a {
color: var(--text-color);
font-size: 1.5rem;
transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.footer-menu a:hover {
transform: scale(1.2);
}
/* Footer Navigation (Traditional Footer, All Devices) */
footer {
background: var(--primary-color);
color: var(--text-color);
text-align: center;
padding: 2rem 1rem;
position: relative;
z-index: 10;
border-top: 4px solid var(--highlight-color);
}
footer .social-icons a, footer .footer-links a {
color: var(--text-color);
transition: color 0.3s ease, transform 0.3s ease;
}
footer .social-icons a:hover, footer .footer-links a:hover {
color: var(--highlight-color);
transform: scale(1.1);
}
footer .social-icons {
margin-bottom: 1rem;
}
footer .social-icons a {
font-size: 1.25rem;
margin: 0 0.5rem;
}
footer .footer-links a {
margin: 0 0.5rem;
text-decoration: none;
}
/* Responsive Design */
@media (max-width: 640px) {
.burger-btn { display: flex; }
.desktop-nav { display: none; }
.search-container { max-width: 120px; margin: 0 0.5rem; }
.sticky-header { padding: 0 0.5rem; }
.logo-text { font-size: 1.25rem; }
.icon { font-size: 1.1rem; margin-left: 0.5rem; }
h1 { font-size: 1.75rem; margin-bottom: 1rem; }
.ledger-title { font-size: 1.25rem; }
.ledger-value { font-size: 1.5rem; }
.chart-container { height: 150px; }
.transaction-list { max-height: 300px; }
.bot-ledger { transform: scale(0.8); margin: 1.5rem 0; }
.activity-text { font-size: 12px; padding: 6px 12px; top: -40px; }
footer { padding-bottom: 80px; }
footer .social-icons a, footer .footer-links a { font-size: 0.9rem; }
}
@media (min-width: 641px) and (max-width: 1024px) {
.burger-btn { display: none; }
.desktop-nav { display: flex; }
.search-container { max-width: 300px; }
h1 { font-size: 2.5rem; }
.ledger-title { font-size: 1.5rem; }
.ledger-value { font-size: 1.75rem; }
.chart-container { height: 180px; }
.footer-menu { display: none; }
footer .social-icons a, footer .footer-links a { font-size: 1rem; }
}
@media (min-width: 1025px) {
.burger-btn { display: none; }
.desktop-nav { display: flex; }
.search-container { max-width: 400px; }
h1 { font-size: 3rem; }
.ledger-title { font-size: 1.5rem; }
.ledger-value { font-size: 2rem; }
.footer-menu { display: none; }
footer .social-icons a, footer .footer-links a { font-size: 1rem; }
}
</style>
</head>
<body>
<!-- Header with X-Style Hide/Show -->
<header class="sticky-header">
<div class="flex items-center">
<a href="index.html" class="text-inherit flex items-center">
<span class="logo-text ml-2">TruthWeb</span>
</a>
</div>
<div class="search-container">
<input type="text" class="search-input" placeholder="Search TruthWeb..." aria-label="Search TruthWeb">
<i class="fas fa-search search-icon"></i>
<div class="search-results"></div>
</div>
<div class="flex items-center">
<nav class="desktop-nav hidden md:flex items-center">
<ul class="flex space-x-4">
<li class="nav-item"><a href="index.html">Home</a></li>
<li class="nav-item"><a href="marketplace.html">Marketplace</a></li>
<li class="nav-item"><a href="profile.html">Profile</a></li>
<li class="nav-item"><a href="walletdashboard.html">Wallet</a></li>
<li class="nav-item"><a href="ledger-testnet.html" class="active">Ledger Testnet</a></li>
<li class="nav-item"><a href="community.html">Community</a></li>
<li class="nav-item"><a href="developers.html">Developers</a></li>
<li class="nav-item"><a href="about.html">About</a></li>
</ul>
</nav>
<a href="marketplace.html" class="icon"><i class="fas fa-shopping-cart"></i></a>
<a href="profile.html" class="icon"><i class="fas fa-user"></i></a>
<a href="walletdashboard.html" class="icon"><i class="fas fa-wallet"></i></a>
<div class="burger-btn">
<span></span>
<span></span>
<span></span>
</div>
</div>
</header>
<!-- Mobile Menu -->
<nav class="mobile-menu">
<ul>
<li class="nav-item"><a href="index.html">Home</a></li>
<li class="nav-item"><a href="marketplace.html">Marketplace</a></li>
<li class="nav-item"><a href="profile.html">Profile</a></li>
<li class="nav-item"><a href="walletdashboard.html">Wallet</a></li>
<li class="nav-item"><a href="ledger-testnet.html" class="active">Ledger Testnet</a></li>
<li class="nav-item"><a href="community.html">Community</a></li>
<li class="nav-item"><a href="developers.html">Developers</a></li>
<li class="nav-item"><a href="about.html">About</a></li>
</ul>
</nav>
<!-- Main Content -->
<main>
<!-- Ledger Section -->
<section class="ledger-section">
<div class="ledger-content">
<h1>TruthWeb Ledger Testnet - Pi Flow Bonanza!</h1>
<!-- TruthWeb Bot Positioned Top Center -->
<div id="ledger-bot" class="bot-ledger">
<div class="activity-text" id="bot-activity">Analyzing hash transactions...</div>
<div class="bot-body">
<div class="bot-head">
<div class="bot-eyes">
<div class="eye"></div>
<div class="eye"></div>
</div>
</div>
<div class="bot-wheels">
<div class="wheel"></div>
<div class="wheel"></div>
</div>
</div>
</div>
<p class="testnet-notice">TESTNET MODE: This is a simulation, not an official wallet or balance!</p>
<p class="text-center text-[var(--highlight-color)] text-xl mt-4">All funds & profits tracked on the Pi Network Blockchain (Testnet)</p>
<!-- Platform Earnings -->
<div class="ledger-card">
<h2 class="ledger-title">Platform Earnings (Real-Time Testnet)</h2>
<div class="ledger-value" id="platform-earnings">0.00 PI</div>
<p class="text-[var(--highlight-color)]">Escrow Fees: <span id="escrow-fees">0.00 PI</span></p>
<p class="text-[var(--highlight-color)]">Buy/Sell Fees: <span id="buy-sell-fees">0.00 PI</span></p>
</div>
<!-- Your Wallet Balance -->
<div class="ledger-card">
<h2 class="ledger-title">Your Wallet Balance (Testnet)</h2>
<div class="ledger-value" id="wallet-balance">0.00 PI</div>
<p class="text-[var(--highlight-color)]">Pi Network Testnet Hash: <span id="wallet-hash">Loading...</span></p>
</div>
<!-- Transaction History -->
<div class="ledger-card">
<h2 class="ledger-title">Transaction History (Testnet)</h2>
<div class="transaction-list" id="transaction-list">
<!-- Transactions will be dynamically added here -->
</div>
</div>
<!-- Profit Breakdown -->
<div class="ledger-card">
<h2 class="ledger-title">Profit Breakdown</h2>
<div class="chart-container">
<div class="chart-bar" id="escrow-bar"><span>Escrow: 0 PI</span></div>
<div class="chart-bar" id="buy-sell-bar"><span>Buy/Sell: 0 PI</span></div>
<div class="chart-bar" id="other-bar"><span>Other: 0 PI</span></div>
</div>
</div>
<!-- Embedded YouTube Video -->
<div class="video-container">
<iframe src="https://www.youtube.com/embed/hX0qouTlZdM?si=IESIPRJibB71q7hu" title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>
</div>
</section>
</main>
<!-- Footer Menu (Fixed, Mobile-Only) -->
<nav class="footer-menu" role="navigation" aria-label="Mobile Footer Navigation">
<a href="index.html"><i class="fas fa-home"></i></a>
<a href="marketplace.html"><i class="fas fa-shopping-cart"></i></a>
<a href="profile.html"><i class="fas fa-user"></i></a>
<a href="walletdashboard.html"><i class="fas fa-wallet"></i></a>
<a href="community.html"><i class="fas fa-users"></i></a>
</nav>
<!-- Footer Navigation (Traditional Footer, All Devices) -->
<footer role="contentinfo">
<div class="social-icons mb-4">
<a href="https://www.facebook.com/reimaginetruthofficial/" target="_blank" aria-label="Facebook"><i class="fab fa-facebook-f"></i></a>
<a href="https://x.com/reimagine_truth" target="_blank" aria-label="Twitter"><i class="fab fa-twitter"></i></a>
<a href="https://t.me/TruthWebOfficial" target="_blank" aria-label="Telegram"><i class="fab fa-telegram"></i></a>
<a href="https://www.youtube.com/@ReimagineTruth" target="_blank" aria-label="YouTube"><i class="fab fa-youtube"></i></a>
<a href="https://github.com/username/TruthWeb" target="_blank" aria-label="GitHub"><i class="fab fa-github"></i></a>
</div>
<p class="text-sm mb-2">© 2025 TruthWeb. All rights reserved.</p>
<div class="footer-links text-sm">
<a href="about.html">About</a> |
<a href="terms.html">Terms</a> |
<a href="privacy.html">Privacy</a> |
<a href="contact.html">Contact</a>
</div>
</footer>
<!-- Scripts -->
<script>
// Device Detection and Dynamic Adjustments
function adjustLayout() {
const width = window.innerWidth;
const isMobile = width <= 640;
const isTablet = width > 640 && width <= 1024;
const isDesktop = width > 1024;
const burgerBtn = document.querySelector('.burger-btn');
const desktopNav = document.querySelector('.desktop-nav');
const searchContainer = document.querySelector('.search-container');
if (isMobile) {
burgerBtn.style.display = 'flex';
desktopNav.style.display = 'none';
searchContainer.style.maxWidth = '120px';
} else if (isTablet) {
burgerBtn.style.display = 'none';
desktopNav.style.display = 'flex';
searchContainer.style.maxWidth = '300px';
} else if (isDesktop) {
burgerBtn.style.display = 'none';
desktopNav.style.display = 'flex';
searchContainer.style.maxWidth = '400px';
}
}
window.addEventListener('load', adjustLayout);
window.addEventListener('resize', adjustLayout);
// Header and Footer Scroll Hide/Show Effect (X-Style)
let lastScroll = 0;
window.addEventListener('scroll', () => {
const header = document.querySelector('.sticky-header');
const footerMenu = document.querySelector('.footer-menu');
const currentScroll = window.scrollY;
if (currentScroll > lastScroll && currentScroll > 50) {
header.classList.add('hidden');
footerMenu.classList.add('hidden');
} else if (currentScroll < lastScroll) {
header.classList.remove('hidden');
footerMenu.classList.remove('hidden');
header.classList.toggle('scrolled', currentScroll > 50);
}
lastScroll = currentScroll;
});
// Burger Menu Toggle
const burgerBtn = document.querySelector('.burger-btn');
const mobileMenu = document.querySelector('.mobile-menu');
burgerBtn.addEventListener('click', () => {
burgerBtn.classList.toggle('open');
mobileMenu.classList.toggle('open');
});
// Close Menu on Link Click
document.querySelectorAll('.mobile-menu a').forEach(link => {
link.addEventListener('click', () => {
burgerBtn.classList.remove('open');
mobileMenu.classList.remove('open');
});
});
// Search Functionality
const searchInput = document.querySelector('.search-input');
const searchResults = document.querySelector('.search-results');
const searchableContent = [];
document.querySelectorAll('h1, h2, p, span').forEach(element => {
const text = element.textContent.trim();
if (text) {
searchableContent.push({
text: text.toLowerCase(),
element,
href: element.tagName === 'A' ? element.getAttribute('href') : null
});
}
});
searchInput.addEventListener('input', (e) => {
const query = e.target.value.toLowerCase().trim();
searchResults.innerHTML = '';
searchResults.classList.remove('active');
if (query.length > 0) {
const results = searchableContent.filter(item => item.text.includes(query));
if (results.length > 0) {
results.forEach(result => {
const div = document.createElement('div');
div.classList.add('search-result-item');
div.textContent = result.text.slice(0, 50) + (result.text.length > 50 ? '...' : '');
div.addEventListener('click', () => {
if (result.href) window.location.href = result.href;
else result.element.scrollIntoView({ behavior: 'smooth' });
searchResults.classList.remove('active');
searchInput.value = '';
});
searchResults.appendChild(div);
});
searchResults.classList.add('active');
} else {
const noResult = document.createElement('div');
noResult.classList.add('search-result-item');
noResult.textContent = 'No results found';
searchResults.appendChild(noResult);
searchResults.classList.add('active');
}
}
});
document.addEventListener('click', (e) => {
if (!searchInput.contains(e.target) && !searchResults.contains(e.target)) {
searchResults.classList.remove('active');
}
});
// Simulated Testnet Data
let platformEarnings = 0;
let escrowFees = 0;
let buySellFees = 0;
let otherFees = 0;
let walletBalance = 0;
const transactions = [];
// DOM Elements
const platformEarningsEl = document.getElementById('platform-earnings');
const escrowFeesEl = document.getElementById('escrow-fees');
const buySellFeesEl = document.getElementById('buy-sell-fees');
const walletBalanceEl = document.getElementById('wallet-balance');
const walletHashEl = document.getElementById('wallet-hash');
const transactionListEl = document.getElementById('transaction-list');
const escrowBar = document.getElementById('escrow-bar');
const buySellBar = document.getElementById('buy-sell-bar');
const otherBar = document.getElementById('other-bar');
const bot = document.getElementById('ledger-bot');
const botActivity = document.getElementById('bot-activity');
// Simulate Real-Time Testnet Updates
function updateLedger() {
platformEarnings += Math.random() * 0.5;
escrowFees += Math.random() * 0.2;
buySellFees += Math.random() * 0.3;
otherFees += Math.random() * 0.1;
walletBalance += Math.random() * 0.1;
platformEarningsEl.textContent = platformEarnings.toFixed(2) + ' PI';
escrowFeesEl.textContent = escrowFees.toFixed(2) + ' PI';
buySellFeesEl.textContent = buySellFees.toFixed(2) + ' PI';
walletBalanceEl.textContent = walletBalance.toFixed(2) + ' PI';
walletHashEl.textContent = '0x' + Math.random().toString(16).substr(2, 8);
const total = escrowFees + buySellFees + otherFees || 1; // Avoid division by zero
escrowBar.style.height = `${(escrowFees / total) * 180 || 10}px`;
buySellBar.style.height = `${(buySellFees / total) * 180 || 10}px`;
otherBar.style.height = `${(otherFees / total) * 180 || 10}px`;
escrowBar.querySelector('span').textContent = `Escrow: ${escrowFees.toFixed(2)} PI`;
buySellBar.querySelector('span').textContent = `Buy/Sell: ${buySellFees.toFixed(2)} PI`;
otherBar.querySelector('span').textContent = `Other: ${otherFees.toFixed(2)} PI`;
const types = ['Escrow Fee', 'Buy Fee', 'Sell Fee', 'Deposit'];
const type = types[Math.floor(Math.random() * types.length)];
const amount = (Math.random() * 5).toFixed(2);
const txHash = '0x' + Math.random().toString(16).substr(2, 8);
const time = new Date().toLocaleTimeString();
transactions.unshift({ type, amount, txHash, time });
transactionListEl.innerHTML = transactions.slice(0, 10).map(tx => `
<div class="transaction-item">
<span>${tx.type}: ${tx.amount} PI</span>
<span>${tx.txHash} - ${tx.time}</span>
</div>
`).join('');
}
// Bot Movement and Activity
const activities = [
'Analyzing hash transactions...', 'Verifying test hashes...', 'Processing test PI...', 'Scanning blockchain testnet...'
];
function moveBot() {
const wiggleX = (Math.random() * 10 - 5);
const wiggleY = (Math.random() * 10 - 5);
bot.style.transform = `translate(${wiggleX}px, ${wiggleY}px)`;
botActivity.textContent = activities[Math.floor(Math.random() * activities.length)];
}
// Initial Update and Intervals
updateLedger();
moveBot();
setInterval(updateLedger, 3000);
setInterval(moveBot, 2000);
// Bot Click Interaction
bot.addEventListener('click', () => {
botActivity.textContent = 'Woof! Hash analyzed!';
setTimeout(moveBot, 1000);
});
</script>
</body>
</html>