-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
95 lines (77 loc) · 3.3 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html>
<html lang="pt-br">
<head>
<!-- META TAGS -->
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- TITLE -->
<title>Calculadora | DevBSB</title>
<!-- SEO TAGS -->
<meta name="description"
content="Uma simples calculadora com funções báricas: adição, subtração, multiplicação e divisão, desenvolvida em HMTL, CSS e Javascript." />
<meta name="keywords"
content="calculadora, devbsb, html, css, javascript, animation, adição, subtração, multiplicação, divisão, projeto" />
<meta name="robots" content="" />
<meta name="revisit-after" content="1 day" />
<meta name="language" content="Portuguese" />
<meta name="generator" content="N/A" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- FAVICON -->
<link rel="icon" href="/img/favicon.ico" />
<!-- FONT ROTOBO -->
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" rel="stylesheet" />
<!-- STYLE CSS -->
<link href="/css/style.min.css" rel="stylesheet" />
</head>
<body>
<!-- CALCULATOR -->
<div class="calculator">
<!-- DISPLAY -->
<div class="display">
<input id="display" placeholder="0" disabled>
<h2 id="history"></h2>
</div>
<!-- <BUTTONS -->
<div class="row">
<button class="button purple-text" onclick="limpar()">AC</button>
<div></div>
<div></div>
<button class="button gray" onclick="add_operador('/')">/</button>
</div>
<div class="row">
<button class="button" onclick="add_numero(7)">7</button>
<button class="button" onclick="add_numero(8)">8</button>
<button class="button" onclick="add_numero(9)">9</button>
<button class="button gray" onclick="add_operador('*')">*</button>
</div>
<div class="row">
<button class="button" onclick="add_numero(4)">4</button>
<button class="button" onclick="add_numero(5)">5</button>
<button class="button" onclick="add_numero(6)">6</button>
<button class="button gray" onclick="add_operador('-')">-</button>
</div>
<div class="row">
<button class="button" onclick="add_numero(1)">1</button>
<button class="button" onclick="add_numero(2)">2</button>
<button class="button" onclick="add_numero(3)">3</button>
<button class="button gray" onclick="add_operador('+')">+</button>
</div>
<div class="row">
<div></div>
<button class="button" onclick="add_numero(0)">0</button>
<button class="button" onclick="add_numero('.')">.</button>
<button class="button purple" onclick="total()">=</button>
</div>
<!-- BUTTONS/> -->
</div>
<!-- LINK TO GITHUB PROJECT -->
<div class="github">
<a href="https://github.com/iaematt/calculator" target="_blank" title="Code in GitHub">
<img src="/img/github.svg" width="35" />
</a>
</div>
<!-- SCRIPTS -->
<script type="text/javascript" src="/js/script.min.js"></script>
<script type="text/javascript" src="/js/keyboard.min.js"></script>
</body>
</html>