-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (41 loc) · 1.97 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
<!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 rel="stylesheet" href="./calculator.css">
</head>
<body>
<div class="container">
<form onsubmit="calculate(); return false">
<div class="divinput">
<input type="text" placeholder="0" value="0" id="display" >
</div>
<div class="btn-div">
<button type="button" class="function" id="btn-top">C</button>
<button type="button" class="function" id="btn-top">+/-</button>
<button type="button" class="function" id="btn-top">%</button>
<button type="button" class="function" id="btn-side">÷</button><br>
<button type="button" class="function" id="btn-main">7</button>
<button type="button" class="function" id="btn-main">8</button>
<button type="button" class="function" id="btn-main">9</button>
<button type="button" class="function" id="btn-side">×</button><br>
<button type="button" class="function" id="btn-main">6</button>
<button type="button" class="function" id="btn-main">5</button>
<button type="button" class="function" id="btn-main">4</button>
<button type="button" class="function" id="btn-side">-</button><br>
<button type="button" class="function" id="btn-main">1</button>
<button type="button" class="function" id="btn-main">2</button>
<button type="button" class="function" id="btn-main">3</button>
<button type="button" class="function" id="btn-side">+</button><br>
<button type="button" class="function" id="zero">0</button>
<button type="button" class="function" id="btn-main">.</button>
<button type="button" class="function" id="btn-side">=</button>
</div>
</form>
</div>
<script src="./calculator.mjs">
</script>
</body>
</html>