-
Notifications
You must be signed in to change notification settings - Fork 0
/
calculator.html
52 lines (49 loc) · 2.94 KB
/
calculator.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
<!DOCTYPE html>
<!--
SPDX-FileCopyrightText: 2022 Glasswings
SPDX-License-Identifier: AGPL-3.0-or-later
-->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="calculator.css">
<script src="calculator.js" defer></script>
<title>Shuntyard Calculator</title>
</head>
<body>
<dialog class="div0">
<h1>The hampsters have gone on strike!</h1>
<p> and subtract zero; we take the remainder and subtract zero; we take the remainder and subtract zero; we take the remainder and subtract zero; we take the remainder</p>
<p> and subtract zero; we take the remainder and subtract zero; we take the remainder and subtract zero; we take the remainder and subtract zero; we take the remainder</p>
<button class="reset">acquiesce to their chittering demands</button>
</dialog>
<div class="calculator">
<div class="screen">javascript?</div>
<div class="keypad">
<button data-key="CLR" style="grid-row: 1; grid-column: 1;"> C </button>
<button data-key="DIV" style="grid-row: 1; grid-column: 2;"> <span class="una">(</span><span class="bin">/</span> </button>
<button data-key="MUL" style="grid-row: 1; grid-column: 3;"> <span class="una">√(</span><span class="bin">*</span> </button>
<button data-key="SUB" style="grid-row: 1; grid-column: 4;"> <span class="una">-</span><span class="bin">-</span> </button>
<button data-key="7" style="grid-row: 2; grid-column: 1;"> 7 </button>
<button data-key="8" style="grid-row: 2; grid-column: 2;"> 8 </button>
<button data-key="9" style="grid-row: 2; grid-column: 3;"> 9 </button>
<button data-key="4" style="grid-row: 3; grid-column: 1;"> 4 </button>
<button data-key="5" style="grid-row: 3; grid-column: 2;"> 5 </button>
<button data-key="6" style="grid-row: 3; grid-column: 3;"> 6 </button>
<button data-key="ADD" style="grid-row: 2 / 4; grid-column: 4;"> <span class="una"></span><span class="bin">+</span> </button>
<button data-key="1" style="grid-row: 4; grid-column: 1;"> 1 </button>
<button data-key="2" style="grid-row: 4; grid-column: 2;"> 2 </button>
<button data-key="3" style="grid-row: 4; grid-column: 3;"> 3 </button>
<button data-key="0" style="grid-row: 5; grid-column: 1 / 3;"> 0 </button>
<button data-key="." style="grid-row: 5; grid-column: 3;"> . </button>
<button data-key="EXEC" style="grid-row: 4 / 6; grid-column: 4;"> <span class="eq">=</span><span class="par">)</span> </button>
</div>
</div>
<footer>
copyright 2022 glasswings,
<a href="./agpl-3.0-standalone.html"><img alt="Licensed under AGPL V3" src="./agplv3-88x31.png"></a>
<a href="https://github.com/glasswings/odin-calculator">clone the source</a>
</footer>
</body>
</html>