-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
98 lines (96 loc) · 5.38 KB
/
index.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Scientific Calculator</title>
</head>
<body>
<div id="tableData">
<h1>Scientific Calculator</h1>
<table>
<tr>
<td>
<input type="text" id="" name="" onClick="Display()">
</td>
</tr>
<tr>
<td>
<input type="button" id="" name="" value="2nd" onClick="view('2nd')">
<input type="button" id="" name="" value="(" onClick="view('(')">
<input type="button" id="" name="" value=")" onClick="view(')')">
<input type="button" id="" name="" value="10x" onClick="view('10')">
<input type="button" id="" name="" value="mc" onClick="view('mc')">
<input type="button" id="" name="" value= "m+" onClick="view('m+')">
<input type="button" id="" name="" value= "m-" onClick="view('m-')">
<input type="button" id="" name="" value= "mr" onClick="view('mr')">
</td>
</tr>
<tr>
<td>
<input type="button" id="" name="" value="1/x" onClick="view('1/x')">
<input type="button" id="" name="" value="x²" onClick="view('x^2')">
<input type="button" id="" name="" value="x^3" onClick="view('x^3')">
<input type="button" id="" name="" value="y^x" onClick="view('y^x')">
<input type="button" id="" name="" value="Ac" onClick="view('Ac')">
<input type="button" id="" name="" value= "←" onClick="view('--')">
<input type="button" id="" name="" value= "+/-" onClick="view('+/-')">
<input type="button" id="" name="" value= "÷" onClick="view('/')">
</td>
</tr>
<tr>
<td>
<input type="button" id="" name="" value="x!" onClick="view('x!')">
<input type="button" id="" name="" value="√" onClick="view('root')">
<input type="button" id="" name="" value="x√y" onClick="view('xundRoot')">
<input type="button" id="" name="" value="log" onClick="view('log')">
<input type="button" id="" name="" value="7" onClick="view('7')">
<input type="button" id="" name="" value= "8" onClick="view('8')">
<input type="button" id="" name="" value= "9" onClick="view('9')">
<input type="button" id="" name="" value= "x" onClick="view('*')">
</td>
</tr>
<tr>
<td>
<input type="button" id="" name="" value="sin^-1" onClick="view('x!')">
<input type="button" id="" name="" value="cos^-1" onClick="view('root')">
<input type="button" id="" name="" value="tan^-1" onClick="view('x^3')">
<input type="button" id="" name="" value="log₂" onClick="view('y^x')">
<input type="button" id="" name="" value="4" onClick="view('4')">
<input type="button" id="" name="" value= "5" onClick="view('5')">
<input type="button" id="" name="" value= "6" onClick="view('6')">
<input type="button" id="" name="" value= "-" onClick="view('-')">
</td>
</tr>
<tr>
<td>
<input type="button" id="" name="" value="sin" onClick="view('sin')">
<input type="button" id="" name="" value="cos" onClick="view('cos')">
<input type="button" id="" name="" value="tan" onClick="view('tan')">
<input type="button" id="" name="" value="2^x" onClick="view('xsquare')">
<input type="button" id="" name="" value="1" onClick="view('1')">
<input type="button" id="" name="" value= "2" onClick="view('2')">
<input type="button" id="" name="" value= "3" onClick="view('3')">
<input type="button" id="" name="" value= "+" onClick="view('+')">
</td>
</tr>
<tr>
<td>
<input type="button" id="" name="" value="Rad" onClick="view('x!')">
<input type="button" id="" name="" value="π" onClick="view('root')">
<input type="button" id="" name="" value="EE" onClick="view('x^3')">
<input type="button" id="" name="" value="Rand" onClick="view('y^x')">
<input type="button" id="" name="" value="%" onClick="view('%')">
<input type="button" id="" name="" value= "0" onClick="view('0')">
<input type="button" id="" name="" value= "." onClick="view('.')">
<input type="button" id="" name="" value= "=" onClick="view('=')">
</td>
</tr>
</table>
<h2>Made by Abrar ul Hassan || 25-06-2022||</h2>
</div>
<script src="App.js"></script>
</body>
</html>