-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
124 lines (107 loc) · 3.67 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!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">
<title>Scientific Calculator</title>
<link rel="stylesheet" href="/styles/style.css">
<script src="app.js" type="module"></script>
</head>
<body>
<div class="calculator-grid">
<div class="output">
<div class="previous-operand"></div>
<div class="current-operand"></div>
</div>
<div class="ans-sto">
<p id="ans-display">Ans: empty</p>
<p>|</p>
<p id="sto-display">STO: empty</p>
</div>
<!-- new row -->
<div class="span-two" id="toggler">
<input type="checkbox" class="toggle" id="check">
<label for="check"></label>
</div>
<button>%</button>
<button class="span-two">AC</button>
<button>DEL</button>
<button>÷</button>
<!-- new row -->
<button>x!</button>
<button>ln</button>
<button>log</button>
<button>1</button>
<button>2</button>
<button>3</button>
<button>×</button>
<!-- new row -->
<button>sin</button>
<button>cos</button>
<button>tan</button>
<button>4</button>
<button>5</button>
<button>6</button>
<button>+</button>
<!-- new row -->
<button>1/x</button>
<button>√</button>
<button id="y-root-x">
<p>y</p>
<p>√</p>
<p>x</p>
<!-- <img src="/images/y-root-x.png" alt="y-root-x-img"> -->
</button>
<button>7</button>
<button>8</button>
<button>9</button>
<button>-</button>
<!-- new row -->
<button>e</button>
<button id="x2">x<sup>2</sup></button>
<button>x<sup>y</sup></button>
<button>.</button>
<button>0</button>
<button class="span-two">=</button>
<!-- new row -->
<button>π</button>
<button>Ans</button>
<button>STO</button>
<button>RCL</button>
<button class="hex-num-btn">A</button>
<button class="hex-num-btn">B</button>
<button class="hex-num-btn">C</button>
<!-- new row -->
<button id="record"><p>Use</p>History</button>
<div title="History" id="history-ctr" class="span-three">
<p>History:</p>
<select name="history" id="history">
<option value="empty" selected>Empty</option>
</select>
</div>
<button class="hex-num-btn">D</button>
<button class="hex-num-btn">E</button>
<button class="hex-num-btn">F</button>
<!-- new row -->
<div id="conversion-ctr">
<select name="conversion-from" class="conversion">
<option value="dec" selected>Decimal</option>
<option value="bin">Binary</option>
<option value="oct">Octal</option>
<option value="hex">Hexadecimal</option>
</select>
<select name="conversion-to" class="conversion">
<option value="dec">Decimal</option>
<option value="bin" selected>Binary</option>
<option value="oct">Octal</option>
<option value="hex">Hexadecimal</option>
</select>
<button class="conversion">Convert</button>
</div>
<div id="water-mark">
<a href="https://github.com/mirokrastanov" target="_blank">Created by: Miro Krastanov</a>
</div>
</div>
</body>
</html>