-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathindex.html
258 lines (216 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
256
257
258
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" type="text/css" href="style/normalize.css">
<link rel="stylesheet" type="text/css" href="style/styles.css">
<link rel="stylesheet" type="text/css" href="style/gh-pages-slate-stylesheet.css">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<script type="module" src="js/app.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mustache.js/2.3.0/mustache.min.js" ></script>
<script type="text/javascript" src="js/thirdparty/jscolor.min.js"></script>
<script type="text/javascript" src="js/thirdparty/rgbcolor.js"></script>
<script type="text/javascript" src="js/thirdparty/StackBlur.js"></script>
<script type="text/javascript" src="js/thirdparty/canvg.js"></script>
<!-- Include Choices CSS -->
<link rel="stylesheet" href="js/thirdparty/choices-PR325/choices.min.css">
<!-- Include Choices JavaScript -->
<script src="js/thirdparty/choices-PR325/choices.min.js"></script>
<!-- Include flatpickr datetime selector -->
<link rel="stylesheet" href="node_modules/flatpickr/dist/flatpickr.min.css">
<script src="node_modules/flatpickr/dist/flatpickr.min.js"></script>
<title>Crypto-Touchbar-App</title>
</head>
<body>
<!-- HEADER -->
<div id="header_wrap" class="outer">
<header class="inner">
<a id="forkme_banner" href="https://github.com/chrislennon/Crypto-Touchbar-App">View on GitHub</a>
<h1 id="project_title">Crypto Touchbar <span>(and Notch Bar)</span></h1>
<h2 id="project_tagline">Cryptocurrency widgets for <a href="https://www.boastr.net/">BetterTouchTool</a>.</h2>
</header>
</div>
<section class="outer">
<!-- Nothing to see here -->
</section>
<!-- MAIN CONTENT -->
<div id="main_content_wrap" class="outer">
<section id="main_content" class="inner">
<div class="touchbar-base">
<div class="touchbar-element-left">
<div class="touchbar-element"><span>esc</span></div>
</div>
<div id="crypto-touchbar-area" class="touchbar-element-middle">
<!-- Generated Crypto Elements to go here -->
</div>
<div class="touchbar-element-right">
<div class="touchbar-element volume"><span class="icon"></span></div>
<div class="touchbar-element mute"><span class="icon"></span></div>
<div class="touchbar-element siri"><span class="icon"></span></div>
</div>
</div>
<form id="form">
<span>FIAT Currency</span>
<select id="fiat">
</select>
<br>
<br>
<span>Crypto Currencies </span><span style="font-size: 10px">(icons available for some)</span>
<br>
<div id="coins">
</div>
<br>
<span>Add Other Coins</span>
<select class="form-control" multiple name="currency-choices" id="dynamic-coinlist">
</select>
</form>
<br>
<form id="useroptions">
<h4>Python Type:</h4>
<br>
<select id="templateType">
<option value="python2" selected>Python 2(Legacy)</option>
<option value="python3">Python 3(macOS Monterey 12.3)</option>
</select>
<br>
<br>
<h4>BetterTouchTool Trigger Type:</h4>
<br>
<select id="triggerType">
<option value="BTTTriggerTypeTouchBar" selected>Touch Bar</option>
<option value="BTTTriggerTypeHTMLBar">Notch Bar</option>
</select>
<br>
<br>
<h4>API selection: </h4>
<br>
<div id="apiselection">
<input id="live-price" type="radio" name="api-type" data-apiType="live" checked>
<label for="live-price">Live</label>
<br>
<input id="historical-price" type="radio" name="api-type" data-apiType="historical" >
<label for="historical-price">Historical</label>
<input id="flatpickr" type="text" placeholder="Select Date/Time.." readonly="readonly" style="width: 200px; display: none;">
<input id="flatpicker-output" type="text" readonly="readonly" style="display: none;">
<input id="flatpicker-output-string" type="text" readonly="readonly" style="display: none;">
<br>
<br>
</div>
<div id="formattoptions">
<h4>Options</h4>
<br>
<div>
<span>Refresh Interval:</span>
<select id="refreshInterval">
<option value="10">10</option>
<option value="30">30</option>
<option value="60" selected>60</option>
<option value="90">90</option>
<option value="120">120</option>
</select>
<span>s</span>
</div>
<div id="grouptoggle">
<input id="groupcheckbox" type="checkbox">
<label for="groupcheckbox">Group crypto elements under one button</label>
</div>
<div id="cacheToggle">
<input id="cachecheckbox" type="checkbox">
<label for="cachecheckbox">Cache results for offline viewing</label>
</div>
<div id="FormatOptions">
<input id="comma-separate" type="checkbox">
<label for="comma-separate">Separate thousands with commas</label>
<br>
<span>Number of decimals: </span>
<input id="zero-place" type="radio" name="decimal-count" data-count="0">
<label for="zero-place">0</label>
<input id="one-place" type="radio" name="decimal-count" data-count="1">
<label for="one-place">1</label>
<input id="two-place" type="radio" name="decimal-count" data-count="2">
<label for="two-place">2</label>
<input id="three-place" type="radio" name="decimal-count" data-count="3">
<label for="three-place">3</label>
<input id="four-place" type="radio" name="decimal-count" data-count="4">
<label for="four-place">4</label>
<input id="five-place" type="radio" name="decimal-count" data-count="5">
<label for="five-place">5</label>
<input id="infinite-place" type="radio" name="decimal-count" data-count="∞" checked>
<label for="infinite-place">∞</label>
</div>
<br>
<div id="varianceoptions">
<h4>Additional Indicators</h4>
<h5>Simple</h5>
<input id="no-trend" type="radio" name="variance-type" data-variance="no" checked>
<label for="no-trend">No indicator</label>
<br>
<input id="simple-trend" type="radio" name="variance-type" data-variance="simple">
<label for="simple-trend">Arrow indicator based on opening ( ▲/▼ )</label>
<br>
<h5>Literal values</h5>
<div>
<span>Number of decimals: </span>
<input id="zero-place" type="radio" name="literal-round" data-count="0" checked>
<label for="zero-place">0</label>
<input id="one-place" type="radio" name="literal-round" data-count="1">
<label for="one-place">1</label>
<input id="two-place" type="radio" name="literal-round" data-count="2">
<label for="two-place">2</label>
<input id="three-place" type="radio" name="literal-round" data-count="3">
<label for="three-place">3</label>
</div>
<input id="mktcap-trend" type="radio" name="variance-type" data-variance="mktcap">
<label for="mktcap-trend">Show market cap ( $00,000 M )</label>
<br>
<input id="absolute-trend" type="radio" name="variance-type" data-variance="absolute">
<label for="absolute-trend">Absolute $ Range (Low: $000 / High: $000)</label>
<br>
<input id="relative-trend" type="radio" name="variance-type" data-variance="relative">
<label for="relative-trend">Relative $ Range (-$000 / +$000)</label>
<br>
<input id="user-percentage-trend" type="radio" name="variance-type" data-variance="user-percentage">
<label for="user-percentage-trend">Relative $ Range based on user percentage (-$000 / +$000)</label>
<input id="user-percentage" type="text" value="0" maxlength="4" size="4">%
<br>
<h5>Percentage values</h5>
<div>
<span>Number of decimals: </span>
<input id="zero-place" type="radio" name="percentage-round" data-count="0" checked>
<label for="zero-place">0</label>
<input id="one-place" type="radio" name="percentage-round" data-count="1">
<label for="one-place">1</label>
<input id="two-place" type="radio" name="percentage-round" data-count="2">
<label for="two-place">2</label>
<input id="three-place" type="radio" name="percentage-round" data-count="3">
<label for="three-place">3</label>
</div>
<input id="current-percentage-trend" type="radio" name="variance-type" data-variance="current-percentage">
<label for="current-percentage-trend">Change % based on opening (+10%)</label>
<br>
<input id="range-percentage-trend" type="radio" name="variance-type" data-variance="range-percentage">
<label for="range-percentage-trend">Relative % Range (-8% / +10%)</label>
<br>
</div>
<br>
</div>
</form>
<br>
<a id="exportJSON" class="button"><i class="icon-download"></i> download BTT json</a><br>
<a id="directExportJSON" class="button"><i class="icon-download"></i> direct import to BTT</a><br>
<div id="BTTinstructions">
<span>The json export can be imported using the 'Manage Presets' menu in the bottom left of BetterTouchTool. <br> See <a href="https://github.com/chrislennon/Crypto-Touchbar-App#instructions">README</a> for more details.</span>
</div>
<div id="canvas-area" style="display: none;"></div>
</section>
</div>
<!-- FOOTER -->
<div id="footer_wrap" class="outer">
<footer class="inner">
<p>Application maintained on <a href="https://github.com/chrislennon/Crypto-Touchbar-App">GitHub</a></p>
</footer>
</div>
</body>
</html>