-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathindex.html
More file actions
43 lines (43 loc) · 2.49 KB
/
index.html
File metadata and controls
43 lines (43 loc) · 2.49 KB
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
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="author" content="Aman Singh Shrinet">
<meta name="keyword" content="calc , calculator,mini project">
<meta name="description" content="Using this calculator we can perform All Arithmetic Operations">
<title>Calculator</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="body">
<span>AMAN SINGH SRINET</span>
<form class="form" name="fm">
<input type="text" name="display" class="display">
<div class="mainbody">
<input type="button" name="1" value="1" onclick="fm.display.value+='1'">
<input type="button" name="2" value="2" onclick="fm.display.value+='2 ABC'">
<input type="button" name="3" value="3" onclick="fm.display.value+='3 DEF'">
<input type="button" name="+" value="+" onclick="fm.display.value+='+'"><br>
<input type="button" name="4" value="4" onclick="fm.display.value+='4 GHI'">
<input type="button" name="5" value="5" onclick="fm.display.value+='5 JKL'">
<input type="button" name="6" value="6" onclick="fm.display.value+='6 MNO'">
<input type="button" name="-" value="-" onclick="fm.display.value+='-'"><br>
<input type="button" name="7" value="7" onclick="fm.display.value+='7 PQRS'">
<input type="button" name="8" value="8" onclick="fm.display.value+='8 TUV'">
<input type="button" name="9" value="9" onclick="fm.display.value+='9 WXYZ'">
<input type="button" name="*" value="*" onclick="fm.display.value+='*'"><br>
<input type="button" name="0" value="0" onclick="fm.display.value+='0'">
<input type="button" name="." value="." onclick="fm.display.value+='.'">
<input type="button" name="<" value="<" onclick="fm.display.value=fm.display.value.slice(0,fm.display.value.length-1)">
<input type="button" name="/" value="/" onclick="fm.display.value+='/'"><br>
<input type="button" name="C" value="C" onclick="fm.display.value=' '">
<input type="button" name="(" value="(" onclick="fm.display.value+='('">
<input type="button" name=")" value=")" onclick="fm.display.value+=')'">
<input type="button" name="1" value="=" onclick="fm.display.value=eval(fm.display.value)">
</div>
</form>
</div>
</div>
</body>
</html>