Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions Ajaybalaji.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<html>
<head>
<title>my calucalator</title>
<style>
.b
{
background-color:green;
color:white;
padding:10px 20px;
text-align:middle;
font-size:20px;
}
.t{
font-size:25px;
}
</style>
</head>
<body bgcolor="black"><center>
<table border="3" cellspacing="5px" cellpadding="5px">
<caption>MY CASIO</caption>
<tr>
<td colspan="3" bgcolor="black"><input type="text" class="t" id="res"></td>
<td align="center"><button class="b" onclick="ac()">AC</button></td>
</tr>
<tr>
<td align="center"><button class="b" onclick="show('1')">1</button></td>
<td align="center"><button class="b" onclick="show('2')">2</button></td>
<td align="center"><button class="b" onclick="show('3')">3</button></td>
<td align="center"><button class="b" onclick="show('+')">+</button></td>
</tr>
<tr>
<td align="center"><button class="b"onclick="show('4')">4</button></td>
<td align="center"><button class="b"onclick="show('5')">5</button></td>
<td align="center"><button class="b"onclick="show('6')">6</button></td>
<td align="center"><button class="b"onclick="show('-')">-</button></td>
</tr>
<tr>
<td align="center"><button class="b"onclick="show('7')">7</button></td>
<td align="center"><button class="b"onclick="show('8')">8</button></td>
<td align="center"><button class="b"onclick="show('9')">9</button></td>
<td align="center"><button class="b"onclick="show('*')">*</button></td>
</tr>
<tr>
<td align="center"><button class="b"onclick="show('0')">0</button></td>
<td align="center"><button class="b"onclick="show('%')">%</button></td>
<td align="center"><button class="b"onclick="show('/')">/</button></td>
<td align="center"><button class="b"onclick="cal()">=</button></td>
</tr>
</table>
<script>
function ac(){
document.getElementById("res").value="";
}
function show(input)
{
document.getElementById("res").value+=input;
}
function cal()
{
var output=eval(document.getElementById("res").value);
document.getElementById("res").value=output;
}
</script></center>
<H1 bgcolor="red"><i>any one to buy the calucalator dm me</i></H1>
</body>
</html>