Untitled

 avatar
unknown
plain_text
a month ago
3.8 kB
1
Indexable
<!DOCTYPE html><html lang="en">
<head>
    <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
            <title>Countdown to 25th Birthday</title>
                <style>
                        body {
                                        font-family: Arial, sans-serif;
                                                    text-align: center;
                                                                background-color: #282c36;
                                                                            color: white;
                                                                                        display: flex;
                                                                                                    flex-direction: column;
                                                                                                                justify-content: center;
                                                                                                                            align-items: center;
                                                                                                                                        height: 100vh;
                        }
                                #countdown {
                                                font-size: 2em;
                                                            margin-top: 20px;
                                }
                                    </style>
                                    </head>
                                    <body>
                                        <h1>Countdown to My 25th Birthday!</h1>
                                            <div id="countdown"></div><script>
                                                function updateCountdown() {
                                                            const targetDate = new Date("2027-09-17T00:00:00");
                                                                    const now = new Date();
                                                                            const diff = targetDate - now;
                                                                                    
                                                                                            const days = Math.floor(diff / (1000 * 60 * 60 * 24));
                                                                                                    const years = Math.floor(days / 365);
                                                                                                            const months = Math.floor((days % 365) / 30);
                                                                                                                    const remainingDays = (days % 365) % 30;

                                                                                                                            document.getElementById("countdown").innerHTML =
                                                                                                                                        `${years} বছর ${months} মাস ${remainingDays} দিন বাকি`;
                                                }

                                                    updateCountdown();
                                                        setInterval(updateCountdown, 1000 * 60 * 60 * 24); // Update daily
                                                        </script>

                                                        </body>
                                                        </html>
                                                }
                                }
                        }
Editor is loading...
Leave a Comment