-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
52 lines (50 loc) · 1.63 KB
/
index.html
File metadata and controls
52 lines (50 loc) · 1.63 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Projective Set</title>
<link rel="stylesheet" type="text/css" href="proset-style.css" />
<link rel="manifest" href="manifest.json" />
</head>
<body>
<header>
<h1>Projective Set</h1>
<h2>a game about projective sets</h2>
<div id="score">
<div>Click a card to choose difficulty level (fewer dots: easier; more dots: harder)</div>
</div>
</header>
<div id="baize" class="baize">
<!-- -->
</div>
<div class="rules">
<p><b>Rule:</b> Select a set of cards such that there is an even number of dots each color.</p>
</div>
<div id="button-menu" class="baize">
<div class="row">
<div class="slot">
<div id="new-game" class="card">
<span style="font-size:1rem;text-align:center">New Game</span>
</div>
</div>
<div class="slot">
<div id="change-difficulty" class="card">
<span style="font-size:1rem;text-align:center">Change Difficulty</span>
</div>
</div>
</div>
</div>
<script src="proset-main.js"></script>
<script>
const buttonMenu = document.getElementById("button-menu")
const newGameCard = document.getElementById("new-game")
const restartCard = document.getElementById("change-difficulty")
newGameCard.onpointerdown = (e) => {
window.dispatchEvent(new KeyboardEvent("keydown", {code: "KeyR"}))
}
restartCard.onpointerdown = (e) => {
window.dispatchEvent(new KeyboardEvent("keydown", {code: "Escape"}))
}
const game = new Proset();
</script>
</body>
</html>