r/learnjavascript • • 13h ago

I created a meme archive. How to improved it.

1 Upvotes

hbHello ,
recently, I created this js project. It's a meme archive.

The link of it is: here

And the code is here:

<!DOCTYPE html>
<html lang="fr">
<head>
        <meta charset="UTF-8">
        <title>Meme Archive</title>
        <style>
            h1 {
                font-size: 50px;
                font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
                text-align: center;
            }


            #sixSeven {
                border-radius: 25px;
                background-color: rgb(129, 255, 255);
                width: 300px;
                height: 400px;
                position: relative;
                bottom: 300px;
                left: 585px;


            }


             #sixSeven:hover {
                transition: 0.5s ease;
                transform: scale(1.05);
            }


            #image1 {
                position: absolute;
                border-top-right-radius: 25px;
                border-top-left-radius: 25px;
                width: 300px;
                height: 170px;
            }


            #Explications1 {
                position: absolute;
                left: 15px;
                top: 170px;
            }


            #p1 {
                text-align: center;
            }


            #input1 {
                position: relative;
                left: 650px;
            }






             #forSure {
                border-radius: 25px;
                background-color: rgb(129, 255, 255);
                width: 300px;
                height: 400px;
                position: relative;
                bottom: 700px;
                left: 585px;


            }


             #forSure:hover {
                transition: 0.5s ease;
                transform: scale(1.05);
            }


            #image2 {
                position: absolute;
                border-top-right-radius: 25px;
                border-top-left-radius: 25px;
                width: 300px;
                height: 170px;
            }


             #Explications2 {
                position: absolute;
                left: 15px;
                top: 170px;
            }






            #italianBrainrot {
                border-radius: 25px;
                background-color: rgb(129, 255, 255);
                width: 300px;
                height: 400px;
                position: relative;
                bottom: -100px;
                left: 85px;


            }


             #italianBrainrot:hover {
                transition: 0.5s ease;
                transform: scale(1.05);
            }


            #image3 {
                position: absolute;
                border-top-right-radius: 25px;
                border-top-left-radius: 25px;
                width: 300px;
                height: 170px;
            }


             #Explications3 {
                position: absolute;
                left: 15px;
                top: 170px;
            }






            #rockThatBody {
                border-radius: 25px;
                background-color: rgb(129, 255, 255);
                width: 300px;
                height: 400px;
                position: relative;
                bottom: 1100px;
                left: 1050px;


            }


             #rockThatBody:hover {
                transition: 0.5s ease;
                transform: scale(1.05);
            }


            #image4 {
                position: absolute;
                border-top-right-radius: 25px;
                border-top-left-radius: 25px;
                width: 300px;
                height: 170px;
            }


             #Explications4 {
                position: absolute;
                left: 15px;
                top: 170px;
            }






             #bismillahTenebre {
                border-radius: 25px;
                background-color: rgb(129, 255, 255);
                width: 300px;
                height: 400px;
                position: relative;
                bottom: 1500px;
                left: 1050px;


            }


             #bismillahTenebre:hover {
                transition: 0.5s ease;
                transform: scale(1.05);
            }


            #image5 {
                position: absolute;
                border-top-right-radius: 25px;
                border-top-left-radius: 25px;
                width: 300px;
                height: 170px;
            }


             #Explications5 {
                position: absolute;
                left: 15px;
                top: 170px;
            }






             #verity {
                border-radius: 25px;
                background-color: rgb(129, 255, 255);
                width: 300px;
                height: 400px;
                position: relative;
                bottom: 1900px;
                left: 140px;


            }


             #verity:hover {
                transition: 0.5s ease;
                transform: scale(1.05);
            }


            #image6 {
                position: absolute;
                border-top-right-radius: 25px;
                border-top-left-radius: 25px;
                width: 300px;
                height: 170px;
            }


             #Explications6 {
                position: absolute;
                left: 15px;
                top: 170px;
            }







              #chillGuy {
                border-radius: 25px;
                background-color: rgb(129, 255, 255);
                width: 300px;
                height: 400px;
                position: relative;
                bottom: 2300px;
                left: 110px;


            }


             #chillGuy:hover {
                transition: 0.5s ease;
                transform: scale(1.05);
            }


            #image7 {
                position: absolute;
                border-top-right-radius: 25px;
                border-top-left-radius: 25px;
                width: 300px;
                height: 170px;
            }


             #Explications7 {
                position: absolute;
                left: 15px;
                top: 170px;
            }






            #yusufDikeç {
                border-radius: 25px;
                background-color: rgb(129, 255, 255);
                width: 300px;
                height: 400px;
                position: relative;
                bottom: 2700px;
                left: 585px;


            }


             #yusufDikeç:hover {
                transition: 0.5s ease;
                transform: scale(1.05);
            }


            #image8 {
                position: absolute;
                border-top-right-radius: 25px;
                border-top-left-radius: 25px;
                width: 300px;
                height: 170px;
            }


             #Explications8 {
                position: absolute;
                left: 15px;
                top: 170px;
            }
        </style>
    </head>
    <body>
        <h1>Meme Archive</h1>
        <input type="range" id="input1" name="input1" min="2016" max="2026">
        <p id="p1">Valeur : <output id="value"></output></p>


         <div id="italianBrainrot" style="opacity: 0;">
            <img src="https://upload.wikimedia.org/wikipedia/commons/d/df/Italian_brainrot_characters.png?utm_source=fr.wikipedia.org&utm_campaign=imageinfo&utm_content=thumbnail_unscaled" id="image3">
            <p id="Explications3"><b>Nom :</b> Italian brainrot<br><b>Date de création :</b> janvier <br>2026<br><b>Fondateur du meme :</b> <br>@eZburger401</p>
        </div>


        <div id="sixSeven" style="opacity: 0;">
            <img src="https://thumb.wikimedia.org/wikipedia/commons/thumb/7/7f/Hilt_Boling_and_Family_Tour_NASA%27s_Kennedy_Space_Center_%28NHQ20260403_admin_0004%29.jpg/3840px-Hilt_Boling_and_Family_Tour_NASA%27s_Kennedy_Space_Center_%28NHQ20260403_admin_0004%29.jpg?utm_source=fr.wikipedia.org&utm_campaign=imageinfo&utm_content=thumbnail" id="image1">
            <p id="Explications1"><b>Nom :</b> Six seven<br><b>Date de création :</b> 31 mars <br>2025<br><b>Fondateur du meme :</b> <br>Maverick Trevillian<br><b>Lien du meme :</b><a href="https://youtube.com/shorts/IQcq9lFWO6s?si=UPKy9QM-n_VWDyr7" target="_blank"> ici</a></p>
        </div>


         <div id="forSure" style="opacity: 0;">
            <img src="https://www.franceinfo.fr/pictures/cepPsqXDbjbACYYDyHXeV_Yrg8w/0x368:7074x4348/2656x1494/filters:format(avif):quality(50)/2026/01/26/000-93d48pb-69772e1cc5515214436293.jpg" id="image2">
            <p id="Explications2"><b>Nom :</b> for sure<br><b>Date de création :</b> 20 janvier <br>2026<br><b>Fondateur du meme :</b> <br>Emmanuel Macron<br>Lien du meme :<a href="https://youtu.be/zOQI49l6hfo?si=n0JfYLOTaZIxPzV-" target="_blank"> ici</a></p>
        </div>


         <div id="rockThatBody" style="opacity: 0;">
            <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSnCdVeJAEI_G05JZeXIHE0gM06cmhJ2-GX61d2tcnisA&s=10" id="image4">
            <p id="Explications4"><b>Nom :</b> Rock That Body<br><b>Date de création :</b> 2025<br><b>Fondateur du meme :</b> <br>TikTok</p>
        </div>


          <div id="bismillahTenebre" style="opacity: 0;">
            <img src="https://images.euronews.com/articles/stories/09/95/81/86/1536x864_cmsv2_8728710f-f658-56a7-b62d-5cb17254890a-9958186.jpg" id="image5">
            <p id="Explications5"><b>Nom :</b> Bismillah c'est les ténèbres<br><b>Date de création :</b> octobre 2026<br><b>Fondateur du meme :</b> <br>probablement un policier</p>
        </div>


        <div id="verity" style="opacity: 0;">
            <img src="https://thumb.wikimedia.org/wikipedia/commons/thumb/5/55/Verity_normal.svg/500px-Verity_normal.svg.png?utm_source=en.wikipedia.org&utm_campaign=parser&utm_content=thumbnail" id="image6">
            <p id="Explications6"><b>Nom :</b> Verity<br><b>Date de création :</b> 30 mai 2026<br><b>Fondateur du meme :</b> <br>ThatMob</p>
        </div>


           <div id="chillGuy" style="opacity: 0;">
            <img src="https://upload.wikimedia.org/wikipedia/en/c/c7/Chill_guy_original_artwork.jpg?utm_source=en.wikipedia.org&utm_campaign=imageinfo&utm_content=thumbnail_unscaled" id="image7">
            <p id="Explications7"><b>Nom :</b> Chill Guy<br><b>Date de création (en tant que meme) :</b> 30 août 2024<br><b>Fondateur du meme :</b> <br>.blitzerzz</p>
        </div>


          <div id="yusufDikeç" style="opacity: 0;">
            <img src="https://assets.maestronewsroom.com/media/d244f337-50ee-438a-81b5-0fd22fa9750f/arabnews-fr-import/2024/09/proxy/JO_2024_TIEUR_TURC_POSE_PROTECTION.webp" id="image8">
            <p id="Explications8"><b>Nom :</b> Yusuf Dikeç<br><b>Date de création (en tant que meme) :</b>2024<br><b>Fondateur du meme :</b> <br>inconnu</p>
        </div>
        <script>
            const value = document.querySelector("#value");
            const input = document.querySelector("#input1");
            value.textContent = input.value;
            input.addEventListener("input", (event) => {
                value.textContent = event.target.value;


                  if (input.value == "2016") {
             
            }


             if (input.value == "2017") {
                
            }


             if (input.value == "2018") {
                
            }


             if (input.value == "2019") {
                
            }


             if (input.value == "2020") {
                
            }


             if (input.value == "2021") {
                
            }


             if (input.value == "2022") {
        
            }


             if (input.value == "2023") {
                
            }


             if (input.value == "2024") {
                  document.getElementById("chillGuy").style.opacity="1";  
                  document.getElementById("yusufDikeç").style.opacity="1"; 
            }


             if (input.value == "2025") {
                document.getElementById("sixSeven").style.opacity="1"; 
                document.getElementById("italianBrainrot").style.opacity="1";  
                document.getElementById("rockThatBody").style.opacity="1";   
            }


             if (input.value == "2026") {
               document.getElementById("forSure").style.opacity="1"; 
                document.getElementById("bismillahTenebre").style.opacity="1"; 
                  document.getElementById("verity").style.opacity="1";   
            }


             if (input.value != "2024") {
                 document.getElementById("chillGuy").style.opacity="0";   
                  document.getElementById("yusufDikeç").style.opacity="0";  
            }


            if (input.value != "2025") {
                 document.getElementById("sixSeven").style.opacity="0";
                document.getElementById("italianBrainrot").style.opacity="0";
                 document.getElementById("rockThatBody").style.opacity="0";    
            }


            if (input.value != "2026") { 
                document.getElementById("forSure").style.opacity="0";   
                 document.getElementById("bismillahTenebre").style.opacity="0"; 
                 document.getElementById("verity").style.opacity="0";  
            }


            });
        </script>
    </body>
