-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathindex.html
More file actions
56 lines (48 loc) · 2.01 KB
/
index.html
File metadata and controls
56 lines (48 loc) · 2.01 KB
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
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="index.css">
</head>
<body>
<form name="dentaku">
<table>
<!-- 液晶画面部分 -->
<tr>
<td colspan="4">
<input type="text" class="display" name="display" value="" disabled>
</td>
</tr>
<!-- 上から1段目(7~9+÷) -->
<tr>
<td><input type="button" value="7" onclick="get_calc(this)"></td>
<td><input type="button" value="8" onclick="get_calc(this)"></td>
<td><input type="button" value="8" onclick="get_calc(this)"></td>
<td><input type="button" value="÷" class="operator" name="div_btn" onclick="get_calc(this)"></td>
</tr>
<!-- 上から2段目(4~6+×) -->
<tr>
<td><input type="button" value="4" onclick="get_calc(this)"></td>
<td><input type="button" value="5" onclick="get_calc(this)"></td>
<td><input type="button" value="6" onclick="get_calc(this)"></td>
<td><input type="button" value="×" class="operator" name="add_btn" onclick="get_calc(this)"></td>
</tr>
<!-- 上から3段目(1~3+-) -->
<tr>
<td><input type="button" value="1" onclick="get_calc(this)"></td>
<td><input type="button" value="2" onclick="get_calc(this)"></td>
<td><input type="button" value="3" onclick="get_calc(this)"></td>
<td><input type="button" value="-" class="operator" onclick="get_calc(this)"></td>
</tr>
<!-- 上から4段目(0/./=/+) -->
<tr>
<td><input type="button" value="0" onclick="get_calc(this)"></td>
<td><input type="button" value="C" onclick="get_calc(this)"></td>
<td><input type="button" value="=" class="equal" onclick="get_calc(this)"></td>
<td><input type="button" value="+" class="operator" onclick="get_calc(this)"></td>
</tr>
</table>
</form>
<script src="index.js"></script>
</body>
</html>