-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
51 lines (47 loc) · 1.49 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
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" type="text/css" href="./counter.css" />
<script src="./calculator.js"></script>
</head>
<body>
<h1>谢尚谕的计算器</h1>
<div id="final">
<p id="first"></p>
<p id="signed"></p>
<p id="second"></p>
<p id="result"></p>
</div>
<div id="number">
<div class="row">
<button onclick="first()">1</button>
<button onclick="second()">2</button>
<button onclick="third()">3</button>
</div>
<div class="row">
<button onclick="fourth()">4</button>
<button onclick="fifth()">5</button>
<button onclick="sixth()">6</button>
</div>
<div class="row">
<button onclick="seventh()">7</button>
<button onclick="eighth()">8</button>
<button onclick="nineth()">9</button>
</div>
<div class="row">
<button onclick="zero()">0</button>
<button onclick="adds()">+</button>
<button onclick="divs()">-</button>
</div>
<div class="row">
<button onclick="multis()">*</button>
<button onclick="diffs()">/</button>
<button onclick="equs()">=</button>
<button onclick="final_clear()">C</button>
</div>
</div>
</body>
</html>