-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
99 lines (58 loc) · 2.65 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
94
95
96
97
98
99
<!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">
<link rel="stylesheet" href="./styles/reset.css">
<link rel="stylesheet" href="./styles/root.css">
<link rel="stylesheet" href="./styles/header.css">
<link rel="stylesheet" href="./styles/main.css">
<link rel="stylesheet" href="./styles/footer.css">
<title>Calculator</title>
</head>
<body>
<header>
<div class="header__container-switch">
<label class="switch-theme">
<input type="checkbox" id="checkbox-switch-theme" >
<span class="slider round"></span>
</label>
</div>
<h1 class="header__h1">Calculator</h1>
</header>
<main >
<div class="calculator">
<section class="calculator__output">
<div class="calculator__output__previus-operand" id="calculator__output__previus-operand"></div>
<div class="calculator__output__current-operand" id="calculator__output__current-operand"></div>
</section>
<section class="container__buttons">
<button class="span-two" onclick="clearCalculator()">AC</button>
<button onclick="deleteLastDigit()">DEL</button>
<button onclick="insert('/', 'isOperator: true')">/</button>
<button onclick="insert('1')">1</button>
<button onclick="insert('2')">2</button>
<button onclick="insert('3')">3</button>
<button onclick="insert('*', 'isOperator: true')" >*</button>
<button onclick="insert('4')">4</button>
<button onclick="insert('5')">5</button>
<button onclick="insert('6')">6</button>
<button onclick="insert('+', 'isOperator: true')">+</button>
<button onclick="insert('7')">7</button>
<button onclick="insert('8')">8</button>
<button onclick="insert('9')">9</button>
<button onclick="insert('-', 'isOperator: true')">-</button>
<button onclick="insert('.')">.</button>
<button onclick="insert('0')">0</button>
<button class="span-two" onclick="calculate()">=</button>
</section>
</div>
</main>
<footer>
<p class="footer__p_text">Developed by Paulo Henrique</p>
</footer>
<script src="/scripts/app.js" ></script>
<script src="/scripts/theme-calculator.js"></script>
</body>
</html>