-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
86 lines (83 loc) · 2.36 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>10x10 - Game</title>
<link rel="stylesheet" href="./app/style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script type="module" src="./app/app.js"></script>
</head>
<body>
<main>
<table class="board" id="boardTable"></table>
<div id="buttonToolbar">
<div class="group">
<button id="undoButton" onclick="undo()" title="undo last move">
Undo
</button>
</div>
<div class="group">
<button id="solveButton" onclick="solveBoard()" title="solve current board">
<span>Solve</span>
<div class="lds-ellipsis">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</button>
<button id="restartButton" onclick="restartMaybe()" title="restart game (clear board)">
<span>Restart</span>
</button>
</div>
<div class="group">
<label class="label-select">
<select title="board size" id="boardSizeSelect" onchange="changeBoardSize(this)"></select>
</label>
</div>
</div>
</main>
<div id="overlay" style="display: none">
<div class="popup" id="confirm">
<header>Restart Game?</header>
<main>
<p>Are you sure?</p>
</main>
<footer>
<button id="no" title="No">No</button>
<button id="yes" title="Yes">Yes</button>
</footer>
</div>
<div class="popup" id="alertDialog">
<header class="title"></header>
<main>
<p class="text"></p>
</main>
<footer>
<button id="cancel" title="Cancel">Cancel</button>
<button id="restart" title="Restart">Restart</button>
</footer>
</div>
<div class="popup" id="gameOver">
<header>Game Over</header>
<main>
<p>No more possible moves left!</p>
</main>
<footer>
<button onclick="hideDialog()">Back</button>
<button onclick="reset()">Restart</button>
</footer>
</div>
<div class="popup" id="winDialog">
<header>You win!</header>
<main>
<p>Congratulation, you won the game!</p>
</main>
<footer>
<button onclick="hideDialog()">Back</button>
<button onclick="reset()">Restart</button>
</footer>
</div>
</div>
</body>
</html>