-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (44 loc) · 1.1 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Adder/Subtractor</title>
<link rel="stylesheet" href="app.css">
</head>
<body>
<div>
<div class="content">
<header>
<h1>Adder/Subtractor</h1>
</header>
<div class="calculate">
<div class="xInput">
<label for="xInput">X=</label>
<input id="xInput" type="text" placeholder="Enter an Integer" onkeyup="xOut(this), calc()" >
</div>
<div class="yInput">
<label for="yInput">Y=</label>
<input id="yInput" type="text" placeholder="Enter an Integer" onkeyup="yOut(this), calc()" >
</div>
<h2>
<span id="sum1X">X</span>
+
<span id="sum1Y">Y</span>
=
<span id="result1">Z</span>
</h2>
<h2>
<span id="sum2X">X</span>
-
<span id="sum2Y">Y</span>
=
<span id="result2">Z</span>
</h2>
</div>
<span id="msg"></span>
</div>
<footer></footer>
</div>
<script src="main.js"></script>
</body>
</html>