-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
255 lines (236 loc) · 12.3 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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
<!DOCTYPE html>
<html>
<head>
<link rel="shortcut icon" type="image/x-icon" href="./assets/icon.ico">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/uikit.min.css">
<link rel="stylesheet" href="./css/overrides.css">
<link rel="stylesheet" href="./css/numpad.css">
<link rel="stylesheet" href="./css/print.css">
</head>
<body>
<div id="wrapper" class="wrapper">
<div id="header-win" class="header-win">
<div class="header-win-icon"><img src="./assets/icon.ico"></div>
<div id="header-win-title" class="header-win-title"></div>
<div id="winButtons" class="winButtons">
<span id="close" class="close-btn-win" title="Exit"></span>
<span id="max" class="max-btn-win" title="Maximize"></span>
<span id="unmax" class="unmax-btn-win" title="Unmaximize"></span>
<span id="min" class="min-btn-win" title="Minimize"></span>
</div>
</div>
<div id="header-mac" class="header-mac">
<div id="header-mac-title" class="header-mac-title"></div>
</div>
<div id="panel" class="panel">
<div id="lineNo" class="lineNo syncscroll" name="sync"></div>
<div id="inputPane" class="inputPane resize">
<textarea id="input" class="input syncscroll mousetrap" name="sync" wrap="off" spellcheck="false"></textarea>
</div>
<div id="handle" class="handle"></div>
<div id="output" class="output syncscroll" name="sync"></div>
<div id="scroll" class="scroll syncscroll" name="sync"></div>
</div>
<div id="actions" class="actions">
<div id="leftActions" class="leftActions">
<a id="clearButton" title="Clear Board" uk-tooltip></a>
<a id="printButton" title="Print" uk-tooltip></a>
<a id="saveButton" title="Save" uk-tooltip></a>
<a id="openButton" class="action" title="Open" uk-tooltip></a>
<a id="undoButton" class="action" title="Undo"></a>
</div>
<div id="msgBox" class="msgBox">
<span id="msg" class="msg"></span>
</div>
<div id="rightActions" class="rightActions">
<a id="settingsButton" class="action" title="Settings" uk-tooltip></a>
<a id="helpButton" class="action" title="Help" uk-tooltip></a>
<a id="aboutButton" class="action" title="Info" uk-tooltip></a>
</div>
</div>
</div>
<div id="dialog-save" uk-modal>
<div class="uk-modal-dialog uk-modal-body uk-margin-auto-vertical uk-width-small">
<h2 class="uk-modal-title">Save Calculation</h2>
<div><input id="saveTitle" class="textBox" type="text" maxlength="20" placeholder="Title (Optional)"></div>
<div class="dialog-buttons uk-text-right">
<button id="dialog-save-save" class="uk-button uk-button-default uk-button-small">Save</button>
<button class="uk-button uk-button-default uk-modal-close uk-button-small">Cancel</button>
</div>
</div>
</div>
<div id="dialog-open" uk-modal>
<div class="uk-modal-dialog uk-modal-body uk-margin-auto-vertical uk-width-medium">
<h2 class="uk-modal-title">Open Calculation</h2>
<div id="dialog-open-body" class="dialog-open-body uk-overflow-auto"></div>
<div class="dialog-buttons uk-text-right">
<button id="dialog-open-deleteAll" class="uk-button uk-button-danger uk-button-small">Delete All</button>
<button class="uk-button uk-button-default uk-modal-close uk-button-small">Cancel</button>
</div>
</div>
</div>
<div id="dialog-settings" uk-modal>
<div class="uk-modal-dialog uk-modal-body uk-margin-auto-vertical uk-width-large">
<div id="dialog-settings-body">
<h2 class="uk-modal-title">Settings</h2>
<div class="uk-child-width-expand" uk-grid>
<div class="uk-width-2-5">Answer precision</div>
<div class="uk-text-right uk-width-3-5">
<div class="uk-child-width-expand" uk-grid>
<div class="uk-text-right uk-width-2-5">
<span id="precision-label" class="uk-label precision">1</span>
</div>
<div class="uk-text-right range uk-width-3-5">
<input id="precisionRange" class="uk-range" type="range" min="0" max="16" step="1">
</div>
</div>
</div>
</div>
<div class="uk-child-width-expand" uk-grid>
<div>Date output format</div>
<div class="uk-text-right">
<select id="dateFormat" class="uk-select"></select>
</div>
</div>
<div class="uk-child-width-expand" uk-grid>
<div>Show line numbers</div>
<div class="uk-text-right">
<label class="switch">
<input id="lineNoButton" type="checkbox" checked>
<span class="slider round"></span>
</label>
</div>
</div>
<div class="uk-child-width-expand" uk-grid>
<div>Show line errors</div>
<div class="uk-text-right">
<label class="switch">
<input id="lineErrorButton" type="checkbox" checked>
<span class="slider round"></span>
</label>
</div>
</div>
<div class="uk-child-width-expand" uk-grid>
<div>Enable resizable panes</div>
<div class="uk-text-right">
<label class="switch">
<input id="resizeButton" type="checkbox" checked>
<span class="slider round"></span>
</label>
</div>
</div>
<div class="uk-child-width-expand" uk-grid>
<div class="uk-width-4-5">
Update exchange rates on start <a id="updateRatesButton" class="updateRatesLink">Update Now</a>
</div>
<div class="uk-text-right uk-width-1-5">
<label class="switch">
<input id="autoRatesButton" type="checkbox" checked>
<span class="slider round"></span>
</label>
</div>
</div>
</div>
<div uk-grid>
<div class="dialog-buttons uk-width-1-4 uk-text-left">
</div>
<div class="dialog-buttons uk-width-3-4 uk-text-right">
<button id="dialog-settings-save" class="uk-button uk-button-default uk-button-small">Save</button>
<button id="dialog-settings-defaults" class="uk-button uk-button-default uk-button-small">Defaults</button>
<button class="uk-button uk-button-default uk-modal-close uk-button-small">Cancel</button>
</div>
</div>
</div>
</div>
<div id="dialog-help" uk-modal>
<div class="uk-modal-dialog uk-modal-body uk-margin-auto-vertical">
<h2 class="uk-modal-title">Help</h2>
<div class="helpBox"><input id="searchBox" class="textBox" type="text" maxlength="100" placeholder="Start typing to search..."></div>
<div id="searchResults" class="searchResults">Start typing above to search...</div>
<div class="dialog-buttons uk-text-right">
<button class="uk-button uk-button-default uk-modal-close uk-button-small">OK</button>
</div>
</div>
</div>
<div id="dialog-about" class="dialog-about" uk-modal>
<div class="uk-modal-dialog uk-modal-body uk-margin-auto-vertical uk-width-small">
<div class=dialog-about-header>
<span class="dialog-about-icon"><img src="./assets/icon.ico"></span>
<span id="dialog-about-title" class="dialog-about-title"></span>
</div>
<div>
<span id="dialog-about-appVersion" class="dialog-about-appVersion"></span>
<span class="dialog-about-copyright">Copyright ©️ 2020 Timur Atalay</span>
</div>
<div uk-grid>
<div class="dialog-buttons uk-width-3-5">
<div class="dialog-about-links">
<div>
<a href="https://github.com/bornova/numpad" id="openUrl" target="_blank">GitHub</a>
</div>
<div>
<a href="https://github.com/bornova/numpad/blob/master/LICENSE" id="openUrl" target="_blank">Licence</a>
</div>
</div>
</div>
<div class="dialog-buttons uk-width-2-5 uk-text-right">
<button class="uk-button uk-button-default uk-modal-close uk-button-small">OK</button>
</div>
</div>
</div>
</div>
<div id="dialog-plot" class="uk-modal-full" uk-modal>
<div class="uk-modal-dialog uk-modal-body uk-margin-auto-vertical">
<h2 id="plotTitle" class="uk-modal-title"></h2>
<div id="plot"></div>
<div uk-grid>
<div class="dialog-buttons uk-width-3-4 uk-text-left">
<label class="plotOptions"><input id="plotGridLines" class="uk-checkbox" type="checkbox" checked> Grid Lines</label>
<label class="plotOptions"><input id="plotTipLines" class="uk-checkbox" type="checkbox" checked> Tip Lines</label>
<label class="plotOptions"><input id="plotClosed" class="uk-checkbox" type="checkbox" checked> Closed</label>
</div>
<div class="dialog-buttons uk-width-1-4 uk-text-right">
<button class="uk-button uk-button-default uk-modal-close uk-button-small">Close</button>
</div>
</div>
</div>
</div>
<div id="dialog-error" uk-modal>
<div class="uk-modal-dialog uk-modal-body uk-margin-auto-vertical uk-width-large">
<h2 id="errTitle" class="errTitle uk-modal-title"></h2>
<span id="errMsg"></span>
<div class="dialog-buttons uk-text-right">
<button class="uk-button uk-button-default uk-modal-close uk-button-small">OK</button>
</div>
</div>
</div>
<div id="dialog-confirm" class="dialog-confirm" uk-modal>
<div class="uk-modal-dialog uk-modal-body uk-margin-auto-vertical uk-width-small">
<h2 class="uk-modal-title">Are you sure?</h2>
<span id="confirmMsg"></span>
<div class="dialog-buttons uk-text-right">
<button id="confirm-yes" class="uk-button uk-button-default uk-button-small">Yes</button>
<button class="uk-button uk-button-default uk-modal-close uk-button-small">No</button>
</div>
</div>
</div>
<div class="printArea">
<div class="printHeader">
<span class="print-icon"><img src="./assets/icon.ico"></span>
<span id="print-title" class="print-title"></span>
</div>
<div class="printBoxes">
<div id="printLines" class="printLines"></div>
<div id="printInput" class="printInput"></div>
<div id="printOutput" class="printOutput"></div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/uikit.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/math.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/moment.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/d3.min.js"></script>
<script src="./js/calculate.js"></script>
<script src="./js/numpad.js"></script>
<script src="./js/function-plot.min.js"></script>
</body>
</html>