-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinfographic.html
More file actions
1463 lines (1376 loc) · 84.9 KB
/
Copy pathinfographic.html
File metadata and controls
1463 lines (1376 loc) · 84.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
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en" class="scroll-smooth">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Stealth Automation Infographic</title>
<!-- Meta Tags for SEO + Twitter previews (Point 5) -->
<meta name="description" content="Explore the stealth engine powering FarmLabs: Human-like transaction automation, persona simulation, and fingerprint evasion.">
<meta property="og:title" content="FarmLabs Stealth Engine Infographic" />
<meta property="og:image" content="https://d.cess.network/n1/1075188011.png" />
<meta property="og:description" content="A visual breakdown of advanced stealth farming mechanics for Web3 and testnet bots." />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="FarmLabs Stealth Engine Infographic" />
<meta name="twitter:description" content="A visual breakdown of advanced stealth farming mechanics for Web3 and testnet bots." />
<meta name="twitter:image" content="https://d.cess.network/n1/1075188011.png" />
<!-- End Meta Tags -->
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ethers/6.7.0/ethers.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.2/dist/chart.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/qrcodejs@1.0.0/qrcode.min.js"></script>
<script src="https://cdn.plot.ly/plotly-2.32.0.min.js"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap" rel="stylesheet">
<!-- Font Awesome for social media icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<style>
/* Base styles for the entire page, aligned with the main console's theme */
body {
font-family: 'Inter', sans-serif;
background-color: #f4f1eb; /* Warm Beige */
color: #212529; /* Dark Gray for main text */
}
/* Color palette variables for consistency */
:root {
--primary-bg: #f4f1eb;
--secondary-bg: #ffffff;
--main-text: #2d3748; /* Slate 800 */
--accent-text: #4a5568; /* Slate 600 */
--border-color: #e2e8f0; /* Slate 200 */
--blue-accent: #3b82f6; /* Tailwind blue-500 */
--blue-dark: #0077B6; /* Darker blue for titles/arrows */
--chart-cyan: #00B4D8; /* For charts, from original infographic */
--chart-magenta: #f472b6; /* For charts, from original infographic */
--chart-yellow: #fcd34d; /* For charts, from original infographic */
}
.bg-primary { background-color: var(--primary-bg); }
.bg-secondary { background-color: var(--secondary-bg); }
.text-main { color: var(--main-text); }
.text-accent { color: var(--accent-text); }
.border-accent { border-color: var(--border-color); }
/* Dark mode styles */
html.dark {
--primary-bg: #1a202c; /* Dark background */
--secondary-bg: #2d3748;
--main-text: #e2e8f0; /* Light text */
--accent-text: #a0aec0;
--blue-accent: #60a5fa;
--blue-dark: #3b82f6;
--border-color: #4a5568;
--chart-cyan: #00B4D8;
--chart-magenta: #f472b6;
--chart-yellow: #fcd34d;
}
html.dark body {
background-color: var(--primary-bg);
color: var(--main-text);
}
/* Navigation link styles - Removed active class styling */
.nav-link {
transition: all 0.3s ease;
border-bottom: 2px solid transparent;
}
/* Removed hover background and color for nav-link and submenu-toggle */
.nav-link:hover {
/* Removed color and border-bottom-color to remove highlight */
}
/* Infographic specific styles */
#infographic-content {
background-color: var(--secondary-bg); /* Use secondary-bg for content sections */
color: var(--main-text);
}
.chart-container {
position: relative;
width: 100%;
margin-left: auto;
margin-right: auto;
max-width: 600px;
height: 320px; /* Default height */
/* Add transition for dark mode colors (Point 4) */
transition: background-color 0.3s ease, border-color 0.3s ease;
}
@media (min-width: 768px) {
.chart-container {
height: 400px; /* Larger height on desktop */
}
}
.kpi-card {
background-color: var(--secondary-bg);
border-radius: 0.75rem;
padding: 1.5rem;
text-align: center;
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
transition: transform 0.3s, box-shadow 0.3s;
}
.kpi-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.flowchart-step {
border: 2px solid var(--blue-accent); /* Use primary blue for steps */
background-color: var(--secondary-bg);
border-radius: 0.75rem;
padding: 0.75rem 1rem;
font-weight: 600;
min-height: 60px;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.flowchart-arrow {
color: var(--blue-dark); /* Darker blue for arrows */
font-size: 2rem;
line-height: 1;
transform: rotate(90deg); /* Default for mobile */
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
}
@media (min-width: 1024px) {
.flowchart-arrow {
transform: rotate(0deg); /* Horizontal for desktop */
}
.flowchart-arrow-container {
margin: 0 1rem; /* Spacing for horizontal layout */
}
}
/* Section titles */
.section-title {
text-align: center;
font-size: 2.25rem; /* text-4xl */
line-height: 2.5rem; /* leading-10 */
font-weight: 800; /* font-extrabold */
margin-bottom: 3rem; /* mb-12 */
color: var(--blue-dark);
}
@media (min-width: 768px) {
.section-title {
font-size: 3rem; /* md:text-5xl */
line-height: 1;
}
}
/* Specific colors for infographic charts, mapped to the overall theme */
.text-infographic-cyan { color: var(--chart-cyan); }
.text-infographic-magenta { color: var(--chart-magenta); }
.text-infographic-yellow { color: var(--chart-yellow); }
.bg-infographic-cyan { background-color: var(--chart-cyan); }
.bg-infographic-magenta { background-color: var(--chart-magenta); }
/* Modal styles for QR code */
.modal {
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.6);
display: flex;
align-items: center;
justify-content: center;
}
.modal-content {
background-color: var(--secondary-bg);
padding: 20px;
border-radius: 8px;
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
max-width: 90%;
width: 350px;
}
.close-qr-button {
color: #aaa;
font-size: 28px;
font-weight: bold;
cursor: pointer;
}
.close-qr-button:hover,
.close-qr-button:focus {
color: #000;
text-decoration: none;
cursor: pointer;
}
html.dark .close-qr-button:hover, html.dark .close-qr-button:focus {
color: var(--main-text);
}
/* Sidebar Styles */
#sidebar {
position: fixed;
top: 0;
left: 0;
height: 100vh;
width: 80px; /* Collapsed width */
background-color: var(--secondary-bg);
color: var(--main-text);
padding-top: 1rem;
transition: width 0.3s ease-in-out;
z-index: 50;
box-shadow: 2px 0 5px rgba(0,0,0,0.1);
overflow-x: hidden;
border-right: 1px solid var(--border-color);
}
html.dark #sidebar {
background-color: var(--secondary-bg);
color: var(--main-text);
border-right: 1px solid var(--border-color);
}
#sidebar:hover {
width: 250px; /* Expanded width */
}
#sidebar .logo-container {
transition: justify-content 0.3s ease-in-out;
}
#sidebar:hover .logo-container {
justify-content: flex-start;
}
#sidebar .nav-link, #sidebar .submenu-toggle {
display: flex;
align-items: center;
justify-content: center;
padding: 1rem 1.5rem;
color: var(--accent-text);
font-weight: 600;
text-decoration: none;
transition: justify-content 0.3s ease-in-out; /* Only transition justify-content */
white-space: nowrap;
cursor: pointer;
}
html.dark #sidebar .nav-link, html.dark #sidebar .submenu-toggle {
color: var(--accent-text);
}
/* Removed hover background and color for nav-link and submenu-toggle */
#sidebar:hover .nav-link, #sidebar:hover .submenu-toggle {
justify-content: flex-start;
}
#sidebar .nav-link i, #sidebar .submenu-toggle i {
min-width: 24px;
text-align: center;
font-size: 1.25rem;
}
#sidebar .nav-text {
opacity: 0;
max-width: 0;
overflow: hidden;
white-space: nowrap;
margin-left: 0;
transition: opacity 0.2s ease-in-out, max-width 0.3s ease-in-out, margin-left 0.3s ease-in-out;
transition-delay: 0.1s;
}
#sidebar:hover .nav-text {
opacity: 1;
max-width: 200px;
margin-left: 0.75rem;
}
/* Submenu styles - These styles are no longer strictly needed for 'Documentation' but kept for other potential submenus */
.submenu {
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease-in-out;
background-color: #f8fafc; /* Slightly different bg for submenu */
}
html.dark .submenu {
background-color: #1f2937;
}
.submenu.open {
max-height: 500px; /* Large enough to show all items */
}
.submenu .nav-link {
padding-left: 3.5rem; /* Indent submenu items */
font-weight: 500;
font-size: 0.9rem;
}
.submenu-toggle .fa-chevron-down {
margin-left: auto;
transition: transform 0.3s ease;
}
.rotate-180 {
transform: rotate(180deg);
}
/* Styles for the content wrapper */
#content-wrapper {
margin-left: 80px; /* Initial margin for collapsed sidebar */
transition: margin-left 0.3s ease-in-out;
}
/* Dynamically adjust margin-left when sidebar expands */
#sidebar:hover ~ #content-wrapper {
margin-left: 250px; /* Expanded width */
}
</style>
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
</head>
<body class="bg-primary text-main">
<!-- Google AdSense Script (Recommended right after <body> tag) -->
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3062851685354753"
crossorigin="anonymous"></script>
<!-- Sidebar Navigation -->
<div id="sidebar">
<div class="p-4 mt-8 flex items-center justify-center logo-container">
<img src="https://d.cess.network/n1/1075188011.png" alt="FarmLabs Logo" class="h-10 w-10 rounded-full">
<h2 class="text-xl font-bold nav-text">FarmLabs</h2>
</div>
<nav class="flex flex-col mt-4">
<a href="index.html" class="nav-link"><i class="fas fa-home"></i><span class="nav-text">Home</span></a>
<a href="basic.html" class="nav-link"><i class="fas fa-terminal"></i><span class="nav-text">Basic Console</span></a>
<a href="advance.html" class="nav-link"><i class="fas fa-tools"></i><span class="nav-text">Advance Console</span></a>
<hr class="border-gray-300 dark:border-gray-600 my-2 mx-4">
<a href="infographic.html" class="nav-link"><i class="fas fa-chart-pie"></i><span class="nav-text">Infographic</span></a>
<!-- Documentation Link (No Dropdown) -->
<a href="Doc.html" class="nav-link">
<i class="fas fa-file-alt"></i>
<span class="nav-text">Documentation</span>
</a>
</nav>
</div>
<!-- Content Wrapper -->
<div id="content-wrapper">
<header class="bg-secondary shadow-md sticky top-0 z-20">
<div class="container mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex items-center justify-between h-16">
<div class="flex items-center">
<!-- Header Title -->
<h1 class="text-xl md:text-2xl font-bold text-main ml-4">Stealth Automation Infographic</h1>
</div>
<!-- Right-side icons -->
<div class="flex items-center space-x-4">
<a href="https://farm-labs.blogspot.com/" target="_blank" rel="noopener noreferrer" class="text-accent hover:text-blue-500" title="Farm Labs Blog">
<i class="fab fa-blogger text-xl"></i>
</a>
<a href="https://t.me/farm_lab" target="_blank" rel="noopener noreferrer" class="text-accent hover:text-blue-500" title="Farm Lab Telegram">
<i class="fab fa-telegram text-xl"></i>
</a>
<a href="https://github.com/CryptoExplor/farmlabs" target="_blank" rel="noopener noreferrer" class="text-accent hover:text-blue-500" title="Farm Labs GitHub">
<i class="fab fa-github text-xl"></i>
</a>
<button id="dark-toggle" class="p-2 rounded-md hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors" title="Toggle Dark Mode">
<i class="fas fa-moon text-xl dark:text-yellow-300" id="theme-toggle-icon"></i>
</button>
</div>
</div>
</div>
</header>
<main class="container mx-auto p-4 sm:p-6 lg:p-8">
<h2 class="text-3xl md:text-4xl font-extrabold text-center mb-6" style="color: var(--blue-dark);">Farm smarter, not harder — with FarmLabs.</h2>
<div id="infographic-content">
<!-- Section 1: Introduction & Hook (Combined from both) -->
<section id="infographic-overview" class="text-center my-12 md:my-16 bg-secondary rounded-xl shadow-lg p-6 md:p-8">
<h2 class="section-title">The Blueprint of Human-like Automation</h2>
<p class="text-lg md:text-xl text-gray-600 max-w-3xl mx-auto mb-12">
A deep dive into a client-side tool designed to automate blockchain interactions for Researchers, Developers, Protocol testing, testnet farmers and airdrop eligibility , with a focus on simulating organic, human-like activity.
</p>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8 max-w-4xl mx-auto">
<div class="kpi-card">
<span class="text-5xl font-bold block mb-2" style="color: var(--chart-cyan);">5</span>
<h3 class="text-xl font-semibold text-gray-700">Recipient Modes</h3>
<p class="text-gray-500 mt-2">From dynamic address pools to self-interaction, offering diverse targeting strategies.</p>
</div>
<div class="kpi-card">
<span class="text-5xl font-bold block mb-2" style="color: var(--chart-cyan);">5+</span>
<h3 class="text-xl font-semibold text-gray-700">Randomization Factors</h3>
<p class="text-gray-500 mt-2">Simulates human behavior by randomizing amounts, delays, wallets, chains, and gas fees.</p>
</div>
<div class="kpi-card">
<span class="text-5xl font-bold block mb-2" style="color: var(--chart-cyan);">∞</span>
<h3 class="text-xl font-semibold text-gray-700">Supported Wallets</h3>
<p class="text-gray-500 mt-2">Load an unlimited number of private keys to scale your operations effortlessly.</p>
</div>
</div>
</section>
<!-- Section 2: The Core Engine (Combined from both) -->
<section id="infographic-how-it-works" class="my-16 md:my-24 bg-secondary rounded-xl shadow-lg p-6 md:p-8">
<h2 class="section-title">The Core Engine: How It Works</h2>
<p class="text-lg text-center text-gray-600 max-w-3xl mx-auto mb-12">
The script follows a logical, configurable flow to execute its tasks. From initialization to the final transaction, each step is designed for automation and control.
</p>
<div class="flex flex-col items-center space-y-4">
<div class="flowchart-step bg-blue-500 text-white w-full md:w-1/2">1. Connect & Load Wallets</div>
<div class="text-4xl flowchart-arrow">↓</div>
<div class="flowchart-step bg-blue-500 text-white w-full md:w-1/2">2. Configure Settings (Recipients, Delays, Amounts)</div>
<div class="text-4xl flowchart-arrow">↓</div>
<div class="flowchart-step bg-blue-500 text-white w-full md:w-1/2">3. Start Interaction Process</div>
<div class="text-4xl flowchart-arrow">↓</div>
<div class="flowchart-step p-6 w-full md:w-2/3 text-center border-dashed border-2 border-gray-300 bg-gray-50 text-gray-700">
<h4 class="font-bold text-lg mb-4">4. Execution Loop (Repeats)</h4>
<div class="flex flex-col md:flex-row items-center justify-center space-y-4 md:space-y-0 md:space-x-4">
<div class="font-semibold">Select Chain</div>
<div class="text-2xl flowchart-arrow hidden md:block">→</div>
<div class="text-2xl flowchart-arrow md:hidden">↓</div>
<div class="font-semibold">Select Wallet</div>
<div class="text-2xl flowchart-arrow hidden md:block">→</div>
<div class="text-2xl flowchart-arrow md:hidden">↓</div>
<div class="font-semibold">Choose Action</div>
<div class="text-2xl flowchart-arrow hidden md:block">→</div>
<div class="text-2xl flowchart-arrow md:hidden">↓</div>
<div class="font-semibold">Execute Tx</div>
</div>
</div>
<div class="text-4xl flowchart-arrow">↓</div>
<div class="flowchart-step bg-blue-500 text-white w-full md:w-1/2">5. Monitor via Dashboard & Logs</div>
</div>
</section>
<!-- Section 3: KPIs (From infographic-page) -->
<section id="infographic-kpis" class="my-16 md:my-24 py-12 bg-secondary rounded-xl shadow-lg">
<h2 class="section-title">Key Performance Indicators</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-12 px-8">
<div>
<h3 class="text-2xl font-semibold text-center mb-4 text-gray-800">Action Distribution</h3>
<p class="text-center text-gray-600 mb-6">
This chart shows the typical probability of the script performing a 'Send' transaction versus choosing to remain 'Idle' for an action, a key feature for simulating non-robotic behavior.
</p>
<div class="chart-container dark:bg-gray-900 rounded-lg p-4"> <!-- Added dark:bg-gray-900 (Point 4) -->
<canvas id="infographicActionDistChart"></canvas>
</div>
</div>
<div>
<h3 class="text-2xl font-semibold text-center mb-4 text-gray-800">Sample Wallet Balances (ETH)</h3>
<p class="text-center text-gray-600 mb-6">
A snapshot of balances across multiple loaded wallets. The script provides real-time updates to this data as transactions are confirmed on the network.
</p>
<div class="chart-container dark:bg-gray-900 rounded-lg p-4"> <!-- Added dark:bg-gray-900 (Point 4) -->
<canvas id="infographicWalletBalanceChart"></canvas>
</div>
</div>
</div>
</section>
<!-- Section: Deconstructing the Digital Fingerprint / Layer 1 (Combined & Enhanced) -->
<section id="infographic-fingerprinting" class="my-16 md:my-24 bg-secondary rounded-xl shadow-lg p-6 md:p-8">
<h2 class="section-title">Deconstructing the Digital Fingerprint</h2>
<p class="text-center text-gray-600 mb-8 max-w-2xl mx-auto">Platforms create a unique identity by collecting various data points from your browser and device—such as graphics capabilities, installed fonts, and system settings. This "fingerprint" is powerful because it persists even if you clear cookies. To evade detection, a script must address multiple, independent fingerprinting vectors simultaneously to create a consistent, plausible profile.</p>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8 items-center">
<div class="space-y-4">
<h3 class="text-2xl font-bold mb-4 text-infographic-cyan">Anatomy of a Fingerprint</h3>
<div class="chart-container dark:bg-gray-900 rounded-lg p-4"> <!-- Added dark:bg-gray-900 (Point 4) -->
<canvas id="infographicFingerprintChart"></canvas>
</div>
<p class="text-center text-sm text-gray-500 mt-4">A radar chart illustrates how various data points (like Canvas, WebGL, and Fonts) contribute to a user's unique digital signature. The larger the area, the more unique the user.</p>
</div>
<div class="space-y-4">
<h3 class="text-2xl font-bold mb-4 text-infographic-yellow">Crafting a Coherent Persona</h3>
<p class="text-gray-600 mb-6">Randomizing individual attributes is not enough; modern anti-bot systems detect inconsistent profiles. The key is to build a <span class="font-bold text-main">plausible but fake identity</span>. This flowchart outlines the logic for generating a believable digital persona that can evade statistical analysis.</p>
<div class="flex flex-col lg:flex-row justify-center items-stretch gap-4">
<div class="flowchart-node flex flex-col justify-center">
<span class="text-4xl">🖥️</span>
<p class="mt-2 font-semibold">1. Select Realistic Base Profile</p>
<p class="text-sm text-gray-500">(e.g., Chrome on Windows 11)</p>
</div>
<div class="flowchart-arrow-container"><div class="flowchart-arrow">↓</div></div>
<div class="flowchart-node flex flex-col justify-center">
<span class="text-4xl">🛡️</span>
<p class="mt-2 font-semibold">2. Choose Plausible Hardware</p>
<p class="text-sm text-gray-500">(e.g., Common GPU, 4 CPU Cores)</p>
</div>
<div class="flowchart-arrow-container"><div class="flowchart-arrow">↓</div></div>
<div class="flowchart-node flex flex-col justify-center">
<span class="text-4xl">🎲</span>
<p class="mt-2 font-semibold">3. Randomize Attributes Logically</p>
<p class="text-sm text-gray-500">(e.g., Add noise to Canvas, spoof fonts)</p>
</div>
<div class="flowchart-arrow-container"><div class="flowchart-arrow">↓</div></div>
<div class="flowchart-node bg-infographic-cyan text-white flex flex-col justify-center">
<span class="text-4xl">👻</span>
<p class="mt-2 font-bold">4. Output: Coherent, Spoofed Fingerprint</p>
</div>
</div>
</div>
</div>
</section>
<!-- Section: The Shifting Footprint (Proxies) (Combined & Enhanced) -->
<section id="proxies" class="my-16 md:my-24 bg-secondary rounded-xl shadow-lg p-6 md:p-8">
<h2 class="section-title">Layer 2: The Shifting Footprint (IP Rotation)</h2>
<p class="text-center text-gray-600 mb-8 max-w-2xl mx-auto">Your IP address is a primary tracker. Strategically rotating IPs through proxies is fundamental, but the type of proxy matters significantly. Routinely changing IP addresses is critical for bypassing IP-based blocking and rate limits. However, IP rotation alone is not a silver bullet. Anti-bot systems correlate IP changes with other persistent identifiers, like device fingerprints. True evasion requires a synergistic approach, combining IP masking with coherent fingerprint spoofing to present a genuinely human-like profile across multiple detection vectors.</p>
<div class="grid grid-cols-1 md:grid-cols-5 gap-8 items-center">
<div class="md:col-span-3">
<h3 class="text-xl font-semibold text-accent mb-2">Proxy Effectiveness Comparison</h3>
<p class="text-gray-600 mb-4">Residential proxies, which use real IP addresses from ISPs, are far more effective at bypassing sophisticated anti-bot systems than datacenter proxies.</p>
<div class="chart-container dark:bg-gray-900 rounded-lg p-4"> <!-- Added dark:bg-gray-900 (Point 4) -->
<canvas id="infographicProxyChart"></canvas>
</div>
<p class="text-center text-sm text-gray-500 mt-4">This chart shows the efficacy of different proxy types, highlighting why residential and mobile IPs are preferred for advanced evasion.</p>
</div>
<div class="md:col-span-2 text-center bg-main text-white p-8 rounded-lg">
<div class="text-7xl font-black" style="color: var(--chart-yellow);">95%</div>
<div class="text-2xl font-bold mt-2">Success Rate</div>
<p class="mt-4 text-gray-200">High-quality residential proxies can achieve up to a 95% success rate against advanced bot detection, making them essential for high-security targets.</p>
</div>
</div>
</section>
<!-- Section: The Humanization Engine / Layer 3 (Combined & Enhanced) -->
<section id="infographic-features" class="my-16 md:my-24 bg-secondary rounded-xl shadow-lg p-6 md:p-8">
<h2 class="section-title">The 'Humanization' Engine</h2>
<p class="text-lg text-center text-gray-600 max-w-3xl mx-auto mb-12">
To avoid being flagged as a bot, the script incorporates several layers of randomization. This engine ensures that the script's activity appears organic and unpredictable. Bots are often caught by their unnatural timing. Human reaction times follow skewed distributions, not fixed intervals. Scripts must mimic this organic inconsistency to appear genuine.
</p>
<!-- Highlight Config Options (Mini section) (Point 2) -->
<div class="bg-blue-50 border border-blue-200 rounded-lg p-6 mb-12 max-w-2xl mx-auto shadow-inner">
<h3 class="text-xl font-bold text-blue-800 mb-4 text-center">🛠️ Configurable Options:</h3>
<ul class="list-disc list-inside text-gray-700 space-y-2">
<li><span class="font-semibold">Min/Max Delay:</span> Set the minimum and maximum waiting times between actions (e.g., 10–30 seconds).</li>
<li><span class="font-semibold">Random Amount Range:</span> Define the range for randomized transaction amounts (e.g., 0.001–0.005 ETH).</li>
<li><span class="font-semibold">Wallet Persona:</span> Choose predefined user behavior profiles (e.g., "Night Owl," "Early Bird").</li>
<li><span class="font-semibold">Recipient Strategy:</span> Determine how transaction recipients are selected (e.g., dynamic pool, custom list).</li>
</ul>
</div>
<!-- End Highlight Config Options -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8 items-center">
<div class="bg-white dark:bg-gray-900 p-6 rounded-lg shadow-lg"> <!-- Added dark:bg-gray-900 (Point 4) -->
<h3 class="text-2xl font-semibold text-center mb-4 text-gray-800">Randomized Gas Payments</h3>
<p class="text-center text-gray-600 mb-6">
Instead of using a fixed gas price, the script calculates a variable fee for each transaction, staying within a user-defined multiplier of the current network average to mimic human bidding behavior.
</p>
<div class="chart-container h-80">
<canvas id="infographicGasPriceChart"></canvas>
</div>
</div>
<div class="space-y-6">
<div class="kpi-card flex items-center space-x-4">
<span class="text-4xl">⏱️</span>
<div>
<h4 class="text-xl font-bold text-left" style="color: var(--blue-dark);">Random Delays (Log-normal)</h4>
<p class="text-left text-gray-600">Waits for a random duration (e.g., 10-30 seconds) between actions, drawn from a log-normal distribution for more human-like timing.</p>
</div>
</div>
<div class="kpi-card flex items-center space-x-4">
<span class="text-4xl">💸</span>
<div>
<h4 class="text-xl font-bold text-left" style="color: var(--blue-dark);">Random Amounts</h4>
<p class="text-left text-gray-600">Sends a variable amount of ETH within a specified range.</p>
</div>
</div>
<div class="kpi-card flex items-center space-x-4">
<span class="text-4xl">🔗</span>
<div>
<h4 class="text-xl font-bold text-left" style="color: var(--blue-dark);">Random Chain & Wallet</h4>
<p class="text-left text-gray-600">Picks a random wallet and a random blockchain network for each session.</p>
</div>
</div>
<div class="kpi-card flex items-center space-x-4">
<span class="text-4xl">🎲</span>
<div>
<h4 class="text-xl font-bold text-left" style="color: var(--blue-dark);">Per-Wallet Probability Jitter</h4>
<p class="text-left text-gray-600">Each wallet's action probabilities (send, idle, balance check) subtly vary from global settings.</p>
</div>
</div>
<div class="kpi-card flex items-center space-x-4">
<span class="text-4xl">⚙️</span>
<div>
<h4 class="text-xl font-bold text-left" style="color: var(--blue-dark);">Simulated Errors & Retries</h4>
<p class="text-left text-gray-600">Introduces occasional simulated transaction failures, followed by exponential backoff retries.</p>
</div>
</div>
</div>
</div>
<!-- NEW CHARTS FOR HUMANIZATION ENGINE -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-8 items-start mt-12">
<div class="bg-white dark:bg-gray-900 p-6 rounded-lg shadow-lg"> <!-- Added dark:bg-gray-900 (Point 4) -->
<h3 class="text-2xl font-semibold text-center mb-4 text-infographic-yellow">Simulating Human Behavior</h3>
<p class="text-center text-gray-600 mb-4">A comparison of robotic, fixed-interval delays versus human-like, log-normal distributed delays, demonstrating the importance of natural timing.</p>
<div class="chart-container">
<canvas id="infographicTimingChart"></canvas>
</div>
</div>
<div class="bg-white dark:bg-gray-900 p-6 rounded-lg shadow-lg"> <!-- Added dark:bg-gray-900 (Point 4) -->
<h3 class="text-xl font-semibold text-accent mb-2">Natural Inputs</h3>
<p class="text-gray-600 mb-4">Human mouse movements are curved and have variable speed. Typing has pauses and errors. Robotic, perfectly straight movements and constant-speed typing are dead giveaways.</p>
<div class="space-y-6">
<div class="p-4 bg-red-100 border-l-4 border-red-500 rounded">
<h4 class="font-bold text-red-800">Robotic Mouse Path</h4>
<p class="text-red-700">A direct, straight line from A to B.</p>
<div class="w-full h-2 mt-2 bg-gradient-to-r from-red-500 to-red-500"></div>
</div>
<div class="p-4 bg-green-100 border-l-4 border-green-500 rounded">
<h4 class="font-bold text-green-800">Human-like Mouse Path</h4>
<p class="text-green-700">A curved, slightly erratic path using Bezier curves.</p>
<div class="w-full h-20 mt-2 relative">
<div class="absolute top-1/2 left-0 w-full h-0.5 bg-green-500" style="clip-path: path('M 0 40 C 100 0, 200 80, 300 40');"></div>
</div>
</div>
</div>
</div>
</div>
<!-- New Pie Chart and its legend (Point 3) -->
<div class="bg-white dark:bg-gray-900 p-6 rounded-lg shadow-lg mt-12 max-w-md mx-auto"> <!-- Added dark:bg-gray-900 (Point 4) -->
<div class="chart-container">
<canvas id="infographicBehaviorChart"></canvas>
</div>
<p class="text-center text-gray-600 mt-4">This visual shows how most organic users behave: staying engaged over time, occasionally dropping off or just poking in.</p>
</div>
<!-- End New Pie Chart and its legend -->
</section>
<!-- Section: The Web3 Frontier: Evading On-Chain Detection / Mastering Web3 (Combined & Enhanced) -->
<section id="infographic-web3-frontier" class="my-16 md:my-24 py-12 bg-secondary rounded-xl shadow-lg">
<h2 class="section-title">The Web3 Frontier: Evading On-Chain Detection</h2>
<p class="text-lg text-center text-gray-600 max-w-3xl mx-auto mb-12">In Web3, all transactions are public. This creates a new challenge: your script's entire history is auditable on the blockchain. Evasion is not just about avoiding blocks, but about creating a plausible on-chain persona that doesn't scream "bot" through its transaction patterns.</p>
<div class="text-center mb-8">
<p class="text-lg md:text-xl text-gray-600 mb-4">On the transparent world of the blockchain, your transaction *patterns* become your new fingerprint.</p>
<div class="inline-block bg-main text-white p-4 rounded-lg">
<span class="text-5xl font-black" style="color: var(--chart-yellow);">~80%</span>
<span class="block text-xl font-semibold">of blockchain transactions are automated.</span>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-8 items-start px-6">
<div class="bg-secondary dark:bg-gray-900 p-6 rounded-lg shadow-lg"> <!-- Added dark:bg-gray-900 (Point 4) -->
<h3 class="text-2xl font-bold mb-4 text-infographic-magenta">Bot vs. Human NFT Trading</h3>
<p class="text-gray-600 mb-4">A bot might flip the same asset repeatedly with mechanical precision. A human collector, by contrast, shows more diverse activity, accumulates assets over time, and interacts at irregular intervals, mimicking organic market behavior.</p>
<div class="chart-container h-80">
<canvas id="infographicNftActivityChart"></canvas>
</div>
<p class="text-center text-sm text-gray-500 mt-4">A comparison of common NFT trading patterns for automated bots versus human users, emphasizing diversification and irregular timing.</p>
</div>
<div class="bg-secondary dark:bg-gray-900 p-6 rounded-lg shadow-lg"> <!-- Added dark:bg-gray-900 (Point 4) -->
<h3 class="text-2xl font-bold mb-4 text-infographic-magenta">Mastering Blockchain Challenges: Exponential Backoff</h3>
<p class="text-gray-600 mb-6">Failed blockchain transactions can be costly due to gas fees. Instead of constant, immediate retries (a clear bot-like pattern), use <span class="font-bold text-main">Exponential Backoff</span>. This strategy significantly increases the delay after each failure, mimicking a patient human and reducing network spam, ultimately improving success rates and stealth.</p>
<div class="chart-container h-80">
<canvas id="infographicBackoffChart"></canvas>
</div>
<p class="text-center text-sm text-gray-500 mt-4">This chart visually demonstrates the increasing wait time between retry attempts, a key human-like behavior for robust Web3 interaction.</p>
</div>
</div>
<div class="mt-12 bg-secondary dark:bg-gray-900 p-6 rounded-lg shadow-lg"> <!-- Added dark:bg-gray-900 (Point 4) -->
<h3 class="text-xl font-semibold text-accent mb-2 text-center">The Resilient Transaction Flow</h3>
<p class="text-gray-600 mb-4 text-center">Blockchain interactions are costly and irreversible. Failed transactions still incur gas fees. Robust error handling with exponential backoff isn't just good practice—it's a financial necessity and mimics a patient human.</p>
<div class="flex flex-col md:flex-row justify-center items-stretch gap-4">
<div class="flowchart-step bg-blue-500 text-white">1. Build Transaction</div>
<div class="flowchart-arrow">→</div>
<div class="flowchart-step bg-blue-500 text-white">2. Estimate Gas & Set Slippage</div>
<div class="flowchart-arrow">→</div>
<div class="flowchart-step bg-blue-500 text-white">3. Sign & Send</div>
<div class="flowchart-arrow">→</div>
<div class="flowchart-step bg-blue-500 text-white">4. On Failure? Use Exponential Backoff & Retry</div>
</div>
</div>
</section>
<!-- Section 5: Recipient Strategy (Combined from both) -->
<section id="infographic-recipient-strategy" class="my-16 md:my-24 py-12 bg-secondary rounded-xl shadow-lg">
<h2 class="section-title">Recipient Strategy</h2>
<p class="text-lg text-center text-gray-600 max-w-3xl mx-auto mb-12">
The script offers multiple modes for selecting transaction recipients, allowing for a wide range of interaction patterns.
</p>
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 px-6">
<div class="kpi-card">
<span class="text-4xl">🔍</span>
<h4 class="text-lg font-bold my-2">Dynamic Pool</h4>
<p class="text-gray-600 text-sm">Scans recent blocks for active wallets (EOAs) and adds them to a recipient pool.</p>
</div>
<div class="kpi-card">
<span class="text-4xl">🎯</span>
<h4 class="text-lg font-bold my-2">Fixed Address</h4>
<p class="text-gray-600 text-sm">Sends all transactions to a single, predetermined address.</p>
</div>
<div class="kpi-card">
<span class="text-4xl">📝</span>
<h4 class="text-lg font-bold my-2">Custom List</h4>
<p class="text-gray-600 text-sm">Uses a user-provided list of addresses for transactions.</p>
</div>
<div class="kpi-card">
<span class="text-4xl">📄</span>
<h4 class="text-lg font-bold my-2">Predefined List</h4>
<p class="text-gray-600 text-sm">Loads recipients from an externally hosted or uploaded CSV file.</p>
</div>
<div class="kpi-card">
<span class="text-4xl">🤝</span>
<h4 class="text-lg font-bold my-2">Self-Interact</h4>
<p class="text-gray-600 text-sm">Loaded wallets send transactions to each other, creating an internal ecosystem.</p>
</div>
<div class="kpi-card bg-gray-100">
<span class="text-4xl">↪️</span>
<h4 class="text-lg font-bold my-2">Fallback Logic</h4>
<p class="text-gray-600 text-sm">If the Dynamic Pool is empty, it automatically falls back to Self-Interact mode.</p>
</div>
</div>
</section>
<!-- Embedded Resource Section (Combined from both) -->
<section id="embedded-resource" class="my-16 md:my-24 py-12 bg-secondary rounded-xl shadow-lg">
<h2 class="section-title">Deep Dive: External Resource</h2>
<p class="text-lg text-center text-gray-600 max-w-3xl mx-auto mb-12">
Explore further details and documentation on transaction Interaction and related topics through this embedded resource.
</p>
<div class="w-full flex justify-center px-4">
<iframe src="https://raviku.notion.site/ebd/222dcb3afd088043aad3e7b8ea15fa64" width="100%" height="600" frameborder="0" allowfullscreen class="rounded-lg shadow-xl"></iframe>
</div>
</section>
<!-- Section 6: Security (Combined from both) -->
<section id="infographic-security" class="my-16 md:my-24">
<div class="max-w-4xl mx-auto p-6 rounded-lg" style="background-color: #fffbe6; border: 1px solid #fde047;">
<div class="flex">
<div class="flex-shrink-0">
<span class="text-3xl">⚠️</span>
</div>
<div class="ml-4">
<h3 class="text-2xl font-bold" style="color: #ca8a04;">A Critical Security Notice</h3>
<div class="mt-2 text-md text-yellow-800">
<p>This is a client-side application. Handling private keys in a web browser is **extremely risky**. This tool is intended for educational and testing purposes **on test networks only**. Never input mainnet private keys or keys associated with wallets holding real assets. The developer assumes no responsibility for any loss of funds.</p>
</div>
</div>
</div>
</div>
</section>
<!-- Add Link to Basic & Advanced Consoles in Final CTA (Point 1) -->
<div class="text-center mt-12">
<a href="advance.html" class="px-6 py-3 bg-blue-600 text-white font-bold rounded-lg mr-4">Start with Advanced Console</a>
<a href="basic.html" class="px-6 py-3 border border-blue-600 text-blue-600 font-bold rounded-lg">Try Basic Console</a>
</div>
<!-- End Link to Consoles -->
</div><!-- End infographic-content -->
</main>
<!-- Footer Section -->
<footer class="bg-gray-800 text-white py-12">
<div class="container mx-auto px-6 text-center">
<h3 class="text-2xl font-bold mb-2">We Grow Together!</h3>
<p class="mb-4 max-w-2xl mx-auto text-gray-300">
Your contributions help keep this project alive, ad-free, and continuously improving. Consider supporting our development efforts by donating.
</p>
<div class="flex items-center justify-center bg-gray-700 p-3 rounded-lg max-w-md mx-auto mb-6 shadow-md">
<span id="donation-address" class="text-sm md:text-base text-white font-mono break-all mr-2">0x1C46ccEA4D62d3eEC4DCE3501aa96d0Ff5FcA954</span>
<button id="copy-address-btn" class="ml-auto p-2 rounded-md hover:bg-gray-600 transition-colors" title="Copy Address">
<svg id="copy-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" class="bi bi-clipboard" viewBox="0 0 16 16">
<path d="M4 1.5H3a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1h1v-1z"/>
<path d="M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h3zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3z"/>
</svg>
<svg id="check-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" class="bi bi-check2 hidden text-green-400" viewBox="0 0 16 16">
<path d="M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z"/>
</svg>
</button>
<button id="show-qr-btn" class="ml-2 p-2 rounded-md hover:bg-gray-600 transition-colors" title="Show QR Code">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" class="bi bi-qr-code" viewBox="0 0 16 16">
<path d="M2 2h2v2H2V2Z"/>
<path d="M6 0v6H0V0h6ZM5 1H1v4h4V1ZM4 12H2v2h2v-2Z"/>
<path d="M6 10v6H0v-6h6Zm-5 1v4h4v-4H1Zm11-9h2v2h-2V2Z"/>
<path d="M10 0v6h6V0h-6ZM5 1v4h-4V1h4ZM8 1V0h1v2H8v2H7V1h1Zm0 5V4h1v2H8ZM6 8V7h1V6h1v2h1V7h5v1h-4v1H7V8H6Zm0 0v1H2V8H1v1H0V7h3v1h3Zm10 1h-1V7h1v2Zm-1 0h-1v2h2v-1h-1V9Zm-4 0h2v1h-1v1h-1V9Zm2 3v-1h-1v1h-1v1H9v1h3v-2h1v-1h-3Zm-4-3v1h1v-2H7v1h2v1H7Z"/>
<path d="M7 12h1v3h4v1H7v-4Zm9 2v2h-3v-1h2v-1h1Z"/>
</svg>
</button>
</div>
<p class="text-sm text-gray-400 mt-8">
© 2025 FarmLabs. All rights reserved.
</p>
<div class="flex items-center justify-center mt-4 space-x-6">
<a href="https://farm-labs.blogspot.com/" target="_blank" rel="noopener noreferrer" class="text-gray-400 hover:text-white" title="Blog">
<i class="fab fa-blogger fa-lg"></i>
</a>
<a href="https://t.me/farm_lab" target="_blank" rel="noopener noreferrer" class="text-gray-400 hover:text-white" title="Telegram">
<i class="fab fa-telegram fa-lg"></i>
</a>
<a href="https://github.com/CryptoExplor/farmlabs" target="_blank" rel="noopener noreferrer" class="text-gray-400 hover:text-white" title="GitHub">
<i class="fab fa-github fa-lg"></i>
</a>
</div>
</div>
</footer>
</div><!-- End content-wrapper -->
<!-- QR Code Modal -->
<div id="qr-code-modal" class="modal hidden">
<div class="modal-content text-center">
<div class="flex justify-end">
<span class="close-qr-button">×</span>
</div>
<h3 class="text-xl font-bold mb-4 text-main">Scan to Donate (ETH/ERC20)</h3>
<div id="qr-code-container" class="w-48 h-48 mx-auto mb-4"></div>
<p id="qr-address-display" class="text-sm font-mono break-all text-accent"></p>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
const appState = {
charts: {
infographicActionDist: null,
infographicWalletBalance: null,
infographicGasPrice: null,
infographicFingerprint: null,
infographicProxy: null,
infographicTiming: null,
infographicNftActivity: null,
infographicBackoff: null,
infographicBehavior: null // New chart for behavior
},
};
const copyToClipboard = (text) => {
const textarea = document.createElement('textarea');
textarea.value = text;
textarea.style.position = 'absolute';
textarea.style.left = '-9999px';
document.body.appendChild(textarea);
textarea.select();
try {
document.execCommand('copy');
console.log(`Copied "${text}" to clipboard.`);
} catch (err) {
console.error('Failed to copy to clipboard (unsupported by browser/iframe).', err);
}
document.body.removeChild(textarea);
};
// Global utility functions for chart labels and tooltips
const wrapLabel = (str, maxLen = 16) => {
if (str.length <= maxLen) {
return str;
}
const words = str.split(' ');
const lines = [];
let currentLine = '';
for (const word of words) {
if ((currentLine + ' ' + word).length > maxLen && currentLine.length > 0) {
lines.push(currentLine);
currentLine = word;
} else {
currentLine += (currentLine.length === 0 ? '' : ' ') + word;
}
}
if (currentLine.length > 0) {
lines.push(currentLine);
}
return lines;
};
const mandatoryTooltipConfig = {
plugins: {
tooltip: {
callbacks: {
title: function(tooltipItems) {
const item = tooltipItems[0];
if (!item) return '';
let label = item.chart.data.labels[item.dataIndex];
return Array.isArray(label) ? label.join(' ') : label;
}
}
}
}
};
// Infographic Chart Initialization Functions
const initInfographicActionDistChart = () => {
const ctx = document.getElementById('infographicActionDistChart')?.getContext('2d');
if (!ctx) return;
if (appState.charts.infographicActionDist) {
appState.charts.infographicActionDist.destroy();
}
appState.charts.infographicActionDist = new Chart(ctx, {
type: 'doughnut',
data: {
labels: ['Send Transaction', 'Idle (No Action)', 'Balance Check'],
datasets: [{
label: 'Action Probability',
data: [60, 20, 20],
backgroundColor: ['#3b82f6', '#a8a29e', '#f59e0b'], /* Aligned with console colors */
borderColor: getComputedStyle(document.documentElement).getPropertyValue('--secondary-bg'), /* Dynamic border color */
borderWidth: 2,
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
...mandatoryTooltipConfig.plugins,
legend: {
position: 'top',
labels: {
color: getComputedStyle(document.documentElement).getPropertyValue('--main-text') /* Dynamic label color */
}
},
}
});
};
const initInfographicWalletBalanceChart = () => {
const ctx = document.getElementById('infographicWalletBalanceChart')?.getContext('2d');
if (!ctx) return;
if (appState.charts.infographicWalletBalance) {
appState.charts.infographicWalletBalance.destroy();
}
const walletLabels = ['Wallet ...a4b8', 'Wallet ...f9c1', 'Wallet ...3d2e', 'Wallet ...e6a7', 'Wallet ...b8d9'];
appState.charts.infographicWalletBalance = new Chart(ctx, {
type: 'bar',
data: {
labels: walletLabels.map(label => wrapLabel(label)),
datasets: [{
label: 'Balance (ETH)',
data: [1.2, 0.8, 2.5, 0.5, 1.9],
backgroundColor: '#60a5fa', /* Aligned with console colors */
borderColor: '#3b82f6',
borderWidth: 1,
borderRadius: 5,
}]
},
options: {
responsive: true,
maintainAspectRatio: false,
...mandatoryTooltipConfig,
scales: {
y: {
beginAtZero: true,
ticks: {
color: getComputedStyle(document.documentElement).getPropertyValue('--accent-text') /* Dynamic tick color */
}
},
x: {
ticks: {
color: getComputedStyle(document.documentElement).getPropertyValue('--accent-text') /* Dynamic tick color */
}
}
},
plugins: {
legend: {
labels: {
color: getComputedStyle(document.documentElement).getPropertyValue('--main-text') /* Dynamic label color */
}
}
}
}
});
};
const initInfographicGasPriceChart = () => {
const ctx = document.getElementById('infographicGasPriceChart')?.getContext('2d');
if (!ctx) return;
if (appState.charts.infographicGasPrice) {
appState.charts.infographicGasPrice.destroy();
}
const labels = ['T-10', 'T-9', 'T-8', 'T-7', 'T-6', 'T-5', 'T-4', 'T-3', 'T-2', 'T-1'];
const networkBaseFee = Array(10).fill(20);
const randomGasPrice = Array.from({length: 10}, () => Math.random() * 30 + 20);
appState.charts.infographicGasPrice = new Chart(ctx, {
type: 'line',
data: {
labels: labels,
datasets: [
{
label: 'Network Base Fee (Gwei)',
data: networkBaseFee,
borderColor: '#90E0EF', /* From original infographic, fits theme */
borderWidth: 2,
tension: 0.1,
pointRadius: 0,
},
{
label: 'Script\'s Randomized Gas (Gwei)',