-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
52 lines (50 loc) · 2.7 KB
/
index.html
File metadata and controls
52 lines (50 loc) · 2.7 KB
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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<link rel="preconnect" href="https://fonts.googleapis.com">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="./assets/favicon.svg" type="image/svg">
<title>Calculator</title>
<link rel="stylesheet" href="./styles/globalStyles.css">
<link rel="stylesheet" href="./styles/style.css">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
<main class="container">
<div class="calculator-container">
<div class="calculator-display">
<span class="element-display-calc"></span>
<span class="element-display-result">0</span>
</div>
<hr class="line-break">
<div class="calculator-elements">
<button onclick="clearCalculator()" class="elements-childs operations" id="clear">AC</button>
<button class="elements-childs operations material-icons not-allowed"></button>
<button class="elements-childs operations not-allowed">%</button>
<button onclick="calculate('/')" class="elements-childs operations">÷</button>
<button onclick="calculate(7)" class="elements-childs">7</button>
<button onclick="calculate(8)" class="elements-childs">8</button>
<button onclick="calculate(9)" class="elements-childs">9</button>
<button onclick="calculate('*')" class="elements-childs operations">×</button>
<button onclick="calculate(4)" class="elements-childs">4</button>
<button onclick="calculate(5)" class="elements-childs">5</button>
<button onclick="calculate(6)" class="elements-childs">6</button>
<button onclick="calculate('-')" class="elements-childs operations">−</button>
<button onclick="calculate(1)" class="elements-childs">1</button>
<button onclick="calculate(2)" class="elements-childs">2</button>
<button onclick="calculate(3)" class="elements-childs">3</button>
<button onclick="calculate('+')" class="elements-childs operations">+</button>
<button class="elements-childs operations not-allowed">❖</button>
<button onclick="calculate(0)" class="elements-childs">0</button>
<button onclick="calculate('.')" class="elements-childs">.</button>
<button onclick="calculate('=')" class="elements-childs operations">=</button>
</div>
</div>
</main>
<script src="./logic/script.js"></script>
</body>
</html>