-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
36 lines (35 loc) · 1.25 KB
/
Copy pathindex.html
File metadata and controls
36 lines (35 loc) · 1.25 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
<!-- Hope this works -->
<!DOCTYPE html>
<html>
<head>
<title>Calculator</title>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="container">
<h1>Calculator</h1>
<div class="row">
<div class="col-sm-4">
<h2 id="answer">--</h2>
</div>
</div>
<div class="row">
<div class="col-sm-2">
<input class="form-control" type = "text" id="num1" placeholder="Enter the first number" />
</div>
<div class="col-sm-2">
<input class="form-control" type = "text" id="num2" placeholder="Enter the second number" />
</div>
</div>
<div class="blankSpace"></div>
<button class="btn" onclick="addNumbers()">Add</button>
<button class="btn" onclick="subtractNumbers()">Subtract</button>
<button class="btn" onclick="multiplyNumbers()">Multiply</button>
<button class="btn" onclick="divideNumbers()">Divide</button>
</div>
<script src = "app.js"></script>
</body>
</html>