djono66

index

Sep 6th, 2025 (edited)
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.83 KB | Gaming | 0 0
  1. <!DOCTYPE html>
  2. <html lang="id">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6.     <title>Game Tebak Kata</title>
  7.     <link rel="stylesheet" href="style.css">
  8.     <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet">
  9. </head>
  10. <body>
  11.  
  12.     <div class="container" id="landingPage">
  13.         <h1>Selamat Datang di Game Tebak Kata!</h1>
  14.         <div class="input-group">
  15.             <label for="playerName">Masukkan Namamu:</label>
  16.             <input type="text" id="playerName" placeholder="Nama..." maxlength="20">
  17.         </div>
  18.         <div class="input-group">
  19.             <label for="wordLength">Pilih Level:</label>
  20.             <select id="wordLength">
  21.                 <option value="4">4 Huruf (Mudah)</option>
  22.                 <option value="5">5 Huruf (Sedang)</option>
  23.                 <option value="6">6 Huruf (Sulit)</option>
  24.                 <option value="7">7 Huruf (Sangat Sulit)</option>
  25.             </select>
  26.         </div>
  27.         <button id="startButton">Mulai Bermain</button>
  28.     </div>
  29.  
  30.     <div class="container hidden" id="gamePage">
  31.         <h2 id="welcomeMessage"></h2>
  32.         <h1>Game Tebak Kata</h1>
  33.         <p>Tebak kata rahasia!</p>
  34.         <p id="wordLengthHint"></p>
  35.         <div class="game-area">
  36.             <input type="text" id="guessInput" placeholder="Masukkan tebakanmu..." maxlength="7">
  37.             <button id="guessButton">Tebak</button>
  38.         </div>
  39.         <div id="guessesList"></div>
  40.         <div class="result-area">
  41.             <p id="message"></p>
  42.             <p id="correctPosition"></p>
  43.             <p id="correctWrongPosition"></p>
  44.         </div>
  45.         <button id="resetButton">Mulai Ulang</button>
  46.     </div>
  47.  
  48.     <script src="script.js"></script>
  49. </body>
  50. </html>
Advertisement
Add Comment
Please, Sign In to add comment