add some of the logic

This commit is contained in:
2026-03-28 11:01:04 +02:00
parent 82bd8786cc
commit d4a2866358
3 changed files with 97 additions and 15 deletions
+13 -14
View File
@@ -3,8 +3,6 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap"
rel="stylesheet"
@@ -17,26 +15,27 @@
<input type="text" id="display" disabled />
<button class="clear">C</button>
<button></button>
<button class="backspace"></button>
<button class="operator">÷</button>
<button>7</button>
<button>8</button>
<button>9</button>
<button class="number">7</button>
<button class="number">8</button>
<button class="number">9</button>
<button class="operator">×</button>
<button>4</button>
<button>5</button>
<button>6</button>
<button class="number">4</button>
<button class="number">5</button>
<button class="number">6</button>
<button class="operator">-</button>
<button>1</button>
<button>2</button>
<button>3</button>
<button class="number">1</button>
<button class="number">2</button>
<button class="number">3</button>
<button class="operator">+</button>
<button class="zero">0</button>
<button class="operator">=</button>
<button class="large number">0</button>
<button class="result">=</button>
</div>
<script src="./script.js"></script>
</body>
</html>