|
4 | 4 | <meta charset="UTF-8">
|
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 | 6 | <title>Sudoku Checker</title>
|
7 |
| - <link rel="stylesheet" href="style.css"> |
| 7 | + <script src="https://cdn.tailwindcss.com"></script> |
| 8 | + <link rel="stylesheet" href="styles.css"> |
8 | 9 | </head>
|
9 |
| -<body> |
10 |
| - <div class="container"> |
11 |
| - <h1>Sudoku Checker</h1> |
12 |
| - <div class="grid" id="sudokuGrid"> |
13 |
| - <!-- 81 input cells for Sudoku puzzle will be dynamically generated here --> |
| 10 | +<body class="bg-gray-800 text-white flex flex-col items-center justify-center min-h-screen"> |
| 11 | + <div class="bg-gray-900 p-10 rounded-lg shadow-lg text-center"> |
| 12 | + <h1 class="text-3xl font-bold mb-6 text-white">Sudoku Checker</h1> |
| 13 | + |
| 14 | + <!-- Sudoku Grid --> |
| 15 | + <div class="bg-gray-200 rounded-lg p-4 flex justify-center items-center mb-6"> |
| 16 | + <div id="sudokuGrid" class="sudoku-grid"></div> |
14 | 17 | </div>
|
15 |
| - <button class="button" onclick="validateSudoku()">Validate</button> |
16 |
| - <div class="result" id="result"></div> |
| 18 | + |
| 19 | + <!-- Dropdown and input for specific rows --> |
| 20 | + <div class="mb-6"> |
| 21 | + <label for="rowSelect" class="block mb-2 text-lg">Select Row:</label> |
| 22 | + <select id="rowSelect" class="block w-full p-2 rounded border-gray-300 bg-white text-black cursor-pointer"> |
| 23 | + <option value="0">Row 1</option> |
| 24 | + <option value="1">Row 2</option> |
| 25 | + <option value="2">Row 3</option> |
| 26 | + <option value="3">Row 4</option> |
| 27 | + <option value="4">Row 5</option> |
| 28 | + <option value="5">Row 6</option> |
| 29 | + <option value="6">Row 7</option> |
| 30 | + <option value="7">Row 8</option> |
| 31 | + <option value="8">Row 9</option> |
| 32 | + </select> |
| 33 | + <input |
| 34 | + id="rowInput" |
| 35 | + class="block w-full p-2 mt-2 rounded border-gray-300 text-black text-center" |
| 36 | + type="text" |
| 37 | + placeholder="Enter 9 numbers only" |
| 38 | + maxlength="9" |
| 39 | + /> |
| 40 | + <button |
| 41 | + onclick="updateRow()" |
| 42 | + class="block w-full mt-2 bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 rounded" |
| 43 | + > |
| 44 | + Update Row |
| 45 | + </button> |
| 46 | + </div> |
| 47 | + |
| 48 | + <!-- Buttons --> |
| 49 | + <button |
| 50 | + onclick="validateSudoku()" |
| 51 | + class="block w-full bg-green-500 hover:bg-green-600 text-white font-bold py-2 rounded mb-2" |
| 52 | + > |
| 53 | + Validate Sudoku |
| 54 | + </button> |
| 55 | + <div id="result" class="text-lg font-bold"></div> |
17 | 56 | </div>
|
| 57 | + |
18 | 58 | <script src="script.js"></script>
|
19 | 59 | </body>
|
20 | 60 | </html>
|
0 commit comments