-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
83 lines (70 loc) · 3.17 KB
/
index.html
File metadata and controls
83 lines (70 loc) · 3.17 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Programmer Math Practice App</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<section id="hero">
<h1>Programmer Math Practice App</h1>
<p>This little app can help new programmers practice converting between the various numbering system used by computers (<strong>Decimal, Binary, Hexadecimal</strong>).</p>
</section>
<!-- App -->
<!--
Abbreviations
dec = decimal
bin = binary
hex = hexadecimal
-->
<section id="app">
<form id="practiceApp">
<!-- Convert from selector -->
<fieldset id="convertFrom">
<legend>Convert From</legend>
<input type="radio" id="fromDec" name="convertFrom" value="dec" />
<label for="fromDec">Decimal</label><br />
<input type="radio" id="fromBin" name="convertFrom" value="bin" />
<label for="fromBin">Binary</label><br />
<input type="radio" id="fromHex" name="convertFrom" value="hex" />
<label for="fromHex">Hexadecimal</label><br />
</fieldset>
<!-- Convert to selector -->
<fieldset id="convertTo">
<legend>Convert To</legend>
<input type="radio" id="toDec" name="convertTo" value="dec" />
<label for="toDec">Decimal</label><br />
<input type="radio" id="toBin" name="convertTo" value="bin" />
<label for="toBin">Binary</label><br />
<input type="radio" id="toHex" name="convertTo" value="hex" />
<label for="toHex">Hexadecimal</label>
</fieldset>
<!-- Quiz section -->
<div id="quiz">
<div id="question"></div>
<div id="equals">=</div>
<div>
<input type="text" id="answer" placeholder="Your answer here" />
</div>
<div id="result"></div>
<div>
<input type="submit" id="submitBtn" value="Submit" />
<input type="reset" id="resetBtn" value="Reset" />
</div>
</div>
</form>
</section>
<section id="usage">
<h2>Usage</h2>
<p>To start, select a "Convert From" number system (Decimal, Binary, or Hexadecimal). This is the number the computer will give you to solve.</p>
<p>Next select a "Convert To" number system (Decimal, Binary, or Hexadecimal). This is the number you will try to solve.</p>
<p>Put your answer in the box and press submit to check your results. Press reset to clear and get a new number to solve.</p>
</section>
<footer>
<p><a target="_blank" rel="external" href="https://github.com/benhovinga/ProgrammerMathApp">Edit on GitHub</a></p>
<p>Made with ❤️ in 🍁 by <a target="_blank" rel="author" href="https://ben.hovinga.ca">Benjamin P.C. Hovinga</a>.</p>
</footer>
<script src="app.js"></script>
</body>
</html>