-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
93 lines (90 loc) · 3.95 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!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="icon" type="image/x-icon" href="src/image/favicon.png">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/iconoir-icons/iconoir@main/css/iconoir.css">
<link rel="stylesheet" href="src/css/style.css">
<link rel="stylesheet" href="src/css/effect.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/iconoir-icons/iconoir@main/css/iconoir.css">
<script src="src/script/toggle.js" defer></script>
<script src="src/script/calculator.js" defer></script>
<script src="src/script/operation.js" defer></script>
<script src="src/script/error.js" defer></script>
<script src="src/script/reset.js" defer></script>
<script src="src/script/display.js" defer></script>
<script src="src/script/index.js" defer></script>
<script src="src/script/controller.js" defer></script>
</head>
<body class="light">
<header>
<nav>
<i id="settings" class="hvr-pulse iconoir-settings"></i>
</nav>
<section id="display">0</section>
</header>
<aside>
<section class="tools">
<div class="hvr-pulse" id="dark">
<i class="iconoir-half-moon"></i>
<p>Dark Mode</p>
</div>
<div class="hvr-pulse" id="light">
<i class="iconoir-sun-light"></i>
<p>Light Mode</p>
</div>
<div class="hvr-pulse" id="mute">
<i class="iconoir-sound-min"></i>
<p>Mute Sound</p>
</div>
<div class="hvr-pulse" id="unmute">
<i class="iconoir-sound-high"></i>
<p>Unmute Sound</p>
</div>
</section>
<section class="footer">
<a class="hvr-pulse" title="Source Code" href="https://github.com/i4pg/calculator" target="_blank"><i
class="iconoir-github"></i></a>
<a class="hvr-pulse" title="Follow me on twitter" href="https://twitter.com/wiyih" target="_blank"><i
class="iconoir-twitter"></i></a>
<a class="hvr-pulse" title="Like this project" href="https://github.com/i4pg/javascript-calculator/stargazers"><i
class="iconoir-heart"></i></a>
</section>
</aside>
<main>
<div value="AC" class="button blue hvr-shrink">AC</div>
<div value="C" class="button blue hvr-shrink">C</div>
<div value="^" class="button hvr-shrink">x^</div>
<div value="%" class="button hvr-shrink">%</div>
<div value="7" class="button number hvr-shrink">7</div>
<div value="8" class="button number hvr-shrink">8</div>
<div value="9" class=" hvr-shrink button number">9</div>
<div value="/" class="button hvr-shrink">÷</div>
<div value="4" class="button number hvr-shrink">4</div>
<div value="5" class="button number hvr-shrink">5</div>
<div value="6" class=" hvr-shrink button number">6</div>
<div value="*" class="button hvr-shrink">×</div>
<div value="1" class="button number hvr-shrink">1</div>
<div value="2" class=" button number hvr-shrink">2</div>
<div value="3" class="button number hvr-shrink">3</div>
<div value="-" class="button hvr-shrink">-</div>
<div value="." class="button hvr-shrink">.</div>
<div value="0" class="button number hvr-shrink">0</div>
<div value="Backspace" class="button blue hvr-shrink">
<i value="Backspace" class="iconoir-arrow-right"></i>
</div>
<div value="+" class="button hvr-shrink">+</div>
<div value="negative" class="button hvr-shrink">+/-</div>
<div value="=" class="wide button hvr-shrink">=</div>
</main>
<footer>
<p class="hvr-pulse">Made by <a href="https://twitter.com/wiyih">Abdullah Alattas</a></p>
<p class="hvr-pulse">Icons by <a href="https://iconoir.com/">Iconoir</a></p>
<p class="hvr-pulse">Color palette by <a href="https://farbvelo.elastiq.ch/">FarbVélo</a></p>
<a class="hvr-pulse" href="https://www.theodinproject.com/">The Odin project</a>
</footer>
<audio id="button-sound" src="src/sound/button-snap.mp3"></audio>
</body>
</html>