-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
55 lines (48 loc) · 2.14 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>
<head>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">
<title>
Calculadora
</title>
</head>
<body>
<div class="d-flex justify-content-center">
<div class="w-25 p-3">
A <input type="number" id = "dato" class="form-control" value = 0 onclick = "this.select()">
</div><br>
</div>
<div id = "opts" class="d-flex justify-content-center">
<button id = "add" onclick="add()" type="button" class="btn btn-primary">+</button>
<button id = "sub" onclick="sub()" type="button" class="btn btn-primary">-</button>
<button id = "div" onclick="div()" type="button" class="btn btn-primary">÷</button>
<button id = "mul" onclick="mul()" type="button" class="btn btn-primary">x</button>
<button id = "sqr" onclick="sqr()" type="button" class="btn btn-primary">x²</button>
<button id = "rot" onclick="rot()" type="button" class="btn btn-primary">x½</button>
<button id = "pwr" onclick="pwr()" type="button" class="btn btn-primary">x<sup>y</sup></button>
<button id = "clr" onclick="clr()" type="button" class="btn btn-primary">C</button>
</div>
<div class="d-flex justify-content-center">
<div class="w-25 p-3">
B <input type="number" id = "dato2" class="form-control" value = 0 onclick = "this.select()">
</div>
</div>
<div class="d-flex justify-content-center">
<div class="w-25 p-3">
Resultado
<table id = "resultado" border = 1 class="table">
<th>0</th>
</table>
</div>
</div>
<div class="d-flex justify-content-center">
<button id = "insa" onclick="insA()" type="button" class="btn btn-primary">Insert on A</button>
<button id = "insb" onclick="insB()" type="button" class="btn btn-primary">Insert on B</button>
</div>
<script src="calc.js"></script>
</body>
<style>
h1 {text-align: center;}
p {text-align: center;}
div {text-align: center;}
</style>
</html>