88 lines
2.7 KiB
HTML
88 lines
2.7 KiB
HTML
<!--
|
|
Copyright (C) 2025 filifa
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
-->
|
|
<!doctype html>
|
|
<html lang="en-US">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
<link rel="stylesheet" href="styles.css" />
|
|
<title>mcalc</title>
|
|
</head>
|
|
<body>
|
|
<div id="calculator">
|
|
<div id="input-row">
|
|
<div id="expr-box">
|
|
<label id="expr-label" for="expr">Expression</label>
|
|
<input id="expr" required type="text" inputmode="none" />
|
|
</div>
|
|
|
|
<div id="modulus-box">
|
|
<label id="modulus-label" for="modulus">mod</label>
|
|
<input id="modulus" required type="text" inputmode="numeric" pattern="\d+" />
|
|
</div>
|
|
</div>
|
|
|
|
<output id="result" for="expr modulus"></output>
|
|
|
|
<div id="extra-buttons">
|
|
<button id="ord" type="button">ord</button>
|
|
<button id="sqrt" type="button">√</button>
|
|
<button id="inv" type="button">x<sup>-1</sup></button>
|
|
<button id="pow" type="button">^</button>
|
|
</div>
|
|
|
|
<div id="main-buttons">
|
|
<button id="clear" type="button">C</button>
|
|
<button id="lparen" type="button">(</button>
|
|
<button id="rparen" type="button">)</button>
|
|
|
|
<div id="numerals">
|
|
<button id="seven" type="button">7</button>
|
|
<button id="eight" type="button">8</button>
|
|
<button id="nine" type="button">9</button>
|
|
|
|
<button id="four" type="button">4</button>
|
|
<button id="five" type="button">5</button>
|
|
<button id="six" type="button">6</button>
|
|
|
|
<button id="one" type="button">1</button>
|
|
<button id="two" type="button">2</button>
|
|
<button id="three" type="button">3</button>
|
|
|
|
<button id="zero" type="button">0</button>
|
|
|
|
<button id="backspace" type="button">⌫</button>
|
|
</div>
|
|
|
|
<div id="operators">
|
|
<button id="divide" type="button">/</button>
|
|
<button id="times" type="button">*</button>
|
|
<button id="minus" type="button">-</button>
|
|
<button id="plus" type="button">+</button>
|
|
<button id="enter" type="button">≡</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<footer>
|
|
<a href="https://scm.dairydemon.net/filifa/mcalc">source</a>
|
|
</footer>
|
|
|
|
<script type="module" src="main.js"></script>
|
|
</body>
|
|
</html>
|