-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
112 lines (101 loc) · 3.84 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
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
<!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="" />
<title>Tesla Android</title>
<link rel="apple-touch-icon" sizes="57x57" href="icons/apple-icon-57x57.png" />
<link rel="apple-touch-icon" sizes="60x60" href="icons/apple-icon-60x60.png" />
<link rel="apple-touch-icon" sizes="72x72" href="icons/apple-icon-72x72.png" />
<link rel="apple-touch-icon" sizes="76x76" href="icons/apple-icon-76x76.png" />
<link rel="apple-touch-icon" sizes="114x114" href="icons/apple-icon-114x114.png" />
<link rel="apple-touch-icon" sizes="120x120" href="icons/apple-icon-120x120.png" />
<link rel="apple-touch-icon" sizes="144x144" href="icons/apple-icon-144x144.png" />
<link rel="apple-touch-icon" sizes="152x152" href="icons/apple-icon-152x152.png" />
<link rel="apple-touch-icon" sizes="180x180" href="icons/apple-icon-180x180.png" />
<link rel="icon" type="image/png" sizes="192x192" href="icons/android-icon-192x192.png" />
<link rel="icon" type="image/png" sizes="32x32" href="icons/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="96x96" href="icons/favicon-96x96.png" />
<link rel="icon" type="image/png" sizes="16x16" href="icons/favicon-16x16.png" />
<link rel="manifest" href="icons/manifest.json" />
<meta name="msapplication-TileColor" content="#ffffff" />
<meta name="msapplication-TileImage" content="icons/ms-icon-144x144.png" />
<meta name="theme-color" content="#ffffff" />
<script>
function createAudioContext() {
return new (window.AudioContext || window.webkitAudioContext)();
}
</script>
</head>
<body>
<div id="loading">
<style>
body {
inset: 0;
overflow: hidden;
margin: 0;
padding: 0;
position: fixed;
background-color: #ffffff; /* Light Mode */
}
#loading {
align-items: center;
display: flex;
height: 100%;
justify-content: center;
width: 100%;
}
#loading img {
animation: 1s ease-in-out 0s infinite alternate breathe;
transition: opacity 0.4s;
border-radius: 20px;
}
#loading.init_done img {
animation: 0.33s ease-in-out 0s 1 forwards zooooom;
opacity: 0.05;
}
@media (prefers-color-scheme: dark) {
body {
background-color: #303030; /* Dark Mode */
}
}
@keyframes breathe {
from {
transform: scale(1);
}
to {
transform: scale(0.95);
}
}
@keyframes zooooom {
from {
transform: scale(1);
}
to {
transform: scale(10);
}
}
</style>
<img src="icons/android-icon-192x192.png" alt="Loading indicator..." />
</div>
<script>
{{flutter_js}}
{{flutter_build_config}}
var loading = document.querySelector("#loading");
_flutter.loader.load({
onEntrypointLoaded: async function(engineInitializer) {
const appRunner = await engineInitializer.initializeEngine({
renderer: "canvaskit",
canvasKitBaseUrl: "/canvaskit/",
});
window.setTimeout(function () {
loading.remove();
}, 200);
await appRunner.runApp();
}
});
</script>
</body>
</html>