-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (33 loc) · 1.67 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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="basic.css">
</head>
<body>
<div class="calculator">
<form>
<input type="text" id="answer" maxlength="10" disabled/>
<input id="clear-button" type="button" value="C" onclick="clearScreen()">
</form>
<form>
<input type="button" value = "7" onclick="number(this.value)" />
<input type="button" value = "8" onclick="number(this.value)"/>
<input type="button" value = "9" onclick="number(this.value)"/>
<input type="button" value = "/" onclick="divide"/><br />
<input type="button" value = "4" onclick="number(this.value)"/>
<input type="button" value = "5" onclick="number(this.value)"/>
<input type="button" value = "6" onclick="number(this.value)"/>
<input type="button" value = "x" onclick="multiply"/><br />
<input type="button" value = "1" onclick="number(this.value)"/>
<input type="button" value = "2" onclick="number(this.value)"/>
<input type="button" value = "3" onclick="number(this.value)"/>
<input type="button" value = "-" onclick="subtract()"/><br />
<input type="button" value = "0" onclick="number(this.value)"/>
<input type="button" value = "." onclick="decimal()"/>
<input type="button" value = "=" onclick="equals()"/>
<input type="button" value = "+" onclick="add()"/>
</form>
</div>
<script src="logic.js"></script>
</body>
</html>