forked from mouri11/JSCalc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (63 loc) · 2.94 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
52
53
54
55
56
57
58
59
60
61
62
63
64
<!DOCTYPE html>
<html>
<head>
<title>JS Calculator</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0/css/bootstrap.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Orbitron" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="./styles.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="app.js"></script>
</head>
<body>
<div class="container-fluid">
<div class="row">
<div class="col-4 offset-4" style="padding-top: 5%">
<div id="calculator-body" class="col-10 offset-1">
<p align="center">ELECTRONIC CALCULATOR</p>
<div id="screen">
<p class="my-auto" id="answer">0</p>
<p class="my-auto" id="expression">0</p>
</div>
<div class="container-fluid" id="buttons">
<div class="row">
<button class="col-2 btn btn-danger clear" id="AC">AC</button>
<button class="col-2 btn btn-danger clear" id="CE">CE</button>
<button class="col-2 btn btn-info show" id="div">÷</button>
<button class="col-2 btn btn-info show" id="mult">×</button>
</div>
<div class="row">
<button class="col-2 btn btn-primary show" id="7">7</button>
<button class="col-2 btn btn-primary show" id="8">8</button>
<button class="col-2 btn btn-primary show" id="9">9</button>
<button class="col-2 btn btn-info show" id="sub">-</button>
</div>
<div class="row">
<button class="col-2 btn btn-primary show" id="4">4</button>
<button class="col-2 btn btn-primary show" id="5">5</button>
<button class="col-2 btn btn-primary show" id="6">6</button>
<button class="col-2 btn btn-info show" id="add">+</button>
</div>
<div class="row">
<button class="col-2 btn btn-primary show" id="1">1</button>
<button class="col-2 btn btn-primary show" id="2">2</button>
<button class="col-2 btn btn-primary show" id="3">3</button>
<button class="col-2 btn" style="visibility: hidden;">T</button>
</div>
<div class="row">
<button class="col-5 btn btn-primary show" id="0">0</button>
<button class="col-2 btn btn-primary show" id="period">.</button>
<button class="col-2 btn btn-success" style="margin-top: -52px; height: 106px" id="calculate">=</button>
</div>
</div>
</div>
</div>
</div>
<footer align="center" style="padding-top: 1.5%">made by <a href="https://mouri1.github.io">Rohit Das</a></footer>
</div>
</body>
</html>