-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
64 lines (61 loc) · 2.32 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Calculator</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="shortcut icon" href="images/favicon.png" />
<link href="style.css" rel="stylesheet" />
<script src="script.js" defer></script>
</head>
<body>
<main>
<div class="calculator">
<div class="switch-container">
<label class="switch" title="Toggle dark theme">
<input type="checkbox" checked="unchecked" />
<span class="slider"></span>
</label>
</div>
<div class="display">
<p id="operations-display"></p>
<p id="input-numbers-display">0</p>
</div>
<div class="buttons">
<button type="button" class="button" id="clear">AC</button>
<button type="button" class="button" id="backspace">C</button>
<button type="button" class="button operator square">+</button>
<button type="button" class="button operator square">−</button>
<button type="button" class="button digit square">7</button>
<button type="button" class="button digit square">8</button>
<button type="button" class="button digit square">9</button>
<button type="button" class="button operator square">×</button>
<button type="button" class="button digit square">4</button>
<button type="button" class="button digit square">5</button>
<button type="button" class="button digit square">6</button>
<button type="button" class="button operator square">÷</button>
<button type="button" class="button digit square">1</button>
<button type="button" class="button digit square">2</button>
<button type="button" class="button digit square">3</button>
<button type="button" class="button" id="equals">=</button>
<button type="button" class="button digit zero">0</button>
<button type="button" class="button square digit">.</button>
</div>
</div>
</main>
<footer>
<p>
Made with ❤️ by
<a href="https://github.com/emuel-vassallo/" target="_blank">
Emuel Vassallo
</a>
|
<span id="year">© </span>
|
<a href="https://github.com/emuel-vassallo/calculator/" target="_blank">
Source Code
</a>
</p>
</footer>
</body>
</html>