</html><!DOCTYPE html>
<html lang="fr">

Thank you!


r/learnjavascript • • 9h ago

Need help in learning (any help is appreciated)

2 Upvotes

Hello y'all,

TLDR => TL;DR: I know Python and DrRacket from university, have 8 months to learn JavaScript for a real hospital/health-agency project (where I can't use AI because of patient data), and I'm struggling to build projects from scratch (as practice incase I have to build something from scratch) without assignment instructions holding my hand. plz help :(

BACKGROUND:

I'm a health informatics student, and in 8 months I'll start working with my professor of practice on real projects that will actually be deployed in hospitals or health agencies. I'm super excited, but she recently told me to get my JavaScript skills up before we start and because we'll be dealing with patient data, using AI to write code is completely off the table.

To be completely honest, I've mostly taken non-specialist CS courses on the side (OOP, data structures, algorithms, hardware), and not a single one had real open-ended projects. I told my prof upfront that I have zero (if not negative) JS knowledge and need time to prep, and being a very kind person, she just said, "I believe in you." I've been following BroCode's JS tutorial and I get the basic syntax like why JS randomly throws null/undefined or returns 0.

PROBLEM:

I hit a point where I tried to build a practice project on my own something classic like Pac-Man or chess and the more I stared at it, the more cooked I felt. I couldn't even find a starting point. I've gotten so used to assignments telling me "do step A, then step B" that I freeze without a rubric.

Even though I know the theory of user stories and breaking down requirements from my CS classes, I'm worried that when my prof asks me to connect hospital departments or engineer and optimize a real system, I'm going to be completely out of my depth.

I already know Python and DrRacket from uni, so I'm not starting from zero with programming logic but just with building real things in JS on my own. How do I get past blank-page paralysis and train myself to architect projects from scratch? Any advice is appreciated :)

I also asked her to show me a sample code that her pervious students also had to make on the job and GOOOOD DAM I couldn't read after the imports. Like there were 7 arrow functions in total of 4 lines which was throwing me off so badly.

So sorry for yapping too much but I am at a point I will get any help possible


r/learnjavascript • • 14h ago

Video: how I built a 3D game in 1KB of JavaScript, step by step

4 Upvotes

📺 Video: https://youtu.be/rFjkGBYDIP0
🕹️ Play the game: https://js1024.fun/demos/2026/25/bar

Skydreams is an endless 3D arcade game that won first place in JS1024, a contest where the whole program has to fit in 1024 bytes. No WebGL or libraries, just the 2D canvas.

In the video I build it up one piece at a time, starting from a flat grid, so you can see how each part works:

  • Drawing in 3D with one simple projection function
  • Generating an endless track procedurally
  • A basic game loop with gravity and jumping
  • Tricks for making code smaller

You don't need to know anything about 3D or game dev to follow along. Hope it's helpful, and happy to answer any questions!