-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsite.js
More file actions
2004 lines (1877 loc) · 124 KB
/
site.js
File metadata and controls
2004 lines (1877 loc) · 124 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
// ============================================
// ~*~*~ ETHEREUM.ORG PARODY ~*~*~
// site.js - Router, Pages, and Interactivity
// Best viewed in Netscape Navigator 4.0
// ============================================
// ========== MATRIX RAIN BACKGROUND ==========
(function initMatrix() {
var canvas = document.getElementById('matrix-bg');
if (!canvas) return;
var ctx = canvas.getContext('2d');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
var cols = Math.floor(canvas.width / 18);
var drops = [];
for (var i = 0; i < cols; i++) drops[i] = Math.floor(Math.random() * -50);
var chars = 'ETHΞ01アイウエオカキクケコ♦◊∞≈⟐⬡⬢△▽❤'.split('');
// Color pools inspired by the teal/cyan/purple palette
var colColors = [];
for (var i = 0; i < cols; i++) {
var r = Math.random();
if (r > 0.7) colColors[i] = 'cyan';
else if (r > 0.4) colColors[i] = 'teal';
else if (r > 0.15) colColors[i] = 'purple';
else colColors[i] = 'pink';
}
function draw() {
ctx.fillStyle = 'rgba(6, 8, 24, 0.06)';
ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.font = '16px monospace';
for (var i = 0; i < drops.length; i++) {
var c = chars[Math.floor(Math.random() * chars.length)];
var g = Math.random();
var pool = colColors[i];
if (g > 0.96) ctx.fillStyle = '#ffffff';
else if (pool === 'cyan') ctx.fillStyle = g > 0.7 ? '#66eeff' : '#1a99aa';
else if (pool === 'teal') ctx.fillStyle = g > 0.7 ? '#44ddcc' : '#117766';
else if (pool === 'purple') ctx.fillStyle = g > 0.7 ? '#bb88ff' : '#6633aa';
else ctx.fillStyle = g > 0.7 ? '#ff88cc' : '#aa3377';
ctx.fillText(c, i * 18, drops[i] * 18);
if (drops[i] * 18 > canvas.height && Math.random() > 0.975) drops[i] = 0;
drops[i]++;
}
}
setInterval(draw, 60);
window.addEventListener('resize', function() {
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
});
})();
// ========== AMBIENT FLOATING ELEMENTS ==========
(function initAmbient() {
var container = document.getElementById('ambient-container');
if (!container) return;
// --- Floating Ethereum Diamonds ---
var diamondSymbols = ['◆', '⬡', '◇', '💎', 'Ξ'];
var diamondColors = ['#66eeff','#bb88ff','#ff88cc','#44ddcc','#ffcc44'];
function spawnDiamond() {
var d = document.createElement('div');
d.className = 'float-diamond';
d.textContent = diamondSymbols[Math.floor(Math.random() * diamondSymbols.length)];
var color = diamondColors[Math.floor(Math.random() * diamondColors.length)];
d.style.left = Math.random() * 100 + '%';
d.style.color = color;
d.style.textShadow = '0 0 12px ' + color + ', 0 0 25px ' + color + '44';
d.style.fontSize = (16 + Math.random() * 20) + 'px';
d.style.animationDuration = (18 + Math.random() * 25) + 's';
d.style.animationDelay = (Math.random() * 5) + 's';
container.appendChild(d);
setTimeout(function() { d.remove(); }, 50000);
}
for (var i = 0; i < 8; i++) setTimeout(spawnDiamond, i * 2500);
setInterval(spawnDiamond, 4000);
// --- Rainbow Prism Orbs ---
function spawnOrb() {
var o = document.createElement('div');
o.className = 'prism-orb';
o.style.left = Math.random() * 90 + '%';
o.style.top = Math.random() * 90 + '%';
var size = 50 + Math.random() * 100;
o.style.width = size + 'px';
o.style.height = size + 'px';
o.style.animationDuration = (15 + Math.random() * 20) + 's';
o.style.animationDelay = (Math.random() * 10) + 's';
container.appendChild(o);
setTimeout(function() { o.remove(); }, 60000);
}
for (var i = 0; i < 4; i++) setTimeout(spawnOrb, i * 3000);
setInterval(spawnOrb, 12000);
// --- Drifting Terminal Text ---
var termTexts = [
'CONNECTION_ESTABLISHED', 'HEARTBEAT_SYNC', 'INFINITE_LOVE',
'ABUNDANCE_REGARDLESS_OF_MEANS', 'PLENITUDE_ACHIEVED',
'OVERFLOWING_LOVE', 'DATA_STREAM_ACTIVE', 'ACTIVATE_SOVEREIGNTY',
'CONSENSUS_REACHED', 'BLOCK_FINALIZED', 'VALIDATOR_ONLINE',
'TRUST_VERIFIED', 'DECENTRALIZE_EVERYTHING', 'GM_GM_GM',
'WAGMI', 'PROOF_OF_STAKE', 'WE_ARE_ALL_ONE_IN_LOVE',
'HOPE_SPRINGS_ETERNAL', 'HEART_CONNECTION', 'L.O.V.E._BUFFERING',
'KINDNESS_LOOP', 'LOVE_IS_THE_DATA', 'WHITEPILLED',
'LOVEPILLED', 'CLEARPILLED', 'NODE_SYNCHRONIZED'
];
function spawnText() {
var t = document.createElement('div');
t.className = 'drift-text';
t.textContent = termTexts[Math.floor(Math.random() * termTexts.length)];
t.style.top = (5 + Math.random() * 90) + '%';
var colors = [
'rgba(100,220,255,0.2)', 'rgba(180,130,255,0.18)',
'rgba(255,130,200,0.15)', 'rgba(80,220,200,0.2)',
'rgba(255,200,100,0.12)'
];
t.style.color = colors[Math.floor(Math.random() * colors.length)];
var dur = 25 + Math.random() * 35;
t.style.animationDuration = dur + 's';
// Some go right-to-left
if (Math.random() > 0.5) t.style.direction = 'rtl';
container.appendChild(t);
setTimeout(function() { t.remove(); }, dur * 1000 + 1000);
}
for (var i = 0; i < 3; i++) setTimeout(spawnText, i * 4000);
setInterval(spawnText, 6000);
// --- VHS Color Bar Glitch Strips ---
var vhsColors = [
['#fff','#ff0','#0ff','#0f0','#f0f','#f00','#00f'],
['#f00','#0f0','#00f','#ff0','#f0f'],
['#0ff','#f0f','#ff0','#0f0']
];
function spawnVHS() {
var barSet = vhsColors[Math.floor(Math.random() * vhsColors.length)];
var g = document.createElement('div');
g.style.position = 'absolute';
g.style.top = Math.random() * 100 + '%';
g.style.left = Math.random() * 60 + '%';
g.style.display = 'flex';
g.style.opacity = '0';
g.style.zIndex = '0';
g.className = 'vhs-bar';
for (var i = 0; i < barSet.length; i++) {
var bar = document.createElement('div');
bar.style.width = (8 + Math.random() * 15) + 'px';
bar.style.height = (3 + Math.random() * 5) + 'px';
bar.style.background = barSet[i];
g.appendChild(bar);
}
g.style.animationDelay = (Math.random() * 6) + 's';
g.style.animationDuration = (6 + Math.random() * 8) + 's';
container.appendChild(g);
setTimeout(function() { g.remove(); }, 20000);
}
for (var i = 0; i < 5; i++) setTimeout(spawnVHS, i * 1500);
setInterval(spawnVHS, 5000);
// --- Pixel Glitch Blocks ---
function spawnPixelBlock() {
var p = document.createElement('canvas');
p.className = 'pixel-block';
var size = 20 + Math.floor(Math.random() * 40);
p.width = size; p.height = size;
p.style.width = size + 'px';
p.style.height = size + 'px';
p.style.left = Math.random() * 95 + '%';
p.style.top = Math.random() * 95 + '%';
var pCtx = p.getContext('2d');
// Draw random colored pixels
var px = 4;
for (var x = 0; x < size; x += px) {
for (var y = 0; y < size; y += px) {
var r = Math.random();
if (r > 0.3) {
var colors = ['#ff0055','#00ffaa','#ffcc00','#0088ff','#ff00ff','#00ffff','#8844ff','#ff8800'];
pCtx.fillStyle = colors[Math.floor(Math.random() * colors.length)];
pCtx.fillRect(x, y, px, px);
}
}
}
p.style.animationDelay = (Math.random() * 10) + 's';
p.style.animationDuration = (8 + Math.random() * 10) + 's';
container.appendChild(p);
setTimeout(function() { p.remove(); }, 25000);
}
for (var i = 0; i < 4; i++) setTimeout(spawnPixelBlock, i * 2000);
setInterval(spawnPixelBlock, 7000);
// --- Expanding Diamond Halos ---
function spawnHalo() {
var h = document.createElement('div');
h.className = 'diamond-halo';
h.style.left = Math.random() * 90 + '%';
h.style.top = Math.random() * 90 + '%';
h.style.animationDuration = (4 + Math.random() * 4) + 's';
var colors = ['rgba(100,200,255,','rgba(180,100,255,','rgba(255,130,200,','rgba(80,220,200,'];
var c = colors[Math.floor(Math.random() * colors.length)];
h.style.borderColor = c + '0.3)';
h.style.boxShadow = '0 0 20px ' + c + '0.15), inset 0 0 20px ' + c + '0.08)';
container.appendChild(h);
setTimeout(function() { h.remove(); }, 8000);
}
setInterval(spawnHalo, 3000);
// --- Floating Milady NFTs ---
var miladyPool = [];
var miladyIds = [];
// Generate 30 random token IDs to cycle through
for (var i = 0; i < 30; i++) miladyIds.push(Math.floor(Math.random() * 9998));
var miladyPreloadIdx = 0;
function preloadNextMilady() {
if (miladyPreloadIdx >= miladyIds.length) return;
var id = miladyIds[miladyPreloadIdx];
miladyPreloadIdx++;
var img = new Image();
var url = 'https://www.miladymaker.net/milady/' + id + '.png';
img.onload = function() {
miladyPool.push(url);
};
img.onerror = function() {
// skip failed loads silently
};
img.src = url;
}
// Preload first 8 right away, rest lazily
for (var i = 0; i < 8; i++) preloadNextMilady();
setInterval(preloadNextMilady, 2000);
function spawnMilady() {
if (miladyPool.length === 0) return;
var src = miladyPool[Math.floor(Math.random() * miladyPool.length)];
var el = document.createElement('img');
el.src = src;
el.className = 'float-milady';
// Random size 45-75px
var size = 45 + Math.floor(Math.random() * 30);
el.style.width = size + 'px';
el.style.height = size + 'px';
// Random vertical position
el.style.top = (5 + Math.random() * 85) + '%';
// Use translateX for animation instead of left/right (more reliable)
var dur = 22 + Math.random() * 20;
el.style.animationDuration = dur + 's';
// Random direction
if (Math.random() > 0.5) {
el.classList.add('milady-ltr');
} else {
el.classList.add('milady-rtl');
}
el.style.setProperty('--milady-rot', (Math.random() * 16 - 8) + 'deg');
container.appendChild(el);
setTimeout(function() { el.remove(); }, (dur + 5) * 1000);
}
// Start spawning after images have had time to preload
setTimeout(function() {
spawnMilady();
setInterval(spawnMilady, 7000);
}, 6000);
})();
// ========== AUDIO PLAYER ==========
var bgAudio = null;
var audioStarted = false;
function initAudio() {
bgAudio = document.getElementById('bgAudio');
if (!bgAudio) return;
bgAudio.volume = 0.3;
}
function toggleAudio() {
if (!bgAudio) initAudio();
if (!bgAudio) return;
if (bgAudio.paused) {
bgAudio.play().catch(function(){});
audioStarted = true;
var btn = document.getElementById('btn-play');
if (btn) btn.textContent = '▶ Playing';
} else {
bgAudio.pause();
var btn = document.getElementById('btn-play');
if (btn) btn.textContent = '▶ Play';
}
}
function pauseAudio() {
if (bgAudio) { bgAudio.pause(); var btn = document.getElementById('btn-play'); if (btn) btn.textContent = '▶ Play'; }
}
function stopAudio() {
if (bgAudio) { bgAudio.pause(); bgAudio.currentTime = 0; var btn = document.getElementById('btn-play'); if (btn) btn.textContent = '▶ Play'; }
}
function setVolume(v) {
if (bgAudio) bgAudio.volume = v / 100;
}
// Auto-play: try immediately, then hook every interaction type Safari/Chrome might allow
function startAudio() {
if (audioStarted) return;
if (!bgAudio) initAudio();
if (!bgAudio) return;
bgAudio.play().then(function() {
audioStarted = true;
var btn = document.getElementById('btn-play');
if (btn) btn.textContent = '▶ Playing';
// Clean up listeners once playing
removeAutoplayListeners();
}).catch(function(){});
}
function removeAutoplayListeners() {
['click','touchstart','scroll','keydown','mousemove'].forEach(function(evt) {
document.removeEventListener(evt, startAudio);
});
}
// Try autoplay immediately
setTimeout(startAudio, 800);
// Also try on a second delay (some browsers allow after a short wait)
setTimeout(startAudio, 2500);
// Hook all possible user interactions as fallback (Safari needs this)
['click','touchstart','scroll','keydown','mousemove'].forEach(function(evt) {
document.addEventListener(evt, startAudio, {once: false, passive: true});
});
// ========== SPARKLE CURSOR TRAIL ==========
document.addEventListener('mousemove', function(e) {
if (Math.random() > 0.88) {
var s = document.createElement('div');
s.className = 'sparkle';
s.style.left = e.pageX + 'px';
s.style.top = e.pageY + 'px';
var emojis = ['✨', '💎', '⭐', '🔥', '💰', 'Ξ'];
s.textContent = emojis[Math.floor(Math.random() * emojis.length)];
document.body.appendChild(s);
setTimeout(function() { s.remove(); }, 800);
}
});
// ========== POPUP (EVASIVE SIDE POPUP) ==========
var popupEvadeCount = 0;
var popupDismissed = false;
// Sidebar ads sit at top:200px and are ~160px tall, so avoid 180–380px range on sides.
// Also avoid going off-screen at the bottom.
function getRandomPopupPosition(avoidSide) {
// Pick a side: 'left' or 'right', but avoid the side we were just on
var side;
if (avoidSide) {
side = avoidSide === 'right' ? 'left' : 'right';
} else {
side = Math.random() > 0.5 ? 'right' : 'left';
}
// Pick a vertical position that avoids the sidebar ad zone (180-380px)
// Safe zones: 30-160px, or 400px to (viewportHeight - 350px)
var vh = window.innerHeight;
var safeSlots = [];
// Top zone
if (160 > 30) safeSlots.push([30, 160]);
// Below sidebar ads
var bottomZoneStart = 400;
var bottomZoneEnd = Math.max(bottomZoneStart + 50, vh - 350);
if (bottomZoneEnd > bottomZoneStart) safeSlots.push([bottomZoneStart, bottomZoneEnd]);
var zone = safeSlots[Math.floor(Math.random() * safeSlots.length)];
var top = zone[0] + Math.floor(Math.random() * (zone[1] - zone[0]));
return { side: side, top: top };
}
function movePopup(avoidSide) {
var popup = document.getElementById('winnerPopup');
if (!popup || popupDismissed) return;
var pos = getRandomPopupPosition(avoidSide);
// Remove both position classes
popup.classList.remove('show-left', 'show-right');
// Reset both left/right so they don't fight
popup.style.left = '';
popup.style.right = '';
popup.style.top = pos.top + 'px';
// Brief delay so the browser registers the class removal for transition
requestAnimationFrame(function() {
requestAnimationFrame(function() {
popup.classList.add(pos.side === 'right' ? 'show-right' : 'show-left');
});
});
popup._currentSide = pos.side;
}
function closePopup() {
// They can never truly close it... or can they?
popupEvadeCount++;
if (popupEvadeCount >= 3) {
// OK fine, let them close it after a few evades
document.getElementById('winnerPopup').style.display = 'none';
popupDismissed = true;
} else {
movePopup(document.getElementById('winnerPopup')._currentSide);
}
}
// Timestamp of last popup evade - used to block Skype button bleed-through
var lastPopupEvadeTime = 0;
function evadePopup() {
var popup = document.getElementById('winnerPopup');
if (!popup || popupDismissed) return;
popupEvadeCount++;
lastPopupEvadeTime = Date.now();
if (popupEvadeCount >= 3) {
popup.style.display = 'none';
popupDismissed = true;
return;
}
movePopup(popup._currentSide);
}
// Show popup after delay
setTimeout(function() {
var popup = document.getElementById('winnerPopup');
if (!popup) return;
popup.style.display = 'block';
movePopup(null);
// Evade on mouseenter (desktop) and touchstart (mobile)
popup.addEventListener('mouseenter', evadePopup);
popup.addEventListener('touchstart', function(e) {
e.preventDefault();
e.stopPropagation();
evadePopup();
}, {passive: false});
}, 2500);
// Block Skype button if popup just evaded (prevents tap bleed-through on mobile)
document.getElementById('skype-bubble').addEventListener('click', function(e) {
if (Date.now() - lastPopupEvadeTime < 600) {
e.preventDefault();
e.stopPropagation();
}
}, true);
// ========== VISITOR COUNTER ==========
var visitorCount = 4523;
setInterval(function() {
visitorCount += Math.floor(Math.random() * 3) + 1;
var s = visitorCount.toString().padStart(7, '0');
var el = document.getElementById('visitorCount');
if (el) el.textContent = s.slice(0,1) + ',' + s.slice(1,4) + ',' + s.slice(4);
}, 2000);
// ========== STATUS BAR MESSAGES ==========
var statusMessages = [
"Welcome to Ethereum.org!!! The BEST blockchain website on the WORLD WIDE WEB!!!",
"gm gm gm!!! Have you bought your ETH today?!?",
"WAGMI!!! We're All Gonna Make It!!!",
"Don't forget to sign the guestbook!!!",
"This site is best viewed in Netscape Navigator 4.0 at 800x600...",
"Ethereum: The World Computer!!! Now with 100% more Comic Sans!!!",
"Remember: Not your keys, not your crypto!!!",
"Fun fact: This website uses ZERO smart contracts!!!",
"Powered by HTML 4.01 Transitional - The Way The Web Was Meant To Be!!!",
"🚀 ETH to $100,000 - Source: Trust me bro 🚀"
];
var statusIdx = 0;
setInterval(function() {
var el = document.getElementById('statusText');
if (el) el.textContent = statusMessages[statusIdx];
statusIdx = (statusIdx + 1) % statusMessages.length;
}, 4000);
// ========== RIGHT-CLICK JOKE ==========
var rightClickCount = 0;
document.addEventListener('contextmenu', function(e) {
if (rightClickCount === 0) {
e.preventDefault();
alert('⚠️ Sorry!!! Right-clicking is DISABLED on this website!!!\n\n(Just kidding, try again)\n\nThis is a classic early 2000s website feature 😂');
rightClickCount++;
}
});
// ========== KONAMI CODE ==========
var konamiCode = [38,38,40,40,37,39,37,39,66,65];
var konamiIdx = 0;
document.addEventListener('keydown', function(e) {
if (e.keyCode === konamiCode[konamiIdx]) {
konamiIdx++;
if (konamiIdx === konamiCode.length) {
konamiIdx = 0;
document.body.style.transform = 'rotate(180deg)';
document.body.style.transition = 'transform 2s';
setTimeout(function() {
alert('🎮 KONAMI CODE ACTIVATED!!!\n\n+30 lives\n+∞ ETH\n\nJust kidding. But you DO get bragging rights!');
document.body.style.transform = 'none';
}, 2000);
}
} else { konamiIdx = 0; }
});
// ========== FAQ TOGGLE ==========
document.addEventListener('click', function(e) {
var q = e.target.closest('.faq-question');
if (q) {
var item = q.parentElement;
item.classList.toggle('open');
}
});
// ========== HELPER: AD BANNER ==========
function adBanner(text, subtext, link, linkText, colors) {
colors = colors || 'linear-gradient(135deg,#ffff00,#ff8800,#ff0000)';
return '<div class="ad-banner" style="background:' + colors + '">' +
'<div class="blink-text">' + text + '</div>' +
'<div style="font-size:14px">' + subtext + ' <a href="' + link + '" style="font-size:12px">' + linkText + '</a></div></div>';
}
// ========== HELPER: FIRE DIVIDER ==========
var FIRE = '<div class="divider-fire">🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥</div>';
// ========== HELPER: BREADCRUMB ==========
function breadcrumb(parts) {
var html = '<div class="breadcrumb">🏠 <a href="#/">Home</a>';
for (var i = 0; i < parts.length; i++) {
html += ' > ';
if (parts[i].link) html += '<a href="' + parts[i].link + '">' + parts[i].text + '</a>';
else html += '<span style="color:#ff8800">' + parts[i].text + '</span>';
}
return html + '</div>';
}
// ========== HELPER: SECTION ==========
function section(title, content) {
return '<div class="section-box"><h2>' + title + '</h2>' + content + '</div>';
}
// ========== HELPER: RELATED LINKS ==========
function relatedLinks(links) {
var html = '<div class="section-box"><h2>📎 rElAtEd LiNkS!!! 📎</h2>';
for (var i = 0; i < links.length; i++) {
html += '<div class="news-item">' + links[i][0] + ' <a href="#/' + links[i][1] + '">' + links[i][2] + '</a>';
if (i < 3) html += ' <span class="new-badge">HOT!</span>';
html += '</div>';
}
return html + '</div>';
}
// ========== HELPER: PAGE HERO ==========
function pageHero(emoji, title, desc) {
return '<div class="page-hero"><span class="page-emoji">' + emoji + '</span>' +
'<h1>' + title + '</h1>' +
'<div class="page-desc">' + desc + '</div></div>';
}
// ========== ALL PAGE CONTENT ==========
var PAGES = {};
// ---------- HOME ----------
PAGES[''] = {
title: 'Home',
content: function() {
return '<div class="site-header">' +
'<div class="eth-diamond">💎</div>' +
'<h1>ETHEREUM</h1>' +
'<div class="subtitle">✨ wElCoMe tO eThErEuM!!! ✨</div>' +
'<div class="tagline">~ The leading platform for innovative apps and blockchain networks ~</div>' +
'<div style="font-size:12px;color:#888;margin-top:5px">Last updated: March 13, 2026 | Best viewed at 800x600 | <a href="https://ethereum.org/en/" target="_blank" style="font-size:12px" id="boring-version">View boring version</a></div>' +
'<div class="cta-grid">' +
'<a class="cta-btn" href="#/wallets/find-wallet">💳 Pick a Wallet!!!</a>' +
'<a class="cta-btn" href="#/get-eth">💰 Get ETH Now!!!</a>' +
'<a class="cta-btn" href="#/apps">🎮 Try Apps!!!</a>' +
'<a class="cta-btn" href="#/developers">⚡ Start Building!!!</a>' +
'</div></div>' +
'<div class="marquee-bar"><span class="scroll-text">🔥🔥🔥 BREAKING NEWS: ETH price is <span class="eth-price">$2,141.53</span>!!! 🚀🚀🚀 TO THE MOON!!! 🌙 ||| $55.67 BILLION locked in DeFi!!! ||| 13.06 MILLION transactions in 24 hours!!! ||| ETHEREUM IS THE FUTURE OF THE INTERNET!!! ||| gm gm gm ||| WAGMI!!! 🔥🔥🔥</span></div>' +
'<div class="under-construction">🚧 ⚠️ THIS SITE IS UNDER CONSTRUCTION ⚠️ 🚧</div>' +
FIRE +
'<div class="price-ticker"><div class="label">~~ LIVE ETH PRICE ~~</div>' +
'<div class="price eth-price">$2,141.53</div>' +
'<div class="label"><span class="eth-price-direction" style="color:#44eedd">▲ TO THE MOON 🚀🌙</span></div>' +
'<div style="font-size:10px;color:#444;margin-top:5px">* Updates every 60 seconds via CoinGecko API. Yes, even Comic Sans websites can have live data.</div></div>' +
section('🤔 WuT iS eThErEuM?!? 🤔',
'<table width="100%" cellpadding="0" cellspacing="0"><tr>' +
'<td style="padding-right:15px;vertical-align:top">' +
'<p>Ethereum is a <font color="#ff0000"><b>DECENTRALIZED</b></font>, open source blockchain network and software development platform, powered by the cryptocurrency <font color="#ffff00"><b>ether (ETH)</b></font>. Ethereum is the secure, global foundation for a new generation of <font color="#00ffff"><b>UNSTOPPABLE</b></font> applications.</p>' +
'<p>The Ethereum network is open to everyone: <b>no permission required</b>. It has no owner, and is built and maintained by <font color="#ff88ff">thousands of people, organizations, and users</font> around the world.</p>' +
'<p><a href="#/what-is-ethereum">>>> Learn about Ethereum >>></a></p>' +
'</td><td style="width:160px;text-align:center;vertical-align:top">' +
'<div style="font-size:100px;animation:floatUpDown 3s ease-in-out infinite">💎</div>' +
'<div style="font-size:11px;color:#888">~*~ The Future ~*~</div>' +
'</td></tr></table>' +
'<table width="100%" cellpadding="5" cellspacing="3" border="1" bordercolor="#6666ff" style="margin-top:10px;font-size:12px">' +
'<tr bgcolor="#111155"><td>📚 <a href="#/wallets">What are crypto wallets?</a></td><td>📖 <a href="#/guides">Step-by-step Ethereum guides</a></td></tr>' +
'<tr bgcolor="#111155"><td>📄 <a href="#/whitepaper">Ethereum Whitepaper</a> <span class="new-badge">NEW!</span></td><td>🗺️ <a href="#/roadmap">Ethereum roadmap</a></td></tr></table>'
) +
FIRE +
section('🌐 A nEw WaY tO uSe ThE iNtErNeT!!! 🌐',
'<table class="use-case-table">' +
'<tr><td><h3>💵 Digital Cash for Everyday Use</h3><p>Stablecoins for instant global payments and digital dollars on Ethereum. Send money anywhere in the world, anytime!</p><a href="#/stablecoins">>>> Discover stablecoins >>></a></td>' +
'<td><h3>🏦 A Financial System Open to ALL</h3><p>Borrow, lend, earn interest without a bank account. Open 24/7, 365 days a year. No KYC required!!!</p><a href="#/defi">>>> Explore DeFi >>></a></td></tr>' +
'<tr><td><h3>🔗 The Network of Networks</h3><p>Hundreds of Layer 2 networks built on Ethereum. Low fees, near-instant transactions. It\'s like the INTERNET but for MONEY!</p><a href="#/layer-2">>>> Discover Layer 2s >>></a></td>' +
'<td><h3>🔒 Apps That Respect Your Privacy</h3><p>No data selling! Use the same account across all apps. YOUR data, YOUR rules. Take THAT, big tech!!!</p><a href="#/apps">>>> Browse apps >>></a></td></tr>' +
'<tr><td><h3>🎨 The Internet of Assets</h3><p>Art, real estate, stocks - all tokenized on Ethereum. Own ANYTHING as a digital token! The future is NOW!!!</p><a href="#/nft">>>> More on NFTs >>></a></td>' +
'<td><h3>🌍 Decentralized Identity</h3><p>One identity, all of Web3. No more 500 passwords! Be your own identity provider!!!</p><a href="#/decentralized-identity">>>> Learn more >>></a></td></tr></table>'
) +
adBanner('🤖 LEARN SOLIDITY IN 24 HOURS!!! 🤖', 'Become a blockchain developer OVERNIGHT!', '#/developers/docs', 'Click here for docs!', 'linear-gradient(135deg,#00ff00,#00aa00,#004400)') +
section('💰 WhAt Is ETH?!? 💰',
'<p><font color="#ffff00"><b>Ether (ETH)</b></font> is the native cryptocurrency that powers the Ethereum network, used to pay transaction fees and secure the blockchain through staking. Beyond its technical role, ETH is open, programmable <font color="#00ff00"><b>DIGITAL MONEY</b></font>.</p>' +
'<p style="text-align:center"><a href="#/what-is-ether">>>> Learn more about ether >>></a></p>'
) +
FIRE +
section('💪 ThE sTrOnGeSt EcOsYsTeM!!! 💪',
'<p>Ethereum is the <font color="#ff0000"><b>LEADING PLATFORM</b></font> for issuing, managing, and settling digital assets. From tokenized money and financial instruments to real-world assets, Ethereum provides a <font color="#00ffff">secure, neutral foundation</font> for the digital economy.</p>' +
'<table class="stats-table"><tr>' +
'<td><span class="stat-value">$55.67B</span><span class="stat-label">Value locked in DeFi 🔒</span></td>' +
'<td><span class="stat-value">$81.34B</span><span class="stat-label">Value protecting ETH 🛡️</span></td>' +
'<td><span class="stat-value">$0.0016</span><span class="stat-label">Avg transaction cost 💸</span></td>' +
'<td><span class="stat-value">13.06M</span><span class="stat-label">24h transactions 📊</span></td>' +
'</tr></table>' +
'<p style="text-align:center;margin-top:10px"><a href="#/enterprise">🏢 Ethereum for institutions</a> | <a href="#/resources">📦 More ecosystem resources</a></p>'
) +
section('👨💻 bLoCkChAiN\'s BiGgEsT bUiLdEr CoMmUnItY!!! 👩💻',
'<p>Ethereum is home to Web3\'s <font color="#ff8800"><b>LARGEST</b></font> and most vibrant developer ecosystem. Use <font color="#ffff00">JavaScript</font> and <font color="#00ff00">Python</font>, or learn a smart contract language like <font color="#00ffff"><a href="https://soliditylang.org/" target="_blank">Solidity</a></font> or <font color="#ff88ff"><a href="https://vyperlang.org/" target="_blank">Vyper</a></font> to write your own app.</p>' +
'<p style="text-align:center"><a href="#/developers">🏗️ Builder\'s portal</a> | <a href="#/developers/docs">📚 Documentation</a></p>' +
'<div class="code-card"><h4>🏦 Your own bank</h4><code style="color:#0f0">contract MyBank { mapping(address => uint) balances; }</code><div style="color:#888;font-size:10px">Build a bank powered by logic YOU programmed!</div></div>' +
'<div class="code-card"><h4>💰 Your own currency</h4><code style="color:#0f0">contract MyCoin is ERC20 { constructor() ERC20("MyCoin","MC") {} }</code><div style="color:#888;font-size:10px">Create tokens transferable across applications!</div></div>' +
'<div class="code-card"><h4>🌐 A JavaScript Ethereum wallet</h4><code style="color:#0f0">const provider = new ethers.BrowserProvider(window.ethereum);</code><div style="color:#888;font-size:10px">Use existing languages to interact with Ethereum!</div></div>' +
'<div class="code-card"><h4>📡 An open, permissionless DNS</h4><code style="color:#0f0">const name = await provider.lookupAddress(address);</code><div style="color:#888;font-size:10px">Re-imagine services as decentralized, open applications!</div></div>'
) +
adBanner('🎨 MINT YOUR NFT TODAY!!! 🎨', 'Turn your MS Paint masterpieces into VALUABLE digital assets!!!', '#/nft', 'Learn about NFTs!', 'linear-gradient(135deg,#ff00ff,#8800ff,#0000ff)') +
section('📰 EtHeReUm NeWs!!! 📰',
'<p style="color:#888;font-size:12px">The latest blog posts and updates from the community</p>' +
'<div class="news-item">📢 <a href="https://blog.ethereum.org/" target="_blank">Ethereum Foundation Blog</a> <span class="new-badge">NEW!</span></div>' +
'<div class="news-item">📢 <a href="https://ethereal.news/" target="_blank">Ethereal.news</a> <span class="new-badge">NEW!</span></div>' +
'<div class="news-item">📢 <a href="#/community">Community Updates</a> <span class="new-badge">HOT!</span></div>' +
'<div class="news-item">📢 <a href="https://soliditylang.org/blog/" target="_blank">Solidity Lang Blog</a></div>' +
'<div class="news-item">📢 <a href="https://vitalik.eth.limo/" target="_blank">Vitalik Buterin\'s website</a> <span class="new-badge">🔥</span></div>' +
'<div class="news-item">📢 <a href="https://ethstaker.cc/" target="_blank">ethstaker</a></div>'
) +
section('🎉 EtHeReUm eVeNtS!!! 🎉',
'<p style="color:#888;font-size:12px">Ethereum communities host events all around the globe, all year long!</p>' +
'<table class="events-table">' +
'<tr><th>📅 Event</th><th>📍 Location</th><th>🗓️ Date</th></tr>' +
'<tr><td><a href="#/community/events">Ethereum Munich #2</a></td><td>Munich, Germany 🇩🇪</td><td>March 26, 2026</td></tr>' +
'<tr><td><a href="#/community/events">BEAST MODE | zkEVM day</a></td><td>Cannes, France 🇫🇷</td><td>March 28, 2026</td></tr>' +
'<tr><td><a href="#/community/events">FORT MODE</a></td><td>Cannes, France 🇫🇷</td><td>March 29, 2026</td></tr>' +
'</table>' +
'<p style="text-align:center;margin-top:10px"><a href="#/community/events">>>> See ALL events >>></a></p>'
) +
FIRE +
section('🤝 jOiN eThErEuM.oRg!!! 🤝',
'<p>The ethereum.org website is built and maintained by <font color="#ffff00"><b>THOUSANDS</b></font> of translators, coders, designers, copywriters, and community members. YOU can help too!!!</p>' +
'<p style="text-align:center"><a href="#/contributing">📝 How to contribute</a> | <a href="https://github.com/ethereum/ethereum-org-website/" target="_blank">🐙 GitHub</a> | <a href="https://discord.gg/ethereum-org" target="_blank">💬 Discord</a> | <a href="https://x.com/EthDotOrg" target="_blank">🐦 X (Twitter)</a></p>' +
'<p style="text-align:center"><a href="#/community">🌍 ethereum.org contributor hub</a></p>'
);
}
};
// ---------- WHAT IS ETHEREUM ----------
PAGES['what-is-ethereum'] = {
title: 'What is Ethereum?',
content: function() {
return breadcrumb([{link:'#/learn',text:'Learn'},{text:'What is Ethereum?'}]) +
pageHero('💎', 'WhAt iS eThErEuM?!?', 'The world\'s programmable blockchain!!! It\'s like a GIANT COMPUTER that NOBODY can turn off!!!') +
FIRE +
section('🌍 eThErEuM eXpLaInEd!!! 🌍',
'<p>Imagine the internet. Now imagine it\'s <font color="#ff0000"><b>DECENTRALIZED</b></font>. That\'s basically Ethereum. It\'s a global, open-source platform that lets you build <font color="#ffff00"><b>UNSTOPPABLE APPLICATIONS</b></font> that run exactly as programmed.</p>' +
'<p>No downtime. No censorship. No fraud. No third-party interference. <font color="#00ffff"><b>THE FUTURE IS HERE!!!</b></font></p>' +
'<p>Ethereum was proposed in 2013 by <a href="https://vitalik.eth.limo/" target="_blank">Vitalik Buterin</a>, who was only <font color="#ff88ff"><b>19 YEARS OLD</b></font> at the time. If a teenager can invent a world-changing technology, what\'s YOUR excuse?!?</p>'
) +
section('🤔 hOw DoEs It WoRk?!? 🤔',
'<p>Ethereum runs on a global network of <font color="#00ff00"><b>THOUSANDS of computers</b></font> (called nodes) all around the world. These computers all agree on the same data using a process called <font color="#ffff00"><b>consensus</b></font>.</p>' +
'<ul class="feature-list">' +
'<li>💻 <b>Decentralized</b> - No single point of failure. Not even if aliens invaded!!!</li>' +
'<li>📜 <b>Smart Contracts</b> - Self-executing code that runs EXACTLY as programmed. <a href="#/smart-contracts">Learn more</a></li>' +
'<li>🔒 <b>Secure</b> - Protected by cryptography and thousands of validators</li>' +
'<li>🌐 <b>Permissionless</b> - Anyone can use it. No application required. No background check.</li>' +
'<li>💰 <b>Programmable Money</b> - ETH is not just money, it\'s PROGRAMMABLE money!!!</li>' +
'</ul>'
) +
adBanner('💡 STILL CONFUSED?!? 💡', 'Don\'t worry, nobody understood the internet in 1995 either!!!', '#/learn', 'Visit the Learn Hub!', 'linear-gradient(135deg,#0088ff,#0044aa,#002266)') +
section('🏗️ wHaT cAn YoU bUiLd?!? 🏗️',
'<div class="card-grid">' +
'<div class="card-item"><span class="card-emoji">🏦</span><div class="card-title">DeFi (Decentralized Finance)</div><div class="card-desc">Be your own bank! Lend, borrow, trade without middlemen. <a href="#/defi">Explore DeFi</a></div></div>' +
'<div class="card-item"><span class="card-emoji">🎨</span><div class="card-title">NFTs (Non-Fungible Tokens)</div><div class="card-desc">Own digital art, music, and more! <a href="#/nft">Learn about NFTs</a></div></div>' +
'<div class="card-item"><span class="card-emoji">🏛️</span><div class="card-title">DAOs (Decentralized Orgs)</div><div class="card-desc">Democracy on the blockchain! <a href="#/dao">Explore DAOs</a></div></div>' +
'<div class="card-item"><span class="card-emoji">🎮</span><div class="card-title">dApps (Decentralized Apps)</div><div class="card-desc">Apps that can\'t be censored! <a href="#/apps">Browse dApps</a></div></div>' +
'</div>'
) +
relatedLinks([
['📚','learn','Learn Hub'],['💰','what-is-ether','What is Ether?'],
['💳','wallets','Ethereum Wallets'],['📄','whitepaper','Ethereum Whitepaper'],
['🗺️','roadmap','Ethereum Roadmap'],['🌐','web3','What is Web3?']
]);
}
};
// ---------- WHAT IS ETHER ----------
PAGES['what-is-ether'] = {
title: 'What is Ether (ETH)?',
content: function() {
return breadcrumb([{link:'#/learn',text:'Learn'},{text:'What is Ether?'}]) +
pageHero('💰', 'WhAt iS eThEr (ETH)?!?', 'The MAGIC INTERNET MONEY that powers the world computer!!!') +
FIRE +
'<div class="price-ticker"><div class="label">~~ LIVE ETH PRICE ~~</div><div class="price eth-price">$2,141.53</div><div class="label"><span class="eth-price-direction" style="color:#44eedd">▲ UP ONLY (hopefully) 🚀</span></div></div>' +
section('💎 eTh ExPlAiNeD!!! 💎',
'<p><font color="#ffff00"><b>Ether (ETH)</b></font>, represented by the symbol <font color="#00ffff" style="font-size:20px"><b>Ξ</b></font>, is Ethereum\'s native cryptocurrency. Think of it like the GAS that powers a car, except the car is a <font color="#ff0000"><b>WORLD COMPUTER</b></font> and the gas is <font color="#00ff00"><b>DIGITAL MONEY</b></font>!!!</p>' +
'<p>Every time you want to do something on Ethereum - send money, interact with a smart contract, mint an NFT - you need to pay a small fee in ETH. This is called <a href="#/gas">gas</a>.</p>'
) +
section('🔥 wHaT mAkEs ETH sPeCiAl?!? 🔥',
'<ul class="feature-list">' +
'<li>🌐 <b>Global</b> - Send ETH to anyone, anywhere, anytime. No bank needed!!!</li>' +
'<li>🔐 <b>Secure</b> - Protected by cryptography, not by some guy in a suit at a bank</li>' +
'<li>📈 <b>Deflationary</b> - ETH gets BURNED with every transaction. Less supply = ???</li>' +
'<li>🥩 <b>Stakeable</b> - Stake your ETH to earn more ETH! <a href="#/staking">Learn about staking</a></li>' +
'<li>🏗️ <b>Programmable</b> - It\'s not just money, it\'s PROGRAMMABLE money!!!</li>' +
'<li>💪 <b>Battle-tested</b> - Securing billions of dollars since 2015</li>' +
'</ul>'
) +
section('📊 ETH bY tHe NuMbErS!!! 📊',
'<table class="stats-table"><tr>' +
'<td><span class="stat-value eth-price-short">$2,141</span><span class="stat-label">Current Price 📈</span></td>' +
'<td><span class="stat-value">~120M</span><span class="stat-label">Total Supply 🪙</span></td>' +
'<td><span class="stat-value">2015</span><span class="stat-label">Year Launched 🎂</span></td>' +
'<td><span class="stat-value">∞</span><span class="stat-label">Potential 🚀</span></td>' +
'</tr></table>'
) +
adBanner('🚀 BUY ETH NOW!!! 🚀', 'Before it goes to $100,000!!! (Not financial advice!!!)', '#/get-eth', 'Get ETH >>>', 'linear-gradient(135deg,#00ff00,#008800)') +
relatedLinks([
['💎','what-is-ethereum','What is Ethereum?'],['💳','wallets','Get a Wallet'],
['🛒','get-eth','How to Get ETH'],['🥩','staking','Stake Your ETH'],
['⛽','gas','Understanding Gas Fees'],['📊','defi','Explore DeFi']
]);
}
};
// ---------- LEARN HUB ----------
PAGES['learn'] = {
title: 'Learn Hub',
content: function() {
return breadcrumb([{text:'Learn'}]) +
pageHero('📚', 'LeArN aBoUt EtHeReUm!!!', 'Your one-stop shop for understanding blockchain, crypto, and the future of the internet!!!') +
FIRE +
section('📖 sTaRt HeRe!!! 📖',
'<p>Whether you\'re a total <font color="#ff0000"><b>N00B</b></font> or a seasoned <font color="#00ff00"><b>CRYPTO VETERAN</b></font>, we\'ve got resources for you!!!</p>' +
'<div class="card-grid">' +
'<div class="card-item"><span class="card-emoji">💎</span><div class="card-title"><a href="#/what-is-ethereum">What is Ethereum?</a></div><div class="card-desc">The basics! Start here if you\'re new.</div></div>' +
'<div class="card-item"><span class="card-emoji">💰</span><div class="card-title"><a href="#/what-is-ether">What is Ether (ETH)?</a></div><div class="card-desc">Learn about the magic internet money!</div></div>' +
'<div class="card-item"><span class="card-emoji">💳</span><div class="card-title"><a href="#/wallets">Ethereum Wallets</a></div><div class="card-desc">Your gateway to the Ethereum world!</div></div>' +
'<div class="card-item"><span class="card-emoji">🌐</span><div class="card-title"><a href="#/web3">What is Web3?</a></div><div class="card-desc">The next evolution of the internet!</div></div>' +
'<div class="card-item"><span class="card-emoji">📜</span><div class="card-title"><a href="#/smart-contracts">Smart Contracts</a></div><div class="card-desc">Code that executes itself! MAGIC!!!</div></div>' +
'<div class="card-item"><span class="card-emoji">⛽</span><div class="card-title"><a href="#/gas">Gas Fees</a></div><div class="card-desc">The cost of doing business on-chain.</div></div>' +
'<div class="card-item"><span class="card-emoji">🔒</span><div class="card-title"><a href="#/security">Security</a></div><div class="card-desc">Don\'t get REKT! Stay safe out there!</div></div>' +
'<div class="card-item"><span class="card-emoji">📖</span><div class="card-title"><a href="#/glossary">Glossary</a></div><div class="card-desc">All the crypto lingo explained!</div></div>' +
'</div>'
) +
adBanner('🧠 KNOWLEDGE IS POWER!!! 🧠', 'And knowing about Ethereum is SUPER POWER!!!', '#/quizzes', 'Test your knowledge!', 'linear-gradient(135deg,#8800ff,#4400aa,#220066)') +
section('🎓 aDvAnCeD tOpIcS!!! 🎓',
'<ul class="feature-list">' +
'<li>📄 <a href="#/whitepaper">Ethereum Whitepaper</a> - The document that started it all!!!</li>' +
'<li>🗺️ <a href="#/roadmap">Ethereum Roadmap</a> - Where we\'re going (hint: THE MOON 🌙)</li>' +
'<li>📜 <a href="#/eips">EIPs</a> - Ethereum Improvement Proposals</li>' +
'<li>🏛️ <a href="#/governance">Governance</a> - How decisions get made</li>' +
'<li>📚 <a href="#/history">History</a> - The complete saga of Ethereum</li>' +
'<li>🖥️ <a href="#/run-a-node">Run a Node</a> - Become part of the network!!!</li>' +
'</ul>'
);
}
};
// ---------- WALLETS ----------
PAGES['wallets'] = {
title: 'Ethereum Wallets',
content: function() {
return breadcrumb([{link:'#/learn',text:'Learn'},{text:'Wallets'}]) +
pageHero('💳', 'EtHeReUm WaLlEtS!!!', 'Your key to the Ethereum world!!! It\'s like a wallet, but DIGITAL and WAY cooler!!!') +
FIRE +
section('🔑 wHaT iS a WaLlEt?!? 🔑',
'<p>An Ethereum wallet is an application that lets you interact with your Ethereum account. Think of it like your <font color="#ff0000"><b>INTERNET BANKING APP</b></font>, except <font color="#ffff00"><b>YOU</b></font> are the bank!!!</p>' +
'<p>Your wallet lets you:</p>' +
'<ul class="feature-list">' +
'<li>💰 Check your ETH balance</li>' +
'<li>📤 Send ETH and tokens to others</li>' +
'<li>🔗 Connect to decentralized applications</li>' +
'<li>🎨 View your NFT collection</li>' +
'</ul>' +
'<div class="alert-box info">💡 <b>IMPORTANT:</b> Your wallet does NOT store your crypto! It stores your <b>keys</b> that give you access to your crypto on the blockchain. Not your keys, not your crypto!!!</div>'
) +
section('🏪 tYpEs Of WaLlEtS!!! 🏪',
'<div class="card-grid">' +
'<div class="card-item"><span class="card-emoji">📱</span><div class="card-title">Mobile Wallets</div><div class="card-desc">Crypto in your pocket! Available on iOS and Android.</div></div>' +
'<div class="card-item"><span class="card-emoji">🖥️</span><div class="card-title">Desktop Wallets</div><div class="card-desc">Full-featured wallets for your computer.</div></div>' +
'<div class="card-item"><span class="card-emoji">🌐</span><div class="card-title">Browser Extension</div><div class="card-desc">Connect to dApps right from your browser!</div></div>' +
'<div class="card-item"><span class="card-emoji">🔐</span><div class="card-title">Hardware Wallets</div><div class="card-desc">Maximum security! Keep your keys OFFLINE.</div></div>' +
'</div>' +
'<p style="text-align:center;margin-top:15px"><a href="#/wallets/find-wallet" style="font-size:18px">🔍 >>> FIND YOUR PERFECT WALLET >>> 🔍</a></p>'
) +
relatedLinks([
['💎','what-is-ethereum','What is Ethereum?'],['💰','get-eth','Get ETH'],
['🔒','security','Stay Safe'],['📱','apps','Explore dApps']
]);
}
};
// ---------- FIND WALLET ----------
PAGES['wallets/find-wallet'] = {
title: 'Find a Wallet',
content: function() {
return breadcrumb([{link:'#/learn',text:'Learn'},{link:'#/wallets',text:'Wallets'},{text:'Find a Wallet'}]) +
pageHero('🔍', 'FiNd YoUr PeRfEcT wAlLeT!!!', 'So many wallets, so little time!!! Let us help you choose!!!') +
FIRE +
section('👛 pOpUlAr WaLlEtS!!! 👛',
'<table class="info-table">' +
'<tr><th>Wallet</th><th>Type</th><th>Best For</th><th>Vibe</th></tr>' +
'<tr><td>🦊 <a href="https://metamask.io/" target="_blank">MetaMask</a></td><td>Browser / Mobile</td><td>Everything!</td><td>The OG. Everyone knows this fox.</td></tr>' +
'<tr><td>🌈 <a href="https://rainbow.me/" target="_blank">Rainbow</a></td><td>Mobile</td><td>NFT collectors</td><td>Pretty colors! Very aesthetic.</td></tr>' +
'<tr><td>💎 <a href="https://www.ledger.com/" target="_blank">Ledger</a></td><td>Hardware</td><td>Maximum security</td><td>Fort Knox for your crypto.</td></tr>' +
'<tr><td>🔵 <a href="https://www.coinbase.com/wallet" target="_blank">Coinbase Wallet</a></td><td>Mobile / Browser</td><td>Beginners</td><td>Easy peasy lemon squeezy.</td></tr>' +
'<tr><td>🏦 <a href="https://trezor.io/" target="_blank">Trezor</a></td><td>Hardware</td><td>Security nerds</td><td>Open source and proud of it.</td></tr>' +
'<tr><td>🐰 <a href="https://rabby.io/" target="_blank">Rabby</a></td><td>Browser</td><td>DeFi power users</td><td>Pre-sign transaction previews!</td></tr>' +
'</table>' +
'<div class="alert-box warning">⚠️ <b>PRO TIP:</b> ALWAYS download wallets from their official websites! Scammers love making fake wallet apps!!!</div>'
) +
relatedLinks([
['💳','wallets','Back to Wallets'],['💰','get-eth','Get ETH'],
['📱','apps','Try Some dApps'],['🔒','security','Stay Safe']
]);
}
};
// ---------- GET ETH ----------
PAGES['get-eth'] = {
title: 'Get ETH',
content: function() {
return breadcrumb([{link:'#/guides',text:'Use'},{text:'Get ETH'}]) +
pageHero('🛒', 'GeT yOuRsElF sOmE ETH!!!', 'Step 1: Get ETH. Step 2: ??? Step 3: PROFIT!!!') +
FIRE +
section('💵 hOw To GeT ETH!!! 💵',
'<p>There are several ways to get your hands on some <font color="#ffff00"><b>sweet, sweet ETH</b></font>:</p>' +
'<ul class="feature-list">' +
'<li>🏦 <b>Centralized Exchanges (CEXs)</b> - Buy with a credit card or bank transfer. The normie way. Works great!</li>' +
'<li>🔄 <b>Decentralized Exchanges (DEXs)</b> - Swap other crypto for ETH. No KYC required! <a href="#/defi">Learn about DeFi</a></li>' +
'<li>🤝 <b>Peer-to-peer</b> - Buy directly from other people. Meet in a Starbucks and do the deal. (Be careful!)</li>' +
'<li>⛏️ <b>Earn It</b> - Get paid in ETH for work or services. The gigachad way!!!</li>' +
'<li>🥩 <b>Staking Rewards</b> - Stake existing ETH to earn more ETH! <a href="#/staking">Learn about staking</a></li>' +
'</ul>'
) +
section('🏦 pOpUlAr ExChAnGeS!!! 🏦',
'<table class="info-table">' +
'<tr><th>Exchange</th><th>Type</th><th>Best For</th></tr>' +
'<tr><td>🔵 <a href="https://www.coinbase.com/" target="_blank">Coinbase</a></td><td>CEX</td><td>Beginners - simple UI, easy bank connection</td></tr>' +
'<tr><td>🟡 <a href="https://www.binance.com/" target="_blank">Binance</a></td><td>CEX</td><td>Low fees, huge selection of trading pairs</td></tr>' +
'<tr><td>🟣 <a href="https://www.kraken.com/" target="_blank">Kraken</a></td><td>CEX</td><td>Security-focused, great for pros</td></tr>' +
'<tr><td>🟢 <a href="https://www.gemini.com/" target="_blank">Gemini</a></td><td>CEX</td><td>Regulated, insured, founded by the Winklevoss twins</td></tr>' +
'<tr><td>🦄 <a href="https://app.uniswap.org/" target="_blank">Uniswap</a></td><td>DEX</td><td>Swap any token, no account needed, fully on-chain</td></tr>' +
'<tr><td>🐄 <a href="https://swap.cow.fi/" target="_blank">CoW Swap</a></td><td>DEX Aggregator</td><td>MEV-protected swaps, best prices across DEXs</td></tr>' +
'</table>' +
'<div class="alert-box warning" style="margin-top:10px">⚠️ <b>IMPORTANT:</b> After buying ETH on a CEX, transfer it to your own <a href="#/wallets/find-wallet">self-custody wallet</a> for maximum security! Not your keys, not your crypto!!!</div>'
) +
adBanner('⚠️ NOT FINANCIAL ADVICE!!! ⚠️', 'Do your own research! We\'re just a website made with Comic Sans!!!', '#/security', 'Learn about security', 'linear-gradient(135deg,#ff8800,#cc4400)') +
section('🔒 sAfEtY fIrSt!!! 🔒',
'<div class="alert-box">' +
'<p><font color="#ff0000"><b>⚠️ SCAM ALERT ⚠️</b></font></p>' +
'<p>Nobody will EVER give you free ETH! If someone promises to double your ETH, they are a <b>SCAMMER</b>!!!</p>' +
'<p>Always:</p>' +
'<ul style="color:#88ff88">' +
'<li>Use reputable exchanges</li>' +
'<li>Enable 2FA (Two-Factor Authentication)</li>' +
'<li>NEVER share your seed phrase</li>' +
'<li>Double-check addresses before sending</li>' +
'</ul>' +
'</div>'
) +
relatedLinks([
['💳','wallets/find-wallet','Get a Wallet First'],['🏦','defi','Explore DeFi'],
['🥩','staking','Stake Your ETH'],['🔒','security','Security Tips']
]);
}
};
// ---------- APPS ----------
PAGES['apps'] = {
title: 'Decentralized Apps (dApps)',
content: function() {
return breadcrumb([{link:'#/guides',text:'Use'},{text:'Apps'}]) +
pageHero('📱', 'DeCeNtRaLiZeD aPpS (dApPs)!!!', 'Apps that can\'t be censored, can\'t be shut down, and can\'t be stopped!!! Like regular apps but COOLER!!!') +
FIRE +
section('🌟 fEaTuReD aPpS!!! 🌟',
'<div class="card-grid">' +
'<div class="card-item"><span class="card-emoji">🦄</span><div class="card-title"><a href="https://app.uniswap.org/" target="_blank">Uniswap</a></div><div class="card-desc">Swap tokens instantly! The king of DEXs. <a href="#/defi">DeFi</a></div></div>' +
'<div class="card-item"><span class="card-emoji">👻</span><div class="card-title"><a href="https://aave.com/" target="_blank">Aave</a></div><div class="card-desc">Lend and borrow crypto without a bank!</div></div>' +
'<div class="card-item"><span class="card-emoji">🎨</span><div class="card-title"><a href="https://opensea.io/" target="_blank">OpenSea</a></div><div class="card-desc">The biggest NFT marketplace! <a href="#/nft">NFTs</a></div></div>' +
'<div class="card-item"><span class="card-emoji">🏦</span><div class="card-title"><a href="https://makerdao.com/" target="_blank">MakerDAO</a></div><div class="card-desc">Generate DAI stablecoin! <a href="#/stablecoins">Stablecoins</a></div></div>' +
'<div class="card-item"><span class="card-emoji">🔮</span><div class="card-title"><a href="https://ens.domains/" target="_blank">ENS</a></div><div class="card-desc">Get your own .eth name! Like a domain but cooler.</div></div>' +
'<div class="card-item"><span class="card-emoji">📊</span><div class="card-title"><a href="https://lido.fi/" target="_blank">Lido</a></div><div class="card-desc">Liquid staking made easy! <a href="#/staking">Staking</a></div></div>' +
'</div>'
) +
section('📂 aPp CaTeGoRiEs!!! 📂',
'<ul class="feature-list">' +
'<li>🏦 <a href="#/defi">DeFi</a> - Decentralized Finance (lending, borrowing, trading)</li>' +
'<li>🎨 <a href="#/nft">NFTs</a> - Digital collectibles, art, music</li>' +
'<li>🎮 Gaming - <a href="https://axieinfinity.com/" target="_blank">Axie Infinity</a>, <a href="https://www.darkforest.xyz/" target="_blank">Dark Forest</a>, <a href="https://lootproject.com/" target="_blank">Loot</a></li>' +
'<li>🏛️ <a href="#/dao">DAOs</a> - Decentralized organizations</li>' +
'<li>🆔 <a href="#/decentralized-identity">Identity</a> - Own your digital identity</li>' +
'<li>💬 Social - <a href="https://warpcast.com/" target="_blank">Farcaster</a>, <a href="https://lens.xyz/" target="_blank">Lens Protocol</a></li>' +
'</ul>'
) +
adBanner('🎮 ETHEREUM: NOT JUST FOR FINANCE!!! 🎮', 'Games, social media, and more!!!', '#/what-is-ethereum', 'Learn more!', 'linear-gradient(135deg,#ff00ff,#8800ff)');
}
};
// ---------- DEFI ----------
PAGES['defi'] = {
title: 'Decentralized Finance (DeFi)',
content: function() {
return breadcrumb([{link:'#/guides',text:'Use'},{text:'DeFi'}]) +
pageHero('🏦', 'DeCeNtRaLiZeD fInAnCe (DeFi)!!!', 'Be your own bank!!! Open 24/7, 365 days a year!!! No suit and tie required!!!') +
FIRE +
section('💰 wHaT iS dEfI?!? 💰',
'<p><font color="#ffff00"><b>DeFi (Decentralized Finance)</b></font> is a term for financial services on public blockchains, primarily Ethereum. With DeFi, you can do most of the things that banks support - earn interest, borrow, lend, buy insurance, trade derivatives, trade assets, and more - but it\'s <font color="#00ff00"><b>FASTER</b></font> and doesn\'t require <font color="#ff0000"><b>PAPERWORK</b></font> or a <font color="#ff0000"><b>THIRD PARTY</b></font>.</p>' +
'<div class="alert-box success">✅ <b>DeFi is:</b> Open to anyone with an internet connection, 24/7, global, transparent, and permissionless!</div>'
) +
section('🔥 pOpUlAr DeFi AcTiViTiEs!!! 🔥',
'<div class="card-grid">' +
'<div class="card-item"><span class="card-emoji">🔄</span><div class="card-title">Swap Tokens</div><div class="card-desc">Trade any token instantly on <a href="https://app.uniswap.org/" target="_blank">Uniswap</a> or <a href="https://swap.cow.fi/" target="_blank">CoW Swap</a>!</div></div>' +
'<div class="card-item"><span class="card-emoji">💸</span><div class="card-title">Lend & Borrow</div><div class="card-desc">Earn interest on <a href="https://aave.com/" target="_blank">Aave</a> or <a href="https://compound.finance/" target="_blank">Compound</a>!</div></div>' +
'<div class="card-item"><span class="card-emoji">🌊</span><div class="card-title">Liquidity Pools</div><div class="card-desc">Provide liquidity on <a href="https://app.uniswap.org/" target="_blank">Uniswap</a> or <a href="https://curve.fi/" target="_blank">Curve</a>!</div></div>' +
'<div class="card-item"><span class="card-emoji">🪙</span><div class="card-title">Stablecoins</div><div class="card-desc">Crypto pegged to the dollar! <a href="#/stablecoins">Learn more</a></div></div>' +
'</div>'
) +
section('📊 DeFi StAtS!!! 📊',
'<table class="stats-table"><tr>' +
'<td><span class="stat-value">$55.67B</span><span class="stat-label">Total Value Locked 🔒</span></td>' +
'<td><span class="stat-value">1000+</span><span class="stat-label">DeFi Protocols 📊</span></td>' +
'<td><span class="stat-value">24/7</span><span class="stat-label">Always Open 🕐</span></td>' +
'<td><span class="stat-value">0</span><span class="stat-label">Bankers Required 🎩</span></td>' +
'</tr></table>'
) +
relatedLinks([
['💰','get-eth','Get ETH to Start'],['🪙','stablecoins','Learn About Stablecoins'],
['📱','apps','Browse DeFi Apps'],['🔗','layer-2','Try Layer 2 for Lower Fees']
]);
}
};
// ---------- NFTs ----------
PAGES['nft'] = {
title: 'Non-Fungible Tokens (NFTs)',
content: function() {
return breadcrumb([{link:'#/guides',text:'Use'},{text:'NFTs'}]) +
pageHero('🎨', 'NoN-fUnGiBlE tOkEnS (NFTs)!!!', 'Right-click save THIS!!! (Just kidding, the blockchain knows who really owns it!!!)') +
FIRE +
section('🖼️ wHaT aRe NFTs?!? 🖼️',
'<p><font color="#ffff00"><b>NFTs (Non-Fungible Tokens)</b></font> are unique digital items whose ownership is tracked on the Ethereum blockchain. They can represent <font color="#ff00ff"><b>art, music, videos, virtual real estate, collectibles</b></font>, and so much more!!!</p>' +
'<p>"Non-fungible" means <font color="#00ffff"><b>ONE OF A KIND</b></font>. Unlike ETH or dollars, each NFT is unique and can\'t be swapped 1:1 for another.</p>' +
'<div class="alert-box info">💡 Think of it like this: Every dollar bill is the same (fungible). But the Mona Lisa? There\'s only ONE (non-fungible)!!!</div>'
) +
section('🎭 wHaT cAn Be An NFT?!? 🎭',
'<ul class="feature-list">' +
'<li>🎨 <b>Digital Art</b> - Paintings, illustrations, generative art on <a href="https://opensea.io/" target="_blank">OpenSea</a> or <a href="https://foundation.app/" target="_blank">Foundation</a></li>' +
'<li>🎵 <b>Music</b> - Songs, albums, beats on <a href="https://sound.xyz/" target="_blank">Sound.xyz</a></li>' +
'<li>🎮 <b>Gaming Items</b> - Swords, skins, virtual land</li>' +
'<li>📜 <b>Documents</b> - Certificates, deeds, tickets</li>' +
'<li>🐵 <b>Profile Pictures</b> - The JPEG that costs more than your car!!!</li>' +
'<li>🏠 <b>Virtual Real Estate</b> - Land in the metaverse</li>' +
'</ul>'
) +
adBanner('🎨 YOUR MS PAINT MASTERPIECE COULD BE WORTH MILLIONS!!! 🎨', 'Probably not though lol', '#/apps', 'Browse NFT marketplaces', 'linear-gradient(135deg,#ff00ff,#ff8800,#ffff00)') +
relatedLinks([
['💎','what-is-ethereum','What is Ethereum?'],['💳','wallets','Get a Wallet'],
['📱','apps','NFT Marketplaces'],['🏦','defi','DeFi']
]);
}
};
// ---------- STABLECOINS ----------
PAGES['stablecoins'] = {
title: 'Stablecoins',
content: function() {
return breadcrumb([{link:'#/guides',text:'Use'},{text:'Stablecoins'}]) +
pageHero('🪙', 'StAbLeCoInS!!!', 'Crypto that doesn\'t make your heart rate go up!!! Stable like a table!!!') +
FIRE +