OneCompiler

PROJECT 1

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Secret Message</title> <style> body { font-family: Arial, sans-serif; background-color: #f7f7f7; color: #333; display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; } .container { text-align: center; padding: 20px; border: 2px solid #ccc; border-radius: 10px; background-color: #fff; } .message { display: none; font-size: 18px; margin-top: 20px; color: #d63384; font-weight: bold; } button { background-color: #d63384; color: white; padding: 10px 20px; font-size: 16px; border: none; border-radius: 5px; cursor: pointer; transition: background-color 0.3s; } button:hover { background-color: #a22663; } </style> </head> <body>
<div class="container">
    <h1>Your Crush's Secret Letter</h1>
    <p>Click the button below to reveal a special message from your crush!</p>
    <button onclick="revealMessage()">Reveal the Secret Message</button>

    <p class="message" id="secretMessage">
        Hey there! 💖 I just wanted to let you know that I've been thinking about you a lot lately... 😊
        You're amazing in every way, and I can't wait to see you again! 😘
    </p>
</div>

<script>
    function revealMessage() {
        var message = document.getElementById("secretMessage");
        message.style.display = "block";
    }
</script>
</body> </html>