-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
39 lines (36 loc) · 2.06 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet">
<script src="js/script.js"></script>
<title>TIK TAK TUH</title>
</head>
<body class="bg-black text-black">
<div class="min-h-screen flex items-center justify-center">
<div class="bg-white p-8 rounded-lg shadow-lg">
<h1 class="text-3xl font-semibold text-center text-blue-500 mb-4">TIK TAK TUH</h1>
<p class="text-center text-gray-600 mb-4">Klik tombol mulai untuk memulai game!</p>
<div class="text-center mb-4">
<button id="but" class="px-4 py-2 bg-blue-500 text-white rounded-lg font-semibold"
onclick="resetGame()">
Mulai!
</button>
</div>
<p id="print" class="text-center text-lg font-semibold text-blue-500 mb-4"></p>
<div class="grid grid-cols-3 gap-2 hidden" id="ttt-col">
<input type="button" id="b1" class="cell" onclick="makeMove(1);" readonly>
<input type="button" id="b2" class="cell" onclick="makeMove(2);" readonly>
<input type="button" id="b3" class="cell" onclick="makeMove(3);" readonly>
<input type="button" id="b4" class="cell" onclick="makeMove(4);" readonly>
<input type="button" id="b5" class="cell" onclick="makeMove(5);" readonly>
<input type="button" id="b6" class="cell" onclick="makeMove(6);" readonly>
<input type="button" id="b7" class="cell" onclick="makeMove(7);" readonly>
<input type="button" id="b8" class="cell" onclick="makeMove(8);" readonly>
<input type="button" id="b9" class="cell" onclick="makeMove(9);" readonly>
</div>
</div>
</div>
</body>
</html>