forked from rtavenar/cap_nn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (45 loc) · 1.72 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="style.css" />
<link rel="icon" type="image/png" href="./runners-green.png">
</head>
<body>
<div id="app"></div>
<!-- To share on a "protectedtext" pad, also need CORS proxy -->
<script src="https://www.protectedtext.com/js/sha512.js"></script>
<script src="https://www.protectedtext.com/js/aes.js"></script>
<script src="js/GPXParser.min.js"></script>
<link
rel="stylesheet"
href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
crossorigin=""
/>
<!-- Make sure you put this AFTER Leaflet's CSS -->
<script
src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
crossorigin=""
></script>
<script src="https://unpkg.com/[email protected]/dist/vue.global.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue3-sfc-loader.js"></script>
<script src="js/main.js"></script>
<script src="utils.js"></script>
<script>
const app = Vue.createApp({
template: "<App></App>",
});
for (let camel of "App PageTitle".split(" ")) {
let dash = camel
.replace(/[A-Z]/g, (m) => "-" + m.toLowerCase())
.replace(/^-/, "");
console.log("... registering", dash, "and", camel);
app.component(dash, asyncComponent(camel + ".vue"));
app.component(camel, asyncComponent(camel + ".vue"));
}
app.mount("#app");
</script>
</body>
</html>