-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.html
89 lines (89 loc) · 2.79 KB
/
main.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="./calcul.css">
<title>calculating machine</title>
<script type="text/javascript" src="./index.js"></script>
</head>
<body>
<table border=0 height=500 width=400 align="center">
<form>
<tr>
<td colspan= 4 bgcolor="ffdfdc" align="right" height="70" />
<input id="display" type="text" />
</tr>
<tr>
<td colspan= 4 bgcolor="#ffcbc9" align="left" height="60">   result :<input id="result" type="text" />
</td>
</tr>
<tr>
<td>
<input type="reset" name="reset" value="AC" class="button3" />
</td>
<td>
<input type="button" name="plus_min" value="+/-" class="button3" />
</td>
<td>
<input type="button" onclick="addOutput('%')" value="%" class="button3" />
</td>
<td>
<input type="button" onclick="addOutput('/')" value="/" class="button3" />
</td>
</tr>
<tr>
<td>
<input type="button" onclick="addOutput('7')" value="7" class="button"/>
</td>
<td>
<input type="button" onclick="addOutput('8')" value="8" class="button"/>
</td>
<td>
<input type="button" onclick="addOutput('9')" value="9" class="button"/>
</td>
<td>
<input type="button" onclick="addOutput('*')" value="*"class="button3" />
</td>
</tr>
<tr>
<td>
<input type="button" onclick="addOutput('4')" value="4" class="button"/>
</td>
<td>
<input type="button" onclick="addOutput('5')" value="5" class="button"/>
</td>
<td>
<input type="button" onclick="addOutput('6')" value="6" class="button"/>
</td>
<td>
<input type="button" onclick="addOutput('-')" value="-" class="button3" />
</td>
</tr>
<tr>
<td><input type="button" onclick="addOutput('1')" value="1" class="button"/>
</td>
<td>
<input type="button" onclick="addOutput('2')" value="2" class="button"/>
</td>
<td>
<input type="button" onclick="addOutput('3')" value="3" class="button" />
</td>
<td>
<input type="button" onclick="addOutput('+')" value="+" class="button3" />
</td>
</tr>
<tr>
<td colspan=2>
<input type="button" onclick="addOutput('0')" value="0" class="button2"/>
</td>
<td>
<input type="button" onclick="addOutput('.')" value="." class="button" />
</td>
<td>
<input type="button" onclick="calculate()" value="=" class="button3" />
</td>
</tr>
</form>
</table>
</body>
</html>