Professional Documents
Culture Documents
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
.calc {
width: 215px;
justify-content: center;
background: gray;
padding: 5px;
border-radius: 15px;
padding-top: 10px;
button {
left: 10px;
width: 45px;
border-radius: 5pc;
border-style: offset;
color: white;
font-weight: bold;
button:active {
#num {
padding: 15px;
margin-right: 10px;
border-radius: 10px;
color: black;
font-weight: bold;
border-style: inset;
font-size: larger;
width: 169px;
}
sup {
font-size: 5px;
#ac, #del {
.function-keys {
.operation-keys {
</style>
<script type="text/javascript">
function deleteDigit() {
document.getElementById('num').value =
Math.floor(document.getElementById('num').value/10);
}
</script>
</head>
<body>
<div class="calc">
</div>
<div>
<button onclick="num.value+=1">1</button>
<button onclick="num.value+=2">2</button>
<button onclick="num.value+=3">3</button>
</div>
<div>
<button onclick="num.value+=4">4</button>
<button onclick="num.value+=5">5</button>
<button onclick="num.value+=6">6</button>
</div>
<div>
<button onclick="num.value+=7">7</button>
<button onclick="num.value+=8">8</button>
<button onclick="num.value+=9">9</button>
</div>
<div>
<button onclick="num.value+=0">0</button>
</div>
<div>
<button onclick="num.value=eval(num.value)">=</button>
</div>
</div>
</body>
</html>