-
Notifications
You must be signed in to change notification settings - Fork 0
/
calculator.html
55 lines (52 loc) · 1.76 KB
/
calculator.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
<!-- Author: Qinglin Li, Net ID: qlt073 -->
<!DOCTYPE html>
<html>
<head>
<title>Calculator</title>
<link rel="stylesheet" type="text/css" href="calculator.css">
</head>
<body>
<div id="calculator">
<div id="screen">
<div id="output">0</div>
<div id="operator"></div>
</div>
<div class="row">
<button>MC</button>
<button>M+</button>
<button>M-</button>
<button>MR</button>
</div>
<div class="row">
<button id="btn-clear">C</button>
<button id="btn-negate">±</button>
<button id="btn-divide" class="btn-operator">÷</button>
<button id="btn-times" class="btn-operator">×</button>
</div>
<div class="row">
<button class="btn-number">7</button>
<button class="btn-number">8</button>
<button class="btn-number">9</button>
<button id="btn-minus" class="btn-operator">−</button>
</div>
<div class="row">
<button class="btn-number">4</button>
<button class="btn-number">5</button>
<button class="btn-number">6</button>
<button id="btn-plus" class="btn-operator">+</button>
</div>
<button id="btn-eq">=</button>
<div class="row">
<button class="btn-number">1</button>
<button class="btn-number">2</button>
<button class="btn-number">3</button>
</div>
<div class="row">
<button class="btn-large btn-number">0</button>
<button id="btn-dot">.</button>
</div>
</div>
<script src="jquery-2.2.0.min.js"></script>
<script src="calculator.js"></script>
</body>
</html>