-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
91 lines (88 loc) · 2.79 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Calculator</title>
<link rel="stylesheet" href="css/index.css"></link>
<script src="js/calc.js"></script>
<script src="js/index.js"></script>
</head>
<body>
<div id="calc">
<div id="answerField" style="color: white;">
<div id="trigType" class="tbutton"><button class="trigbutton">RAD</button></div>
<div style="width: 100%; height: calc(100% - 32px);">
<div id="expression"></div>
<div id="tmpAnswer"></div>
</div>
</div>
<div id="numbers">
<table class="tbutton">
<tr>
<th><button>7</button></th>
<th><button>8</button></th>
<th><button>9</button></th>
</tr>
<tr>
<th><button>4</button></th>
<th><button>5</button></th>
<th><button>6</button></th>
</tr>
<tr>
<th><button>1</button></th>
<th><button>2</button></th>
<th><button>3</button></th>
</tr>
<tr>
<th><button>0</button></th>
<th><button>.</button></th>
<th><button>=</button></th>
</tr>
</table>
<ul class="tbutton operbutton">
<li><button>←</button></li>
<li><button>÷</button></li>
<li><button>⨯</button></li>
<li><button>−</button></li>
<li><button>+</button></li>
</ul>
</div>
<!-- Use checkbox hack to display functions on click -->
<input type="checkbox" id="showFunc" />
<label for="showFunc">
<div id="functions">
<!-- Medium Left-Pointing Angle Bracket Ornament -->
<div>❬</div>
<table class="tbutton funcbutton">
<tr>
<th><button>INV</button></th>
<th><button class="trigbutton">RAD</button></th>
<th><button>%</button></th>
</tr>
<tr>
<th><button>sin</button></th>
<th><button>cos</button></th>
<th><button>tan</button></th>
</tr>
<tr>
<th><button>ln</button></th>
<th><button>log</button></th>
<th><button>√</button></th>
</tr>
<tr>
<th><button>π</button></th>
<th><button>e</button></th>
<th><button>^</button></th>
</tr>
<tr>
<th><button>(</button></th>
<th><button>)</button></th>
<th><button>!</button></th>
</tr>
</table>
</div>
</label>
</div>
</body>
</html>