forked from Mrugal4/Calculator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 lines (60 loc) · 3.27 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
<html>
<head>
<title>Calculator</title>
<link rel="preload" href="./img-light.jpg" as="image">
<link rel="stylesheet" type="text/css" href="./style/style.css">
</head>
<body>
<br>
<h1 style="font-size: 60px;">
<center>Calculat<img src="./dark.png" id="icon">r</center>
</h1>
<div class="box">
<center>
<table>
<tr>
<td colspan="4"><input class="display" type="text" style="text-align: right" id="result">
</td>
</tr>
<tr>
<td><input class="end" type="button" value="C" onclick="clearScreen()"
style="padding-left:16px;padding-right:16px"></td>
<td><input class="end" type="button" value="<=" onclick="returnback()"
style="padding-left:12px;padding-right:12px"></td>
<td><input class="end" type="button" value="%" onclick="textview('%')"></td>
<td><input class="endl" type="button" value="/" onclick="textview('/')"></td>
</tr>
<tr>
<td><input class="endb" type="button" value="^" onclick="textview('^')"></td>
<td><input class="endb" type="button" value="sqrt" onclick="sqrt()"></td>
<td><input class="endb" type="button" value="*" onclick="textview('*')"></td>
<td><input class="endl" type="button" value="-" onclick="textview('-')"></td>
</tr>
<tr>
<td><input class="endb" type="button" value="7" onclick="textview('7')"></td>
<td class="buts"><input class="endb" type="button" value="8" onclick="textview('8')"></td>
<td><input class="endb" type="button" value="9" onclick="textview('9')"></td>
<td><input class="endl" type="button" value="+" onclick="textview('+')"></td>
</tr>
<tr>
<td><input class="endb" type="button" value="4" onclick="textview('4')"></td>
<td><input class="endb" type="button" value="5" onclick="textview('5')"></td>
<td class="buts"><input class="endb" type="button" value="6" onclick="textview('6')"></td>
<td><input class="endl" type="button" value="round" onclick="round()"></td>
</tr>
<tr>
<td><input class="endb" type="button" value="1" onclick="textview('1')"></td>
<td><input class="endb" type="button" value="2" onclick="textview('2')"></td>
<td><input class="endb" type="button" value="3" onclick="textview('3')"></td>
<td><input class="endl" type="button" value="1/x" onclick="reciprocal()"></td>
</tr>
<tr>
<td colspan="2"><input class="endb" type="button" value="0" onclick="textview('0')"></td>
<td><input class="endb" type="button" value="." onclick="textview('.')"></td>
<td><input class="endl" type="button" value="=" onclick="calculate()"></td>
</tr>
</table>
</center>
<script src="./script/script.js"></script>
</body>
</html>