-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
73 lines (73 loc) · 1.97 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
<main>
<div class="container">
<h1>JS Calculator</h1>
<article>
<div class="headings">
<h2>Calculate two numerical values</h2>
<h3>Calculator with 3 operators for natural and decimal values.</h3>
</div>
<hr />
<form id="formAddNum">
<div class="grid">
<label>
First number
<input required id="firstNum" type="number" name="title" />
</label>
<label>
Second number
<input required id="secondNum" type="number" name="description" />
</label>
</div>
<fieldset>
<label for="add">
<input
required
type="radio"
id="add"
name="operator"
value="+"
checked
/>
Add
</label>
<label for="substract">
<input
required
type="radio"
id="substract"
name="operator"
value="-"
/>
Substract
</label>
<label for="divide">
<input
required
type="radio"
id="divide"
name="operator"
value="/"
/>
Divide
</label>
</fieldset>
<div>
<button type="submit">Calculate!</button>
</div>
<div class="result">
<p>
Result: <output id="resultAdd" for="primerNum segundoNum"></output>
</p>
</div>
</form>
</article>
</div>
</main>
<footer class="container">
<hr />
<small
>Developed by <a href="https://github.com/ignacio-fm">@ignacio-fm</a>. View
in <a href="https://github.com/ignacio-fm/JS-Calculator">GitHub</a></small
>.<br />
<small>✨ Stylized with <a href="https://picocss.com/">Pico.css</a></small>
</footer>