-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
34 lines (31 loc) · 1.1 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>
<html>
<head>
<meta charset="UTF-8">
<title>CodeBreaker</title>
<style> * {font-family:sans-serif;} </style>
</head>
<body>
<h1>CodeBreaker</h1>
<p>Can you break the code?</p>
<h3>Setup</h3>
<input type="range" id="codeLength" min="2" max="12">
<label for="codeLength">Length of code: <span id="codeLengthLabel"></span></label>
<br>
<input type="range" id="colorVariety" min="2" max="12">
<label for="colorVariety">Number of colors: <span id="colorVarietyLabel"></span></label>
<br>
<input type="checkbox" id="duplicatePermission">
<label for="duplicatePermission">Duplicates allowed</label>
<br><br>
<button type="button" id="gen">Generate code</button>
<h3>Guess code</h3>
<br id="inputSeparator"><br>
<button type="button" id="check">Check guess</button>
<p id="resultsParagraph">In the code in the right place: <span id="icrpValue"></span><br>
In the code in the wrong place: <span id="icwpValue"></span><br>
Not in the code: <span id="nicValue"></span></p>
<p id="resultsDisclaimer">Note: Values may be misleading if "Duplicates allowed" is on</p>
<script src="./game.js"></script>
</body>
</html>