-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (51 loc) · 2.19 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./css/style.css">
<script src="./js/app.js" defer></script>
<title>Calculator</title>
</head>
<body>
<img id="sound-button" draggable="false" src="./img/unmuted.png" alt="unmute button">
<div id="calculator-container">
<div id="screen-container">
<div class="screen" id="screen-tmp">-</div>
<div class="screen" id="screen-output">0</div>
</div>
<div id="button-container">
<div class="button-column">
<button class="button" id="ac">AC</button>
<button class="button number">7</button>
<button class="button number">4</button>
<button class="button number">1</button>
<button class="button number">0</button>
</div>
<div class="button-column">
<button class="button operator">^</button>
<button class="button number">8</button>
<button class="button number">5</button>
<button class="button number">2</button>
<button class="button" id="decimal-point">.</button>
</div>
<div class="button-column">
<button class="button operator"> % </button>
<button class="button number">9</button>
<button class="button number">6</button>
<button class="button number">3</button>
<button class="button" id="backspace">Del</button>
</div>
<div class="button-column">
<button class="button operator"> / </button>
<button class="button operator"> x </button>
<button class="button operator"> - </button>
<button class="button operator"> + </button>
<button class="button" id="equals">=</button>
</div>
</div>
</div>
<audio id="background-music" src="./sound/background-music.mp3"></audio>
<audio id="button-click-audio" src="./sound/button_click.mp3"></audio>
</body>
</html>