-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
171 lines (137 loc) · 6.33 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<!DOCTYPE html>
<html lang="en" class="w3-light-grey">
<head>
<!-- META ============================================= -->
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="apple-mobile-web-app-capable" content="yes" />
<!-- PAGE TITLE HERE ============================================= -->
<title> CALCULATOR </title>
<!-- MOBILE SPECIFIC ============================================= -->
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no">
<!-- FAVICONS ICON ============================================= -->
<link rel="icon" href="favicon.png" type="image/x-icon" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.png" />
<link rel="apple-touch-icon" sizes="64x64" href="favicon.png">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/w3-css/4.1.0/w3.min.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css">
<link rel="stylesheet" type="text/css" href="css/basic-calculator.css">
</head>
<body>
<div class="calc-container w3-block w3-container">
<!-- top header -->
<div class="calc-header w3-bar w3-padding-small">
<div class="w3-block w3-padding w3-medium">
<span class="w3-left"><i class="fa fa-archive"></i> Calculator</span>
<a class="w3-right" href="https://github.com/henryhale/basic-calculator" target="blank">
<i class="fab fa-github"></i>
<span class="w3-hide-small"> GitHub</span>
</a>
<div class="w3-clear"></div>
</div>
<!-- nav button -->
<button id="openMoreModal" class="w3-button w3-left w3-hover-light-grey">
<i class="fa fa-bars"></i>
</button>
<!-- current mode -->
<span class="w3-bar-item">Standard</span>
<!-- history clear button for Device Width > 600 -->
<button class="w3-bar-item w3-button w3-right w3-hover-none w3-hover-text-red w3-hide-small" id="historyClear">
<i class="fa fa-trash"></i>
<span>Clear</span>
</button>
<!-- history clear button for Mobile -->
<button class="w3-bar-item w3-button w3-right w3-hover-none w3-hover-text-red" id="historyVClear" style="display:none;">
<i class="fa fa-trash"></i>
</button>
<!-- history button for Device Width > 600 -->
<span class="w3-bar-item w3-right w3-hover-text-blue w3-hide-small">
<i class="fa fa-history"></i>
<span class="w3-hide-small"><strong>History</strong></span>
</span>
<!-- history button for Mobile -->
<button id="toggleHistoryShade" class="w3-bar-item w3-right w3-button w3-hover-none w3-hover-text-blue w3-hide-medium w3-hide-large">
<i class="fa fa-history"></i>
<span><strong>History</strong></span>
</button>
<!-- history back button for Mobile -->
<button id="toggleHistoryShadeBack" class="w3-bar-item w3-right w3-button w3-hover-none w3-hover-text-blue w3-hide-medium w3-hide-large" style="display:none;">
<i class="fa fa-chevron-left"></i>
</button>
</div>
<!-- / top header -->
<!-- main/body -->
<div class="calc-body">
<!-- main content -->
<div class="w3-row">
<!-- main body - grid -->
<div class="w3-col m8 w3-mobile" id="buttonShade">
<!-- display input -->
<div class="w3-padding-24">
<div class="w3-bar-block">
<!-- solution area -->
<input id="solutionDisplay" class="w3-bar-item w3-transparent w3-right-align w3-padding-small" disabled="true" type="text">
<!-- current area => correct to 5dps -->
<input id="currentDisplay" class="w3-bar-item w3-transparent w3-right-align" style="padding:0;font-weight:bold;font-size:2.5em" type="text" name="" maxlength="" value="">
</div>
</div>
<!-- / display input -->
<!-- button controls - grid -->
<!--
if devices supports
- CSS Grid layout => class='grid-cell grid-cell-4 grid-cell-gap-2'
- 12 Grid Block Layout => class='w3-row'
-->
<div id="layoutDiv" class="w3-block grid-cell grid-cell-4 grid-cell-gap-2 calc-main-body"></div>
<!-- / button controls - grid -->
</div>
<!-- / main body - grid -->
<!-- history - show -->
<div class="w3-col m4 w3-hide-small" id="historyShade">
<!-- history area => correct to many dps -->
<div class="w3-container w3-bar-block" style="height: calc(100vh - 85px); overflow-y: auto; overflow-x: hidden;" id="historyTab">
</div>
</div>
<!-- / history - show -->
</div>
<!-- / main content -->
</div>
<!-- / main/body -->
<!-- Sidebar -->
<div class="w3-sidebar w3-padding-small w3-transparent w3-animate-opacity" style="z-index: 3;top: 38px;left: 18px;display: none;" id="mySidebar">
<div class="w3-bar-block w3-card w3-white w3-border-0" style="left: 25px">
<button id="closeMoreModal" class="w3-bar-item w3-button w3-hover-light-grey">
<i class="fa fa-times"></i>
</button>
<div class="w3-bar-item">
<span class="w3-block w3-opacity">Modes</span>
<button class="w3-bar-item w3-button w3-hover-light-grey">
<i class="fa fa-caret-right w3-text-blue"></i>
<i class="fa fa-calculator"></i> Standard
</button>
<button disabled="true" class="w3-bar-item w3-button w3-hover-light-grey">
<i class="fa fa-flask"></i> Scientific
</button>
</div>
<div class="w3-bar-item">
<span class="w3-block w3-opacity">Add-Ins</span>
<button id="darkModeBtn" class="w3-bar-item w3-button w3-hover-light-grey">
<i class="fa fa-sun"></i> Light Mode
</button>
<button id="fullScreenBtn" class="w3-bar-item w3-button w3-hover-light-grey">
<i class="fa fa-desktop"></i> FullScreen
</button>
</div>
<div class="w3-bar-item">
<p class="w3-opacity w3-small w3-center">© 2021</p>
</div>
</div>
</div>
<!-- Transparent Overlay -->
<div class="w3-overlay w3-animate-opacity w3-transparent" style="cursor: pointer;display: none;" id="myOverlay"></div>
</div>
<!-- Show Toast Messages -->
<script type="text/javascript" src="js/basic-calculator.js"></script>
</body>
</html>