59 lines
1.6 KiB
HTML
59 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<base href="$FLUTTER_BASE_HREF">
|
|
|
|
<meta charset="UTF-8">
|
|
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
|
|
<meta name="description" content="A new Flutter project.">
|
|
|
|
<!-- iOS meta tags & icons -->
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
<meta name="apple-mobile-web-app-title" content="quickstart">
|
|
<link rel="apple-touch-icon" href="icons/Icon-192.png">
|
|
|
|
<!-- Favicon -->
|
|
<link rel="icon" type="image/png" href="favicon.png" />
|
|
|
|
<title>quickstart</title>
|
|
<link rel="manifest" href="manifest.json">
|
|
<script>
|
|
// The value below is injected by flutter build, do not touch.
|
|
const serviceWorkerVersion = null;
|
|
</script>
|
|
<script src="flutter.js" defer></script>
|
|
<script type="text/javascript" src="./thermion_dart.js"></script>
|
|
<script type="module">
|
|
try {
|
|
window.thermion_dart = await thermion_dart();
|
|
} catch(err) {
|
|
console.error(err);
|
|
}
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="flutter-container"></div>
|
|
<script type="text/javascript">
|
|
window.addEventListener('load', function (ev) {
|
|
// Download main.dart.js
|
|
_flutter.loader.loadEntrypoint({
|
|
serviceWorker: {
|
|
serviceWorkerVersion: serviceWorkerVersion,
|
|
},
|
|
onEntrypointLoaded: async function (engineInitializer) {
|
|
const appRunner = await engineInitializer.initializeEngine({
|
|
hostElement: document.querySelector('#flutter-app-container')
|
|
});
|
|
await appRunner.runApp();
|
|
}
|
|
});
|
|
});
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html> |