fork download
  1. <!DOCTYPE html>
  2. <html lang="th">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Happy Valentine ❤️</title>
  7. <style>
  8. body {
  9. text-align: center;
  10. font-family: Arial, sans-serif;
  11. background-color: #ffe6e6;
  12. margin: 0;
  13. padding: 50px;
  14. }
  15. .container {
  16. background: white;
  17. padding: 30px;
  18. border-radius: 15px;
  19. box-shadow: 0 0 10px rgba(0,0,0,0.1);
  20. display: inline-block;
  21. }
  22. h1 {
  23. color: #ff4d4d;
  24. }
  25. button {
  26. background-color: #ff4d4d;
  27. color: white;
  28. padding: 10px 20px;
  29. border: none;
  30. border-radius: 5px;
  31. cursor: pointer;
  32. font-size: 18px;
  33. margin-top: 20px;
  34. }
  35. button:hover {
  36. background-color: #cc0000;
  37. }
  38. #message {
  39. font-size: 20px;
  40. color: #333;
  41. margin-top: 20px;
  42. }
  43. </style>
  44. </head>
  45. <body>
  46. <div class="container">
  47. <h1>Happy Valentine's Day ❤️</h1>
  48. <p>กดปุ่มนี้เพื่อรับข้อความหวานๆ จากใจ</p>
  49. <button onclick="showMessage()">กดเลย!</button>
  50. <p id="message"></p>
  51. </div>
  52.  
  53. <script>
  54. function showMessage() {
  55. const messages = [
  56. "รักเธอที่สุดในโลก ❤️",
  57. "เธอคือทุกอย่างของฉัน 💖",
  58. "ขอบคุณที่อยู่ข้างๆ กันเสมอ 💕",
  59. "ไม่มีใครแทนที่เธอได้เลย 💓",
  60. "อยู่กับฉันตลอดไปนะ 💘",
  61. "เธอคือเหตุผลที่ฉันยิ้มได้ทุกวัน 😊",
  62. "Happy Valentine’s Day! รักเธอมากๆ ❤️"
  63. ];
  64. const randomIndex = Math.floor(Math.random() * messages.length);
  65. document.getElementById("message").textContent = messages[randomIndex];
  66. }
  67. </script>
  68. </body>
  69. </html>
Success #stdin #stdout 0.03s 25520KB
stdin
Standard input is empty
stdout
<!DOCTYPE html>
<html lang="th">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Happy Valentine ❤️</title>
    <style>
        body {
            text-align: center;
            font-family: Arial, sans-serif;
            background-color: #ffe6e6;
            margin: 0;
            padding: 50px;
        }
        .container {
            background: white;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            display: inline-block;
        }
        h1 {
            color: #ff4d4d;
        }
        button {
            background-color: #ff4d4d;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 18px;
            margin-top: 20px;
        }
        button:hover {
            background-color: #cc0000;
        }
        #message {
            font-size: 20px;
            color: #333;
            margin-top: 20px;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>Happy Valentine's Day ❤️</h1>
        <p>กดปุ่มนี้เพื่อรับข้อความหวานๆ จากใจ</p>
        <button onclick="showMessage()">กดเลย!</button>
        <p id="message"></p>
    </div>

    <script>
        function showMessage() {
            const messages = [
                "รักเธอที่สุดในโลก ❤️",
                "เธอคือทุกอย่างของฉัน 💖",
                "ขอบคุณที่อยู่ข้างๆ กันเสมอ 💕",
                "ไม่มีใครแทนที่เธอได้เลย 💓",
                "อยู่กับฉันตลอดไปนะ 💘",
                "เธอคือเหตุผลที่ฉันยิ้มได้ทุกวัน 😊",
                "Happy Valentine’s Day! รักเธอมากๆ ❤️"
            ];
            const randomIndex = Math.floor(Math.random() * messages.length);
            document.getElementById("message").textContent = messages[randomIndex];
        }
    </script>
</body>
</html>