-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
34 lines (29 loc) · 1.11 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
<!DOCTYPE html>
<!-- Copyright © 2016 M. Helmy Hemeda. -->
<html lang="en-US">
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<script src="main.js"></script>
<title>Will you crack the code?</title>
</head>
<body>
<h3>Can you crack the code? We will see.</h3>
<table id="hints" border="1">
</table>
<table>
<tr>
<td> <p> The code </p> </td>
<td><input type="text" max_length="1" size="1" placeholder="?" style="width: 15px" id="digit0" onChange="check_answer()" onKeyUp="check_answer()"/></td>
<td><input type="text" max_length="1" size="1" placeholder="?" style="width: 15px" id="digit1" onChange="check_answer()" onKeyUp="check_answer()"/></td>
<td><input type="text" max_length="1" size="1" placeholder="?" style="width: 15px" id="digit2" onChange="check_answer()" onKeyUp="check_answer()"/></td>
</tr>
</table>
<button onClick="giveup()">I give up.</button>
<button onClick="generate_unique_problem()">Another!</button>
<p id="status"></p>
<footer>Note: multiple solutions may exist.</footer>
<script>
reload_hints();
</script>
</body>
</html>