simpleCalc/index.html

39 lines
1.2 KiB
HTML
Raw Normal View History

2024-01-12 08:03:49 -05:00
<html>
<head>
<link rel='stylesheet' type='text/css' href="main.css">
<script src='calc.js'></script>
</head>
<body>
<div id='main'>
<textarea id='display'>0</textarea><br>
<textarea id='breadcrumbs'></textarea>
<button id='CD' onclick='location.reload(); return false;'>CLR</button>
<button id='CD' onclick='del()'>DEL</button>
<button onclick='calcOp("div")'>/</button>
<button onclick='calcOp("mul")'>*</button>
<br>
<button onclick='numIn(7)'>7</button>
<button onclick='numIn(8)'>8</button>
<button onclick='numIn(9)'>9</button>
<button onclick='calcOp("sub")'>-</button>
<br>
<button onclick='numIn(4)'>4</button>
<button onclick='numIn(5)'>5</button>
<button onclick='numIn(6)'>6</button>
<button onclick='calcOp("add")'>+</button>
<br>
<button onclick='numIn(1)'>1</button>
<button onclick='numIn(2)'>2</button>
<button onclick='numIn(3)'>3</button>
<button onclick='calcOp("tot")'>=</button>
<br>
<button onclick='numIn(0)'>0</button>
<button onclick='numIn("00")'>00</button>
<button onclick='numIn(".")'>.</button>
<button onclick='calcOp("exp")'>^</button>
</div>
</body>
</html>