Skip to content

Commit adc56b8

Browse files
committed
Add buttons
1 parent 3240165 commit adc56b8

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

Source-Code/Calculator/index.html

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,36 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>Calculator</title>
7+
<link rel="stylesheet" href="style.css">
78
</head>
89
<body>
9-
10+
<div class="calculator">
11+
<input type="text" class="calculator-screen" value="" disabled />
12+
<div class="calculator-keys">
13+
14+
<button type="button" value="7">7</button>
15+
<button type="button" value="8">8</button>
16+
<button type="button" value="9">9</button>
17+
<button type="button" class="operator" value="+">+</button>
18+
19+
<button type="button" value="4">4</button>
20+
<button type="button" value="5">5</button>
21+
<button type="button" value="6">6</button>
22+
<button type="button" class="operator" value="-">-</button>
23+
24+
<button type="button" value="1">1</button>
25+
<button type="button" value="2">2</button>
26+
<button type="button" value="3">3</button>
27+
<button type="button" class="operator" value="*">&times;</button>
28+
29+
<button type="button" value="0">0</button>
30+
<button type="button" class="decimal" value=".">.</button>
31+
<button type="button" class="all-clear" value="all-clear">AC</button>
32+
<button type="button" class="operator" value="/">&divide;</button>
33+
34+
<button type="button" class="equal-sign operator" value="=">=</button>
35+
</div>
36+
</div>
37+
<script src="script.js"></script>
1038
</body>
11-
</html>
39+
</html>

0 commit comments

Comments
 (0)