-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
51 lines (51 loc) · 1.94 KB
/
index.html
File metadata and controls
51 lines (51 loc) · 1.94 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta content='text/html; charset=utf-8' http-equiv='content-type' />
<title>Get 24</title>
<link rel='stylesheet' href="styles.css" />
</head>
<body>
<main>
<p>Get 24 using each number only once</p>
<div class="numbers">
<input class="number" type="number">
<input class="number" type="number">
<input class="number" type="number">
<input class="number" type="number">
</div>
<div>
<button id="changeNumbers" onclick="generate_new()">generate new</button><br>
<button id="clearNumbers" onclick="clear_numbers()">clear</button><br>
<button id="solve" onclick="solve_wrap()">solve</button>
<div id="answer"></div>
</div>
<br>
<button id="toggle-config" onclick="toggle_config()">toggle configuration</button>
<div id="config" style="display: none;">
<form>
<fieldset>
<legend>Configuration</legend>
number of numbers: <span id="non"></span>
<button type="button" onclick="increase_non()">increase</button>
<button type="button" onclick="decrease_non()">decrease</button>
<br>
<label for="lower-limit">lower limit</label>
<input name="lower-limit" type="number">
<label for="upper-limit">upper limit</label>
<input name="upper-limit" type="number"><br>
<label for="target">target</label>
<input name="target" type="number"><br>
<label for="showAnswer">show answer</label>
<input name="showAnswer" type="checkbox"><br>
<button type="button" onclick="modify_config()">Submit</button>
</fieldset>
</form>
</div>
</main>
</body>
<script src="solver.js"></script>
<script src="main.js"></script>
</html>