-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (39 loc) · 1.74 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>calculator</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="calc-container">
<div id="display" class="calc-output">
<div id="previous-operand" class="previous-operand"></div>
<div id="current-operand" class="current-operand" value="0">0</div>
</div>
<button id="clear" class="clear-btn calc-btn span-two">AC</button>
<button id="delete" class="clear-btn calc-btn span-two">DEL</button>
<button id="add-min" class="calc-btn" onclick="currentOperandTE.innerText = (-1)*(currentOperandTE.innerText)">+/-</button>
<button class="operation calc-btn">X²</button>
<button class="operation calc-btn">√</button>
<button class="operation calc-btn">/</button>
<button class="number calc-btn">1</button>
<button class="number calc-btn">2</button>
<button class="number calc-btn">3</button>
<button class="operation calc-btn">*</button>
<button class="number calc-btn">4</button>
<button class="number calc-btn">5</button>
<button class="number calc-btn">6</button>
<button class="operation calc-btn">-</button>
<button class="number calc-btn">7</button>
<button class="number calc-btn">8</button>
<button class="number calc-btn">9</button>
<button class="operation calc-btn">+</button>
<button id="decimal" class="calc-btn">.</button>
<button class="number calc-btn">0</button>
<button class="operation calc-btn span-two">=</button>
</div>
<script src="scrip.js"></script>
</body>
</html>