-
Notifications
You must be signed in to change notification settings - Fork 28
/
ew.html
197 lines (179 loc) · 7.53 KB
/
ew.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=0.8,maximum-scale=0.8, minimum-scale=0.8, shrink-to-fit=no">
<link rel="stylesheet" href="Loader/css/spectre1.min.css">
<link rel="stylesheet" href="Loader/css/spectre-exp.min.css">
<link rel="stylesheet" href="Loader/css/spectre-icons.min.css">
<link rel="stylesheet" href="Loader/css/pwa.css">
<link rel="stylesheet" href="Loader/css/main.css">
<link rel="stylesheet" href="Loader/css/style.css">
<link rel="apple-touch-icon" sizes="180x180" href="Loader/img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="Loader/img/favicon1-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="Loader/img/favicon1-16x16.png">
<link rel="manifest" href="Loader/site.webmanifest">
<link rel="mask-icon" href="img/safari-pinned-tab.svg" color="#332F2E">
<meta name="apple-mobile-web-app-title" content="eucWatch">
<meta name="application-name" content="eucWatch">
<meta name="msapplication-TileColor" content="#332F2E">
<meta name="theme-color" content="#332F2E">
<style>
.devicechooser {
cursor: pointer;
}
.devicechooser:hover {
border: 1px solid black;
}
</style>
<title>eucWatch Loader</title>
</head>
<body>
<header class="navbar-primary navbar">
<section class="navbar-section">
<a href="https://enaon.github.io/eucWatch" target="_blank" class="navbar-brand mr-2"><img src="Loader/img/favicon1-32x32.png" alt="eucWatch"> eucWatch loader</a>
<!-- <a href="#" class="btn btn-link">...</a> -->
</section>
<section class="navbar-section">
<button class="btn" id="connectmydevice">Connect</button>
</section>
<!--<section class="navbar-section">
<div class="input-group input-inline">
<input class="form-input" type="text" placeholder="search">
<button class="btn btn-primary input-group-btn">Search</button>
</div>
</section>-->
</header>
<div class="container" style="padding-top:4px">
<p id="requireHTTPS" class="hidden">
<b>STOP!</b> This page <b>must</b> be served over HTTPS. Please <a>reload this page via HTTPS</a>.
</p>
</div>
<ul class="tab tab-block" id="tab-navigate">
<li class="tab-item active" id="tab-librarycontainer">
<a href="javascript:showTab('librarycontainer')">Library</a>
</li>
<li class="tab-item" id="tab-myappscontainer">
<a href="javascript:showTab('myappscontainer')">My Apps</a>
</li>
<li class="tab-item" id="tab-watchcontainer">
<a href="javascript:showTab('watchcontainer')">Installer</a>
</li>
<li class="tab-item" id="tab-aboutcontainer">
<a href="javascript:showTab('aboutcontainer')">About</a>
</li>
</ul>
<div class="container" id="toastcontainer">
</div>
<div class="container apploader-tab" id="librarycontainer">
<div>
<div class="filter-nav">
<label class="chip active" filterid="">ALL</label>
<label class="chip" filterid="apps">Apps</label>
<label class="chip" filterid="euc">EUC</label>
<label class="chip" filterid="system">System</label>
<label class="chip" filterid="core">Core</label>
<label class="chip" filterid="favourites">Favourites</label>
</div>
<div class="hidden sort-nav">
<span>Sort by:</span>
<label class="chip active" sortid="">None</label>
<label class="chip" sortid="created">New</label>
<label class="chip" sortid="modified">Updated</label>
</div>
</div>
<div class="panel" style="clear:both">
<div class="panel-header">
<div class="input-group" id="searchform">
<input class="form-input" type="text" placeholder="Keywords...">
<button class="btn btn-primary input-group-btn">Search</button>
</div>
</div>
<div class="panel-body columns">
<!-- apps go here -->
</div>
</div>
</div>
<div class="container apploader-tab" id="myappscontainer" style="display:none">
<div class="panel">
<div class="panel-header" style="text-align:right">
<button class="btn refresh">Refresh...</button>
<button class="btn btn-primary updateapps hidden">Update X apps</button>
</div>
<div class="panel-body columns">
<!-- apps go here -->
</div>
</div>
</div>
<div class="container apploader-tab" id="watchcontainer" style="display:none">
<div class="hero bg-gray">
<div class="hero-body">
<h4>Installer</h4>
<h5>eucWatch </h5>
<h6>Select the "Install All Apps" button to start uploading eucWatch scripts to an espruino ready smartwatch. </h6>
<h6>"Remove all Apps" and "Reset to default Settings" buttons exist for debug. Install will also remove all and reset to defaults.</h6>
</div>
</div>
<div class="container" style="padding-top: 8px;">
<h5>Install Actions</h5>
<p>
<button class="btn" id="installall">Install all apps</button>
<button class="btn" id="removeall">Remove all Apps</button>
<button class="btn" id="defSettings">Reset to default Settings</button>
</p>
<h5>Utilities</h5>
<p><button class="btn" id="settime">Set Time</button>
<button class="btn" id="restart">Restart Watch</button>
<button class="btn" id="settings">Change Settings</button>
</p>
</div>
</div>
<div class="container apploader-tab" id="aboutcontainer" style="display:none">
<div class="hero bg-gray">
<div class="hero-body">
<h4>App Loader</h4>
<p>A tool for uploading apps to <a href="https://espruino.com" target="_blank">Espruino Devices ( *Unofficial* )</a></p>
<p id="apploaderlinks"></p>
<p>Check out <a href="https://github.com/espruino/EspruinoApps" target="_blank">the Source on GitHub.</a> Using <a href="https://espruino.com/" target="_blank">Espruino.</a></p>
</div>
</div>
<div class="container" style="padding-top: 8px;">
<h5>Settings</h5>
<div class="form-group">
<label class="form-switch">
<input type="checkbox" id="settings-pretokenise">
<i class="form-icon"></i> Pretokenise apps before upload (smaller, faster apps)
</label>
<label class="form-switch">
<input type="checkbox" id="settings-settime">
<i class="form-icon"></i> Always update time when we connect
</label>
<label class="form-switch">
<input type="checkbox" id="settings-ble-compat">
<i class="form-icon"></i> Bluetooth Compatibility mode (limit to 20 byte writes)
</label>
<button class="btn" id="defaultsettings">Default settings</button>
</div>
</div>
</div>
<footer class="floating hidden">
<!-- Install button, hidden by default -->
<div id="installContainer" class="hidden">
<button id="butInstall" type="button">
Install
</button>
</div>
</footer>
<script src="Loader/puck.js"></script>
<script src="Loader/core/lib/marked.min.js"></script>
<script src="Loader/core/lib/espruinotools.js"></script>
<script src="Loader/core/lib/heatshrink.js"></script>
<script src="Loader/core/js/utils.js"></script>
<script src="v2/ewloader.js"></script>
<script src="Loader/core/js/ui.js"></script>
<script src="Loader/core/js/comms.js"></script>
<script src="Loader/core/js/appinfo.js"></script>
<script src="Loader/core/js/index.js"></script>
<script src="Loader/core/js/pwa.js" defer></script>
</body>
</html>