Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
58 lines (50 loc) · 1.82 KB
/
Copy pathindex.html
File metadata and controls
58 lines (50 loc) · 1.82 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Calculator — Vishy</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="page">
<div class="calculator" role="application" aria-label="Calculator">
<header class="calc-head">
<div class="logo">🚀</div>
<div>
<h1>Calculator</h1>
<p class="subtitle">A tidy web calculator — demo for GitHub Pages</p>
</div>
</header>
<div class="display" id="display" aria-live="polite">0</div>
<div class="buttons" id="buttons">
<button data-fn="clear">C</button>
<button data-fn="toggle-sign">±</button>
<button data-fn="percent">%</button>
<button class="op" data-op="/">÷</button>
<button data-num="7">7</button>
<button data-num="8">8</button>
<button data-num="9">9</button>
<button class="op" data-op="*">×</button>
<button data-num="4">4</button>
<button data-num="5">5</button>
<button data-num="6">6</button>
<button class="op" data-op="-">−</button>
<button data-num="1">1</button>
<button data-num="2">2</button>
<button data-num="3">3</button>
<button class="op" data-op="+">+</button>
<button class="zero" data-num="0">0</button>
<button data-num=".">.</button>
<button class="eq" data-fn="equals">=</button>
</div>
<footer class="calc-foot">
<span>Made by <strong>Vishy</strong></span>
<span class="sep">|</span>
<a href="https://github.com/vishyishere/python-cli-calculator" target="_blank" rel="noopener">Source on GitHub</a>
</footer>
</div>
</div>
<script src="app.js"></script>
</body>
</html>