-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
81 lines (78 loc) · 2.93 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>BangleJS Home</title>
</head>
<style>
:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.inital-loader {
padding: 2rem;
text-align: center;
}
</style>
<body>
<script>
if (new URLSearchParams(location.search).get("debug") === "true") {
const errorOverlay = document.createElement("div");
errorOverlay.style="position: fixed; top: 0; left: 0; width: 100%; z-index: 100; background: rgba(0, 0, 0, 0.5);";
docoment.body.appendChild(errorOverlay);
window.onerror = function myErrorHandler(message, url, lineNumber) {
const child = document.createElement("pre");
child.textContent = [
`message: ${message}`,
`url: ${url}`,
`lineNumber: ${lineNumber}`
].join('\n');
child.style = "padding: 0.5rem;";
child.addEventListener("dblclick", () => {
child.remove();
})
errorOverlay.appendChild((child));
}
}
</script>
<div id="root">
<div class="inital-loader">
<header>
🖥️ 📱 ⌚
</header>
<br />
Loading application...
</div>
</div>
<script>
const SETTINGS = {
pretokenise : true,
minify : false, // disabled by default due to https://github.com/espruino/BangleApps/pull/355#issuecomment-620124162
settime : false, // Always update time when we connect
favourites : ["launch"],
language : "",
bleCompat: false, // 20 byte MTU BLE Compatibility mode
sendUsageStats: true, // send usage stats to banglejs.com
alwaysAllowUpdate : false, // Always show "reinstall app" buttonregardless of the version
autoReload: false // Automatically reload watch after app App Loader actions (removes "Hold button" prompt)
};
</script>
<script src="/externals/espruino/BangleApps/core/js/utils.js"></script>
<script src="/externals/espruino/BangleApps/webtools/puck.js"></script>
<script src="/externals/espruino/BangleApps/webtools/heatshrink.js"></script>
<script src="/externals/espruino/BangleApps/core/lib/espruinotools.js"></script>
<script src="/externals/espruino/BangleApps/core/js/comms.js"></script>
<script src="/externals/espruino/BangleApps/core/js/appinfo.js"></script>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>