-
Notifications
You must be signed in to change notification settings - Fork 1
/
calc.html
66 lines (49 loc) · 2.28 KB
/
calc.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<html>
<head>
<link rel="stylesheet" href="style.css">
<title>ONLICE CALCULATOR</title>
</head>
<body>
<h1>
STYlISH CALCULATOR
</h1>
<h2>
Created by:- Madushankabro
</h2>
<h6>
© Copyright 2021-22 Madushankabro.
</h6>
</body>
<form name="form1" class="calci" action="calc.html" method="POST">
<input type="text" name="answer" id="display">
<br>
<input type="button" class="color2", class="btnDesign" value="C" onclick="form1.answer.value=''">
<input type="button" class="color2", class="btnDesign" value="⌫" onclick="form1.answer.value=form1.answer.value.substring(0,form1.answer.value.length*1-1)">
<input type="button" class="color2", class="btnDesign" value="00" onclick="form1.answer.value+='00'">
<input type="button" class="color2", class="operatorDesign" value="/" onclick="form1.answer.value+='/'">
</br>
<br>
<input type="button" class="btnDesign" value="7" onclick="form1.answer.value+='7'">
<input type="button" class="btnDesign" value="8" onclick="form1.answer.value+='8'">
<input type="button" class="btnDesign" value="9" onclick="form1.answer.value+='9'">
<input type="button" class="operatorDesign" value="x" onclick="form1.answer.value+='*'">
</br>
<br>
<input type="button" class="btnDesign" value="4" onclick="form1.answer.value+='4'">
<input type="button" class="btnDesign" value="5" onclick="form1.answer.value+='5'">
<input type="button" class="btnDesign" value="6" onclick="form1.answer.value+='6'">
<input type="button" class="operatorDesign" value="-" onclick="form1.answer.value+='-'">
</br>
<br>
<input type="button" class="btnDesign" value="1" onclick="form1.answer.value+='1'">
<input type="button" class="btnDesign" value="2" onclick="form1.answer.value+='2'">
<input type="button" class="btnDesign" value="3" onclick="form1.answer.value+='3'">
<input type="button" class="operatorDesign" value="+" onclick="form1.answer.value+='+'">
</br>
<br>
<input type="button" class="btnDesign" value="." onclick="form1.answer.value+='.'">
<input type="button" class="zero" value="0" onclick="form1.answer.value+='0'">
<input type="button" class="color1", class="operatorDesign" value="=" onclick="form1.answer.value=eval(form1.answer.value)">
</br>
</form>
</html>