-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
775 lines (696 loc) · 22 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Nostalgia Mall</title>
<link rel="stylesheet" href="styles.css">
<link rel="icon" type="image/x-icon" href="images/fav.png">
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
</head>
<body class="retro">
<!-- <audio id="background-noise" loop> -->
<!-- <source src="sounds/dialup.mp3" type="audio/mpeg"> -->
<!-- Your browser does not support the audio element. -->
<!-- </audio> -->
<!-- <button onclick="toggleAudio()">Mute/Unmute Background Sound</button> -->
<!-- <header>
<h1>Welcome to Nostalgia Mall</h1>
<nav>
<ul>
<li><button>Home</button></li>
<li><button>Categories</button></li>
<li><button>Best Sellers</button></li>
<li><button>About Us</button></li>
</ul>
</nav>
</header> -->
<header>
<h1>Welcome to Nostalgia Mall</h1>
<nav>
<!-- <frameset>
<frame src="menu.html">
<frame src="main.html">
</frameset> -->
<!-- <a>View Cart (0)</a> -->
</nav>
</header>
<!-- <iframe style="border-radius:12px"
src="https://open.spotify.com/embed/playlist/3C64V048fGyQfCjmu9TIGA?utm_source=generator&theme=0" width="100%"
height="152" frameBorder="0" allowfullscreen=""
allow="autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture" loading="lazy"></iframe> -->
<marquee class="marquee"><strong>Special Offer: Free Tamagotchi with 5 things in cart! * Keep your sound on for fun
sound effects and background music! * Unlock the Retro 90s Kid badge by adding 10 items to your cart!</strong>
<!-- <img src="images/sillybandzad.jpg" alt="sillybandzad"> -->
</marquee>
<!-- <audio id="audio1" src="audio/1.mp3"></audio>
<audio id="audio2" src="audio/2.mp3"></audio>
<audio id="audio3" src="audio/3.mp3"></audio> -->
<main class="container">
<div id="retro-modal" hidden>
<div class="modal-content">
<p id="modal-message">Loading... Please wait like it’s 1999!</p>
<button onclick="closeModal()">Close</button>
</div>
</div>
<section class="wall-of-fame">
<img src="images/camera.png" width=100px height=100px alt="Retro Cart">
<h2>Shopper’s Wall of Fame</h2>
<hr>
<form id="upload-form">
<label for="profile-picture">Upload Your Retro Memories or Profile Pictures:</label>
<input type="file" id="profile-picture" accept="image/*">
<button type="submit">Upload</button>
</form>
<div id="fame-display"></div>
</section>
<section class="item-listing">
<h1>Items to Buy</h1>
<div class="main">
<table class="product-grid">
<div class="item">
<img src="images/burntcd.jpg" alt="Burnt CD">
<h2>A Burnt CD</h2>
<p>The Spotify of the 2000s!</p>
<button onclick="addToCart('A Burnt CD')">Add to Cart</button>
</div>
<div class="item">
<img src="images/scholasticbookorder.jpg" alt="Scholastic Book Fair">
<h2>A Trip to the Scholastic Book Fair</h2>
<p>Who needs Kindles when you have the book fair?</p>
<button onclick="addToCart('A Trip to the Scholastic Book Fair')">Add to Cart</button>
</div>
<div class="item">
<img src="images/playdoh.jpg" alt="Playdoh!">
<h2>Cans of Playdoh</h2>
<p>Mmm, the smell of this image.</p>
<button onclick="addToCart('Cans of Playdoh')">Add to Cart</button>
</div>
<div class="item">
<img src="images/cartridgepencil.jpg" alt="Pencil with cartridges">
<h2>A Pencil With Cartridges</h2>
<p>The pain of losing a cartridge.</p>
<button onclick="addToCart('A Pencil With Cartridges')">Add to Cart</button>
</div>
<div class="item">
<img src="images/ikeamat.jpg" alt="City Maps Mat">
<h2>The Mat We All Had</h2>
<p>The joy of sitting on these is one kids of these days will never know.</p>
<button onclick="addToCart('The Mat We All Had')">Add to Cart</button>
</div>
<div class="item">
<img src="images/fortuneteller.jpg" alt="Fortune Teller">
<h2>Fortune Teller (or Cootie Catcher)</h2>
<p>1, 2, 3, 4. Pick one.</p>
<button onclick="addToCart('Fortune Teller')">Add to Cart</button>
</div>
<div class="item">
<img src="images/ipod.jpg" alt="iPod">
<h2>The iPod Nano</h2>
<p>Again, who needs Spotify?</p>
<button onclick="addToCart('The iPod Nano')">Add to Cart</button>
</div>
<div class="item">
<img src="images/motorola.jpg" alt="Motorola">
<h2>A Motorola Flip Phone</h2>
<p>Typing speed ... 10 WPM.</p>
<button onclick="addToCart('A Motorola Flip Phone')">Add to Cart</button>
</div>
<div class="item">
<img src="images/gimp.jpg" alt="Gimp">
<h2>Gimps/Scoobidoos</h2>
<p>Was it just me, or did everyone have their friends start one of these off?</p>
<button onclick="addToCart('Gimps')">Add to Cart</button>
</div>
<div class="item">
<img src="images/fisherprice.jpg" alt="Fisher Price">
<h2>The Cutest Phones</h2>
<p>Nothing beated the joy of spinning the dial on these phones.</p>
<button onclick="addToCart('The Cutest Phones')">Add to Cart</button>
</div>
<div class="item">
<img src="images/nintendods.webp" alt="DS">
<h2>Nintendo DS</h2>
<p>What was your first game? Mine was Mario.</p>
<button onclick="addToCart('Nintendo DS')">Add to Cart</button>
</div>
<div class="item">
<img src="images/clubpenguin.webp" alt="Club Penguin Cards">
<h2>Club Penguin Membership!</h2>
<p>I spent hours on Club Penguin.</p>
<button onclick="addToCart('Club Penguin Membership')">Add to Cart</button>
</div>
<div class="item">
<img src="images/highlights.jpg" alt="Highlights">
<h2>A Copy of the Highlights Magazine</h2>
<p>My daily puzzles have been replaced by my phone :(</p>
<button onclick="addToCart('A Copy of the Highlights Magazine')">Add to Cart</button>
</div>
<div class="item">
<img src="images/spacemaker.jpg" alt="Spacemaker">
<h2>Spacemaker Pencil Box</h2>
<p></p>
<button onclick="addToCart('Spacemaker Pencil Box')">Add to Cart</button>
</div>
<div class="item">
<img src="images/sillybandz.jpg" alt="Silly Bandz">
<h2>Silly Bandz</h2>
<p>The fashion icon and status symbol of the 2000s.</p>
<button onclick="addToCart('Silly Bandz')">Add to Cart</button>
</div>
<div class="item">
<img src="images/twinkletoes.jpeg" alt="Twinkle Toes">
<h2>The OG Twinkle Toes</h2>
<p>Sooo bling.</p>
<button onclick="addToCart('The OG Twinkle Toes')">Add to Cart</button>
</div>
<div class="item">
<img src="images/chucke.jpg" alt="Chuck E Cheese">
<h2>A Bucket of Coins at Chuck E Cheese</h2>
<p></p>
<button onclick="addToCart('A Bucket of Coins at Chuck E Cheese')">Add to Cart</button>
</div>
<div class="item">
<img src="images/razor.jpg" alt="Razor">
<h2>Razor Scooter</h2>
<p>The original segue.</p>
<button onclick="addToCart('Razor Scooter')">Add to Cart</button>
</div>
<div class="item">
<img src="images/disco.webp" alt="Disco">
<h2>The Cutest Disco Ball</h2>
<p></p>
<button onclick="addToCart('The Cutest Disco Ball')">Add to Cart</button>
</div>
<div class="item">
<img src="images/pencilgrip.webp" alt="Pencil Grips">
<h2>Some Pencil Grips in Your Pencil Box</h2>
<p></p>
<button onclick="addToCart('Some Pencil Grips in Your Pencil Box')">Add to Cart</button>
</div>
<div class="item">
<img src="images/blockbuster.jpg" alt="Blockbuster">
<h2>A Trip to a Blockbuster Store</h2>
<p></p>
<button onclick="addToCart('A Trip to a Blockbuster Store')">Add to Cart</button>
</div>
<div class="item">
<img src="images/s.webp" alt="Cool S">
<h2>Tutorial on How to Draw the Cool S</h2>
<p></p>
<button onclick="addToCart('A Trip to a Blockbuster Store')">Add to Cart</button>
</div>
</table>
</div>
</section>
<aside class="cart">
<img src="images/trolley.png" width=100px height=100px alt="Retro Cart">
<h2 id="cart-title">Your Cart (0)</h2>
<hr>
<ul id="cart-items">
<!-- Cart items will be displayed here -->
</ul>
<hr>
<button id="check" onclick="showModal('One day, hopefully we\'ll be able to pay online!')"><strong>CHECKOUT</strong></button>
</aside>
</main>
<footer>
<p class="blink">You’re visitor #0000456 to this mall!</p>
<p>© 2000 Nostalgia Mall. All Rights Reserved.</p>
</footer>
</body>
<style>
@import url('https://fonts.cdnfonts.com/css/jokerman');
@import url('https://fonts.cdnfonts.com/css/public-pixel');
.hidden {
display: none;
}
.glitter {
position: absolute;
width: 8px;
height: 8px;
border-radius: 50%;
background: radial-gradient(circle, pink, white);
pointer-events: none;
/* Prevent interference with clicking */
animation: fade-and-move 1s ease-out forwards;
}
@keyframes fade-and-move {
0% {
opacity: 1;
transform: translate(0, 0) scale(1);
}
100% {
opacity: 0;
transform: translate(-10px, -30px) scale(0.5);
}
}
#retro-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8);
z-index: 1000;
display: flex;
justify-content: center;
align-items: center;
}
.modal-content {
background-color: #fff;
border: 4px solid #00f;
padding: 20px;
text-align: center;
font-family: 'Press Start 2P', sans-serif;
color: #000;
width: 300px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.modal-content button {
margin-top: 10px;
padding: 10px;
font-family: 'Press Start 2P', sans-serif;
background-color: #00f;
color: #fff;
border: none;
cursor: url('images/cursorwandhover.cur'), auto;
}
.modal-content button:hover {
background-color: #0056b3;
}
* {
cursor: url('images/cursorwand.cur'), auto;
}
body.retro {
background: linear-gradient(45deg, #ff00d4, #66ffed);
color: #000;
font-family: 'Comic Sans MS', cursive;
margin: 0;
padding: 0;
cursor: url('images/cursorwand.cur'), auto;
}
#check {
font-family: 'Courier New', Courier, monospace;
background: #ff33cc;
color: white;
text-decoration: none;
}
.marquee {
font-size: 18px;
color: red;
background: yellow;
border: 2px solid black;
padding: 5px;
font-family: 'Courier New', monospace;
}
.blink {
animation: blinker 1s step-start infinite;
/* color: red; */
font-family: 'Impact', sans-serif;
}
@keyframes blinker {
50% {
opacity: 0;
}
}
header {
background-color: #ff6699;
color: #fff;
text-align: center;
padding: 20px;
font-family: 'Impact', sans-serif;
text-shadow: 5px 2px #ff6a00;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
header h1 {
font-size: 2.5em;
margin: 0;
font-family: 'Public Pixel', cursive;
}
header nav {
margin-top: 10px;
}
header a {
color: #fff;
text-decoration: none;
padding: 10px;
border: 2px solid #ff6699;
/* border-radius: 5px; */
background-color: #ff3399;
}
header a:hover {
background-color: #ff0066;
}
.container {
background-color: #FFFF00;
/* Bright yellow background */
display: flex;
justify-content: space-around;
padding: 20px;
background: url('images/retro-bg.gif');
/* Add a retro background image */
/* border: 3px solid #0000FF; Add a solid border */
box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
/* Add a shadow for depth */
font-family: 'Comic Sans MS', cursive;
/* Use a nostalgic font */
}
.item {
background-color: #FFFF00;
/* Bright yellow background */
border: 3px solid #FF00FF;
/* Bright pink border */
text-align: center;
padding: 10px;
transition: transform 0.2s, border-color 0.3s;
box-shadow: 5px 5px #000;
/* Add a shadow for depth */
font-family: 'Comic Sans MS', cursive;
/* Use a nostalgic font */
}
.item:hover {
transform: rotate(-5deg);
border-color: #00FF00;
/* Change border color on hover */
}
.item h2 {
font-size: 1.5em;
/* Increase font size */
margin: 5px 0;
color: #FF00FF;
/* Bright pink color */
text-shadow: 1px 1px #00ff3c;
/* Add a shadow for depth */
}
.item p {
color: #0000FF;
/* Bright blue color */
font-size: 1em;
/* Increase font size */
}
.item button {
background: #00FF00;
/* Bright green background */
border: 2px solid #0000FF;
/* Bright blue border */
color: #000;
/* Black text color */
font-size: 1em;
/* Increase font size */
padding: 5px;
text-shadow: 1px 1px #FFF;
/* Add a shadow for depth */
font-family: 'Comic Sans MS', cursive;
/* Use a nostalgic font */
transition: background-color 0.3s, transform 0.2s;
cursor: url('images/cursorwandhover.cur'), auto;
}
.item button:hover {
background: #00ffe1;
/* Change background color on hover */
transform: scale(1.1);
}
.cart {
width: 30%;
background-color: #FFFF00;
/* Bright yellow background */
padding: 20px;
/* border: 3px solid #FF00FF; Bright pink border */
box-shadow: 5px 5px #000;
/* Add a shadow for depth */
font-family: 'Comic Sans MS', cursive;
/* Use a nostalgic font */
}
.cart h2 {
text-align: center;
font-size: 1.5em;
/* color: #FF00FF; */
/* text-shadow: 2px 2px #000; */
}
.cart ul {
list-style-type: none;
padding: 0;
}
.cart ul li {
background-color: #00ffbf;
margin: 10px 0;
padding: 10px;
border: 2px solid #0000FF;
box-shadow: 3px 3px #000;
font-family: 'Comic Sans MS', cursive;
}
nav ul {
display: flex;
justify-content: center;
list-style: none;
padding: 0;
margin: 10px 0;
}
nav ul li {
margin: 0 10px;
}
nav ul li button {
background: linear-gradient(to bottom, #ffcc00, #ff9900);
border: 2px solid #ff6600;
color: #fff;
font-family: 'Impact', cursive;
font-weight: bold;
padding: 10px 15px;
cursor: url('images/cursorwandhover.cur'), auto;
/* border-radius: 5px; */
/* text-shadow: 1px 1px #000; */
transition: transform 0.2s, background-color 0.3s;
}
nav ul li button:hover {
background: #ff6600;
transform: scale(1.1);
}
nav a {
text-decoration: underline;
font-family: Serif, cursive;
color: black;
text-shadow: none;
}
.main {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 10px;
padding: 10px;
}
.item {
background-color: #fff;
border: 2px dotted #66ccff;
text-align: center;
padding: 10px;
transition: transform 0.2s, border-color 0.3s;
box-shadow: 3px 3px #333;
}
.item:hover {
transform: rotate(-5deg);
border-color: #ffcc00;
}
.item img {
max-width: 100%;
height: auto;
}
.item h2 {
font-size: 1.2em;
margin: 5px 0;
color: #ff33cc;
/* text-shadow: 1px 1px #000; */
}
.item p {
color: #333;
font-size: 0.9em;
}
#file-upload-button {
background: none;
}
.item button {
background: none;
border: none;
color: #0000EE;
font-size: 0.9em;
padding: 5px;
/* text-shadow: 1px 1px #000; */
text-decoration: underline;
font-family: 'Jokerman', cursive;
/* border-radius: 5px; */
transition: background-color 0.3s, transform 0.2s;
cursor: url('images/cursorwandhover.cur'), auto;
}
.item button:hover {
/* background: #33cc33; */
transform: scale(1.05);
}
.item-listing {
background-color: #00ff3c;
width: 60%;
display: flex;
flex-wrap: wrap;
justify-content: space-around;
border: 2px solid black;
}
footer {
text-align: center;
background: #ff99cc;
color: #fff;
padding: 10px;
font-size: 0.9em;
box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
}
.wall-of-fame {
/* margin-top: 40px; */
width: 20%;
text-align: center;
/* font-family: 'Jokerman', cursive; */
border: 2px solid black;
/* padding: 7px; */
background-color: #ea00ff;
padding: 20px;
/* border: 3px solid #FF00FF;*/
box-shadow: 5px 5px #000;
font-family: 'Comic Sans MS', cursive;
}
#fame-display {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
}
#fame-display img {
max-width: 150px;
height: auto;
border: 2px solid #ff33cc;
/* border-radius: 10px; */
transition: transform 0.2s, filter 0.3s;
}
#fame-display img:hover {
transform: scale(1.1);
filter: pixelate(5px);
}
audio {
display: none;
}
</style>
<script>
var sound = new Audio("audio/cha-ching-7053.mp3");
var audio1 = new Audio("audio/1.mp3");
var audio2 = new Audio("audio/2.mp3");
var audio3 = new Audio("audio/3.mp3");
audio1.autoplay = true;
let visitorCount = 456;
// let cart = 0;
document.addEventListener('DOMContentLoaded', function () {
console.log('DOM fully loaded and parsed');
const buttons = document.querySelectorAll('.item button');
console.log('Buttons found:', buttons);
// const audio1 = document.getElementById('audio1');
// const audio2 = document.getElementById('audio2');
// const audio3 = document.getElementById('audio3');
// audio1.play();
audio1.addEventListener('ended', function () {
audio2.play();
audio1.currentTime = 0;
});
audio2.addEventListener('ended', function () {
audio3.play();
audio2.currentTime = 0;
});
audio3.addEventListener('ended', function () {
audio1.play();
audio3.currentTime = 0;
});
// buttons.forEach(button => {
// button.addEventListener('click', () => {
// cart += 1;
// document.getElementById('cart-title').textContent = `Your Cart (${cart})`;
// // console.log('Button clicked');
// console.log(cart);
// // alert('Item added to cart!');
// if (cart == 5) {
// alert('Congratulations! You have unlocked a free Tamagotchi!');
// }
// });
// });
});
function showModal(message) {
const modal = document.getElementById('retro-modal');
const modalMessage = document.getElementById('modal-message');
modalMessage.textContent = message;
// modal.classList.remove('hidden');
modal.style.display = "flex";
}
function closeModal() {
const modal = document.getElementById('retro-modal');
// modal.classList.add('hidden');
modal.style.display = "none";
}
let cart = [];
function addToCart(item) {
cart.push(item);
document.getElementById('cart-title').innerText = `Your Cart (${cart.length})`;
const cartItems = document.getElementById('cart-items');
const listItem = document.createElement('li');
listItem.textContent = item;
cartItems.appendChild(listItem);
sound.play();
if (cart.length == 5) {
showModal('Congratulations! You have unlocked a free Tamagotchi!');
const Tamagotchi = document.createElement('li');
Tamagotchi.textContent = 'Free Tamagotchi';
cartItems.appendChild(Tamagotchi)
}
if (cart.length == 10) {
showModal('Congratulations! You have unlocked the Rad Retro 90s Kid badge! 🏆');
}
sound.currentTime = 0;
}
const audio = document.getElementById('background-noise');
function toggleAudio() {
if (audio.paused) {
audio.play();
} else {
audio.pause();
}
}
document.querySelector('footer p:first-child').textContent = `You’re visitor #${('000000' + visitorCount).slice(-7)} to this mall!`;
// function loadAnimation() {
// showModal('Loading... Please wait like it’s 1999!');
// }
// window.onload = loadAnimation;
document.body.addEventListener('keydown', (e) => {
// if (e.key === 'ArrowUp' && e.ctrlKey) {
showModal('Konami Code activated! Welcome to the secret 90s desktop view.');
// }
});
document.getElementById('upload-form').addEventListener('submit', function (event) {
event.preventDefault();
const fileInput = document.getElementById('profile-picture');
const file = fileInput.files[0];
if (file) {
const reader = new FileReader();
reader.onload = function (e) {
const imageElement = document.createElement('img');
imageElement.src = e.target.result;
imageElement.style.filter = 'sepia(100%)'; // Apply sepia filter as default
document.getElementById('fame-display').appendChild(imageElement);
};
reader.readAsDataURL(file);
}
});
document.addEventListener("mousemove", (e) => {
// Create a glitter element
const glitter = document.createElement("div");
glitter.classList.add("glitter");
// Position the glitter at the cursor
glitter.style.left = `${e.pageX}px`;
glitter.style.top = `${e.pageY}px`;
// Append glitter to the body
document.body.appendChild(glitter);
// Remove the glitter after the animation
setTimeout(() => glitter.remove(), 1000);
});
</script>
</html>