-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
54 lines (51 loc) · 3.76 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Lesson-31 Javascript</title>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-4 offset-4 mt-3">
<div class="card">
<div class="card-header">
<input type="text" class="form-control text-right" value="0" disabled id="screen">
</div>
<div class="card-body">
<div class="row">
<div class="col-12"><button type="button" class="btn btn-danger btn-block" onclick="clearScreen()">C</button></div>
<div class="col-3"><button type="button" class="btn btn-success btn-block" onclick="addNumber(1)">1</button></div>
<div class="col-3"><button type="button" class="btn btn-success btn-block" onclick="addNumber(2)">2</button></div>
<div class="col-3"><button type="button" class="btn btn-success btn-block" onclick="addNumber(3)">3</button></div>
<div class="col-3"><button type="button" class="btn btn-primary btn-block" onclick="action('add')">+</button></div>
<div class="col-3"><button type="button" class="btn btn-success btn-block" onclick="addNumber(4)">4</button></div>
<div class="col-3"><button type="button" class="btn btn-success btn-block" onclick="addNumber(5)">5</button></div>
<div class="col-3"><button type="button" class="btn btn-success btn-block" onclick="addNumber(6)">6</button></div>
<div class="col-3"><button type="button" class="btn btn-primary btn-block" onclick="action('minus')">-</button></div>
<div class="col-3"><button type="button" class="btn btn-success btn-block" onclick="addNumber(7)">7</button></div>
<div class="col-3"><button type="button" class="btn btn-success btn-block" onclick="addNumber(8)">8</button></div>
<div class="col-3"><button type="button" class="btn btn-success btn-block" onclick="addNumber(9)">9</button></div>
<div class="col-3"><button type="button" class="btn btn-primary btn-block" onclick="action('multiplay')">*</button></div>
<div class="col-3"><button type="button" class="btn btn-success btn-block" onclick="addNumber(0)">0</button></div>
<div class="col-3"><button type="button" class="btn btn-success btn-block" onclick="addNumber('.')">.</button></div>
<div class="col-3"><button type="button" class="btn btn-primary btn-block" onclick="equal()">=</button></div>
<div class="col-3"><button type="button" class="btn btn-primary btn-block" onclick="action('divide')">/</button></div>
<div class="col-3"><button type="button" class="btn btn-primary btn-block" onclick="action('delete')"><-</button></div>
<div class="col-3"><button type="button" class="btn btn-primary btn-block" onclick="action('root')">√</button></div>
<div class="col-3"><button type="button" class="btn btn-primary btn-block" onclick="action('degree')">X <sup>2</sup></button></div>
<div class="col-3"><button type="button" class="btn btn-primary btn-block" onclick="action('plus-minus')">±</button></div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/jquery-3.3.1.slim.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/main.js"></script>
</body>
</html>