-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
70 lines (58 loc) · 3.48 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Calculator</title>
<link rel="stylesheet" href="./assets/styles/style.css">
<script src="./assets/js/script.js" async defer></script>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&display=swap" rel="stylesheet">
</head>
<body>
<main>
<div id="calculator">
<div id="calculator__screen">
<div id="calculator__previous-operand">
<h4 id="calculator__previous-operand-text"></h4>
</div>
<div id="calculator__screen__result">
<h1 id="calculator__screen__result-text"></h1>
</div>
</div>
<div id="calculator__input">
<button id="C" class="button__operators" onclick="addKey(event)">C</button>
<button id="plus-minus" class="button__num-operators" onclick="changePrefix()">+/-</button>
<button id="*" class="button__operators multiply" onclick="addKey(event)" >x</button>
<button id="/" class="button__operators divide" onclick="addKey(event)" >÷</button>
<button id="1" class="button__numbers" onclick="addKey(event)" >1</button>
<button id="2" class="button__numbers" onclick="addKey(event)">2</button>
<button id="3" class="button__numbers" onclick="addKey(event)">3</button>
<button id="+" class="button__operators plus" onclick="addKey(event)" >+</button>
<button id="-" class="button__operators minus" onclick="addKey(event)" >-</button>
<button id="4" class="button__numbers" onclick="addKey(event)">4</button>
<button id="5" class="button__numbers" onclick="addKey(event)">5</button>
<button id="6" class="button__numbers" onclick="addKey(event)">6</button>
<button id="." class="button__num-operators dot" onclick="addKey(event)" >.</button>
<button id="equals" class="button__operators" onclick="calculate()">=</button>
<button id="7" class="button__numbers" onclick="addKey(event)" >7</button>
<button id="8" class="button__numbers" onclick="addKey(event)">8</button>
<button id="9" class="button__numbers" onclick="addKey(event)">9</button>
<button id="0" class="button__numbers zero" onclick="addKey(event)">0</button>
<button id="d" class="button__operators" onclick="addKey(event)">DEL</button>
</div>
</div>
<div id="blob__background">
<img id="blob1" class="blob" src="assets\svg\blob.svg">
<img id="blob2" class="blob" src="assets\svg\blob(1).svg">
<img id="blob3" class="blob" src="assets\svg\blob(2).svg">
<img id="blob4" class="blob" src="assets\svg\blob(3).svg">
<img id="blob5" class="blob" src="assets\svg\blob(4).svg">
<img id="blob6" class="blob" src="assets\svg\blob(5).svg">
<img id="blob7" class="blob" src="assets\svg\blob(6).svg">
<img id="blob8" class="blob" src="assets\svg\blob(7).svg">
</div>
</main>
</body>
</html>