-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalculator.html
66 lines (63 loc) · 2.31 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
56
57
58
59
60
61
62
63
64
65
66
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="calc.css" media="screen" />
</head>
<body>
<form name="calc" action="">
<table class="tblCalc" cellpadding=0 cellspacing=0>
<tr>
<td colspan=5 align=middle>
<input id="editWide" name="ReadOut" type="Text"
value="0" size ="25" maxlength="20" readonly>
</td>
</tr>
<tr>
<td align=middle> </td>
</tr>
<tr>
<td><input name="btn7" type="Button"
value="7" onclick="numPressed(7,this)"></td>
<td><input name="btn8" type="Button"
value="8" onclick="numPressed(8,this)"></td>
<td><input name="btn9" type="Button"
value="9" onclick="numPressed(9,this)"></td>
<td><input name="btnPlus" type="Button"
value="+" onclick="operation('+',this)" /></td>
<td><input name="btnClear" type="Button"
value="C" onclick="Clear(this)" /></td>
<tr>
<td><input name="btn4" type="Button"
value="4" onclick="numPressed(4,this)"></td>
<td><input name="btn5" type="Button"
value="5" onclick="numPressed(5,this)"></td>
<td><input name="btn6" type="Button"
value="6" onclick="numPressed(6,this)"></td>
<td><input name="btnMultiply" type="Button"
value="*" onclick="operation('*',this)" /></td>
</tr>
<tr>
<td><input name="btn1" type="Button"
value="1" onclick="numPressed(1,this)"></td>
<td><input name="btn2" type="Button"
value="2" onclick="numPressed(2,this)"></td>
<td><input name="btn3" type="Button"
value="3" onclick="numPressed(3,this)"></td>
<td><input name="btnMinus" type="Button"
value="-" onclick="operation('-',this)" /></td>
</tr>
<tr>
<td><input name="btnDecimal" type="Button"
value="." onclick="Decimal(this)"></td>
<td><input name="btn0" type="Button"
value="0" onclick="numPressed(0,this)"></td>
<td ><input name="btnEquals"
type="Button" value="=" onclick="operation('=',this)"></td>
<td align=middle><input name="btnDivide" type="Button"
value=" / " onclick="operation('/',this)" /></td>
</tr>
</table>
</form>
</body>
<script type="text/javascript" src="calc.js"></script>
</html>