-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (52 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="calculator.css" />
</head>
<body>
<div class="calculator">
<input
type="text"
class="calculator-screen"
id="display"
value="0"
disabled
/>
<div class="calculator-keys">
<button type="button" class="all-clear" id="clear" value="all-clear">
AC
</button>
<button type="button" class="delete-key" value="DEL">DEL</button>
<button type="button" class="operator" id="percentage" value="%">
%
</button>
<button type="button" class="operator" id="add" value="+">+</button>
<button type="button" id="seven" value="7">7</button>
<button type="button" id="eight" value="8">8</button>
<button type="button" id="nine" value="9">9</button>
<button type="button" class="operator" id="subtract" value="-">
-
</button>
<button type="button" id="four" value="4">4</button>
<button type="button" id="five" value="5">5</button>
<button type="button" id="six" value="6">6</button>
<button type="button" class="operator" id="multiply" value="*">
×
</button>
<button type="button" id="three" value="3">3</button>
<button type="button" id="two" value="2">2</button>
<button type="button" id="one" value="1">1</button>
<button type="button" class="operator" id="divide" value="/">
÷
</button>
<button type="button" id="zero" value="0">0</button>
<button type="button" class="decimal" id="decimal" value=".">.</button>
<button type="button" class="equal-sign" id="equals" value="=">
=
</button>
</div>
</div>
<script src="calculator.js"></script>
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
</body>
</html>