60 lines
1.7 KiB
HTML
60 lines
1.7 KiB
HTML
<!doctype html>
|
|
<html lang="en-US">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<link rel="stylesheet" href="styles.css" />
|
|
<title>mcalc</title>
|
|
</head>
|
|
<body>
|
|
<div id="calculator">
|
|
<label for="expr">Expression</label>
|
|
<input id="expr" required type="text" />
|
|
|
|
<div id="result-row">
|
|
<output id="result" for="expr modulus"></output>
|
|
<label for="modulus">mod</label>
|
|
<input id="modulus" required type="number" min="1" step="1" />
|
|
</div>
|
|
|
|
<div id="extra-buttons">
|
|
<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="7" type="button">7</button>
|
|
<button id="8" type="button">8</button>
|
|
<button id="9" type="button">9</button>
|
|
|
|
<button id="4" type="button">4</button>
|
|
<button id="5" type="button">5</button>
|
|
<button id="6" type="button">6</button>
|
|
|
|
<button id="1" type="button">1</button>
|
|
<button id="2" type="button">2</button>
|
|
<button id="3" type="button">3</button>
|
|
|
|
<button id="0" type="button">0</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>
|
|
|
|
<script type="module" src="main.js"></script>
|
|
</body>
|
|
</html>
|