-
Notifications
You must be signed in to change notification settings - Fork 3
/
app.html
81 lines (80 loc) · 2.53 KB
/
app.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>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="André Kless <andre.kless@web.de> 2022">
<meta name="license" content="The MIT License (MIT)">
<!--
<meta name="apple-mobile-web-app-title" content="ER-Trainer">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="apple-touch-icon" href="https://ccmjs.github.io/eild/logo.png">
<link rel="apple-touch-icon" sizes="192x192" href="https://ccmjs.github.io/eild/logo.png">
<link rel="apple-touch-icon" sizes="512x512" href="https://ccmjs.github.io/eild/logo.png">
-->
<title>App</title>
<style>body { margin: 0 }</style>
<script src="https://ccmjs.github.io/digital-makerspace/libs/ccm/ccm.min.js"></script>
<body>
<script>
( async () => {
const key = new URL( location.href ).searchParams.get( 'app' ).split( ',' );
const [ component, app, config ] = await Promise.all( [
ccm.get( { name: 'dms2-components', url: 'https://ccm2.inf.h-brs.de' }, key[ 0 ] ),
ccm.get( { name: 'dms2-apps', url: 'https://ccm2.inf.h-brs.de' }, key ),
ccm.get( { name: 'dms2-configs', url: 'https://ccm2.inf.h-brs.de' }, key )
] );
document.title = app.title;
await ccm.start( component.path, { root: document.body, src: config } );
} )();
/*
// <link rel="manifest" href="manifest.webmanifest">
document.head.appendChild( ccm.helper.html( {
tag: 'link',
rel: 'manifest',
href: 'data:application/json;charset=utf-8,' + encodeURIComponent( JSON.stringify( {
"name": "Your Great Site",
"short_name": "Site",
"description": "Something dynamic",
"start_url": "<your-url>",
"background_color": "#000000",
"theme_color": "#0f4a73",
"icons": [
{
src: "icon_size_36.png",
sizes: "36x36",
type: "image/png",
},
{
src: "icon_size_48.png",
sizes: "48x48",
type: "image/png",
},
{
src: "icon_size_72.png",
sizes: "72x72",
type: "image/png",
},
{
src: "icon_size_96.png",
sizes: "96x96",
type: "image/png",
},
{
src: "icon_size_144.png",
sizes: "144x144",
type: "image/png",
},
{
src: "icon_size_192.png",
sizes: "192x192",
type: "image/png",
},
{
src: "icon_size_512.png",
sizes: "512x512",
type: "image/png",
},
]
} ) )
} ) );
*/
</script>