blob: 5af007b1fa7f70b035b3e0a928546a51ad38fc74 (
plain) (
blame)
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>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="../style.css">
<title>Heat Toggle Demo</title>
</head>
<body>
<h1>Heat Toggle Demo</h1>
<nav>
<a href=".."><button>Home</button></a>
</nav>
<!-- <button id="test_bttn" onclick="toggle_screen()">Test Button</button> -->
<main>
<section id="optionsScreen" class="screen">
<h2>Options</h2>
<div>
<label for="graphOrder">Select a number of vertices for a path:</label>
<input type="number" name="graphOrder" id="graphOrder" defaultValue=7 min=1 max=30 placeholder="Enter a value (1-30)"></input>
</div>
<div>
<label for="computer">Play against the optimal strategy (you will lose!)</label>
<input type="checkbox" name="computer" id="computer"></input>
</div>
<button onclick="startGame()">Play</button>
</section>
<section id="gameScreen" class="screen inactive">
<h2>Game</h2>
<div id="key">
<div class="keyitem">
<div class="vertex"></div>
On Vertex
</div>
<div class="keyitem">
<div class="vertex untoggleable"></div>
Unplayable Vertex
</div>
<div class="keyitem">
<div class="vertex off"></div>
Off Vertex
</div>
</div>
<hr />
<div id="game">Loading...</div>
<hr />
<button id="new-game">New Game</button>
<script src="game.js"></script>
</section>
</main>
</body>
</html>
|