-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (49 loc) · 2.12 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>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-M1R9YXWMYT"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-M1R9YXWMYT');
</script>
<!-- Meta tags -->
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="apple-touch-icon" sizes="180x180" href="favicon_package_v0.16/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="favicon_package_v0.16/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="favicon_package_v0.16/favicon-16x16.png" />
<link rel="manifest" href="favicon_package_v0.16/site.webmanifest" />
<link rel="mask-icon" href="favicon_package_v0.16/safari-pinned-tab.svg" color="#5bbad5" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="theme-color" content="#ffffff" />
<title>Binary Number Calculator</title>
<link rel="stylesheet" href="css/binary-calculator.css" />
<script type="module" src="js/binary-calculator.js" defer></script>
</head>
<body>
<header>Binary Numbers Calculator</header>
<div class="calculator">
<div class="display" data-id="display"></div>
<div class="btn-container" data-id="btns">
<button class="btn" data-id="btn-0">0</button>
<button class="btn" data-id="btn-1">1</button>
<button class="btn" data-id="btn-clr">C</button>
<button class="btn" data-id="btn-eq">=</button>
<button class="btn" data-id="btn-sum">+</button>
<button class="btn" data-id="btn-sub">-</button>
<button class="btn" data-id="btn-mul">*</button>
<button class="btn" data-id="btn-div">/</button>
</div>
</div>
<small class="note"><strong>note:</strong> calculator only works with two operands</small>
<footer>
<p>
<a href="https://github.com/fdvmoreira" target="_blank" title="GitHub profile">By Flavio Moreira</a>
</p>
</footer>
</body>
</html>