This repository has been archived by the owner on Nov 5, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.html
59 lines (51 loc) · 1.59 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./src/style.css" />
<title>RPC</title>
</head>
<body class="bg-slate-700 text-white">
<h1 class="mt-8 text-center text-3xl font-black">Rock-Paper-Scissors</h1>
<main class="container mx-auto mt-8 flex flex-col gap-y-3">
<p class="text-blue text-center text-2xl font-bold" id="record">
<span>0</span>‐<span>0</span>‐<span>0</span>
</p>
<section class="flex flex-col items-center justify-center gap-y-8">
<h2 class="text-center text-xl">Make Ur Pumpkin Choice!</h2>
<!-- 0 is rock, 1 is paper, 2 is scissors -->
<div class="flex gap-x-8">
<button
class="bg-red-500 hover:bg-red-700"
type="button"
data-index="0"
>
Rock
</button>
<button
class="bg-green-600 hover:bg-green-800"
type="button"
data-index="1"
>
Paper
</button>
<button
class="bg-blue-500 hover:bg-blue-700"
type="button"
data-index="2"
>
Scissors
</button>
</div>
</section>
<section class="mt-4">
<p class="hidden text-center">
CPU picked: <span id="cpu-pick"></span>
</p>
<p id="result" class="text-center"></p>
</section>
</main>
<script type="module" src="./src/index.js"></script>
</body>
</html>