-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
77 lines (62 loc) · 3.99 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Scientific Calculator</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<nav class="main-navbar">
<h2>Scientific Calculator</h2>
</nav>
<br>
<div class="Calculator">
<input type="text" class="display" id="display" readonly>
<div class="buttons">
<button class="button" id="b2" onclick="clear_display()">C</button>
<button class="button" id="b3" onclick="delete_last()">DEL</button>
<button class="button special" onclick="append_to_display('(')">(</button>
<button class="button special" onclick="append_to_display(')')">)</button>
<button class="button special" onclick="convert_to_fraction()">FRAC</button>
<button class="button special" onclick="append_to_display1('-')">-/+</button>
<button class="button special" onclick="append_to_display('√')">√</button>
<button class="button special" onclick="append_to_display('**2')">x²</button>
<button class="button special" onclick="append_to_display('**3')">x³</button>
<button class="button special" onclick="append_to_display('%')">mod</button>
<button class="button special" onclick="append_to_display('^')">x^y</button>
<button class="button special" onclick="applyFunction('abs')">|x|</button>
<button class="button special" onclick="append_to_display('log(')">log</button>
<button class="button special" onclick="append_to_display('ln(')">ln</button>
<button class="button" onclick="append_to_display('7')">7</button>
<button class="button" onclick="append_to_display('8')">8</button>
<button class="button" onclick="append_to_display('9')">9</button>
<button class="button special" id="o1" onclick="append_to_display('/')">/</button>
<button class="button special" onclick="append_to_display('sin(')">sin</button>
<button class="button special" onclick="append_to_display('cos(')">cos</button>
<button class="button" onclick="append_to_display('4')">4</button>
<button class="button" onclick="append_to_display('5')">5</button>
<button class="button" onclick="append_to_display('6')">6</button>
<button class="button special" id="o2" onclick="append_to_display('*')">*</button>
<button class="button special" onclick="append_to_display('tan(')">tan</button>
<button class="button special" onclick="append_to_Display('Math.PI')">π</button>
<button class="button" onclick="append_to_display('1')">1</button>
<button class="button" onclick="append_to_display('2')">2</button>
<button class="button" onclick="append_to_display('3')">3</button>
<button class="button special" id="o3" onclick="append_to_display('-')">-</button>
<button class="button special" onclick="applyFunction('ceil')">⌈x⌉</button>
<button class="button special" onclick="applyFunction('floor')">⌊x⌋</button>
<button class="button" onclick="append_to_display('0')">0</button>
<button class="button special" id="o4" onclick="append_to_display('.')">.</button>
<button class="button special" id="b1" onclick="calculate_result()">=</button>
<button class="button special" id="o5" onclick="append_to_display('+')">+</button>
</div>
</div>
<br>
<footer class="footer">
<h2>EasyCalc: Your Simple and Convenient Calculator Solution</h2>
<h4>Created by [email protected]</h4>
</footer>
<script src="script.js"></script>
</body>
</html>