-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (47 loc) · 3.24 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="cont">
<div>
<h1 class="title">Calculator</h1>
</div>
<div class="sheet">
<div class="display">
<input id="text1" type="text" value="">
<input id="text2" type="text" readonly value="-">
</div>
<div class="buttons">
<div><button onclick="Del()" id="del" class="btn btn-outline-secondary">AC</button></div>
<div><button onclick="back()" id="back" class="btn btn-outline-secondary">DE</button></div>
<div><button onclick="percent(); display('percent')" id="percent" class="btn btn-outline-secondary">%</button></div>
<div><button onclick="display('multi')" id="multi" class="btn btn-outline-secondary">*</button></div>
<div><button onclick="display('seven')" id="seven" class="btn btn-outline-secondary">7</button></div>
<div><button onclick="display('eight')" id="eight" class="btn btn-outline-secondary">8</button></div>
<div><button onclick="display('nine')" id="nine" class="btn btn-outline-secondary">9</button></div>
<div><button onclick="display('plus')" id="plus" class="btn btn-outline-secondary">+</button></div>
<div><button onclick="display('four')" id="four" class="btn btn-outline-secondary">4</button></div>
<div><button onclick="display('five')" id="five" class="btn btn-outline-secondary">5</button></div>
<div><button onclick="display('six')" id="six" class="btn btn-outline-secondary">6</button></div>
<div><button onclick="display('minus')" id="minus" class="btn btn-outline-secondary">-</button></div>
<div><button onclick="display('one')" id="one" class="btn btn-outline-secondary">1</button></div>
<div><button onclick="display('two')" id="two" class="btn btn-outline-secondary">2</button></div>
<div><button onclick="display('three')" id="three" class="btn btn-outline-secondary">3</button></div>
<div><button onclick="display('divide')" id="divide" class="btn btn-outline-secondary">/</button></div>
<div><button onclick="display('zero2')" id="zero2" class="btn btn-outline-secondary">00</button></div>
<div><button onclick="display('zero')" id="zero" class="btn btn-outline-secondary">0</button></div>
<div><button onclick="display('dot')" id="dot" class="btn btn-outline-secondary">.</button></div>
<div><button onclick="equal()" id="equal" class="btn btn-outline-secondary">=</button></div>
</div>
</div>
</div>
<script src="../../bootstrap/js/bootstrap.js"></script>
<script src="script.js"></script>
</body>
</html>