mirror of
https://gitlab.com/moepoi/payment.moepoi.dev.git
synced 2024-12-28 23:38:17 +01:00
91 lines
2.6 KiB
HTML
91 lines
2.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="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="description" content="Moepoi's Payment">
|
|
<meta name="keywords" content="Moepoi, Payment">
|
|
|
|
<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="moepoi_payment">
|
|
<link rel="apple-touch-icon" href="icons/Icon-192.png">
|
|
|
|
<link rel="icon" type="image/png" href="favicon.png"/>
|
|
|
|
<title>Moepoi's Payment</title>
|
|
<link rel="manifest" href="manifest.json">
|
|
|
|
<script>
|
|
var serviceWorkerVersion = null;
|
|
</script>
|
|
<script src="flutter.js" defer></script>
|
|
</head>
|
|
<body>
|
|
<div id="loading">
|
|
<style>
|
|
body {
|
|
inset: 0; overflow: hidden;
|
|
margin: 0; padding: 0;
|
|
position: fixed;
|
|
}
|
|
@media only screen and (min-device-width: 144px) {
|
|
.loading {
|
|
width: 100%;
|
|
}
|
|
}
|
|
@media only screen and (min-device-width: 1024px) {
|
|
.loading {
|
|
width: 40%;
|
|
}
|
|
}
|
|
#loading {
|
|
align-items: center;
|
|
display: flex;
|
|
height: 100%;
|
|
justify-content: center;
|
|
width: 100%;
|
|
}
|
|
#loading img {
|
|
animation: 1s ease-in-out 0s infinite alternate breathe;
|
|
opacity: .66;
|
|
transition: opacity .4s;
|
|
}
|
|
#loading.main_done img {
|
|
opacity: 1;
|
|
}
|
|
#loading.init_done img {
|
|
animation: .33s ease-in-out 0s 1 forwards zooooom;
|
|
opacity: .05;
|
|
}
|
|
@keyframes breathe { from { transform: scale(1) } to { transform: scale(0.95)}}
|
|
@keyframes zooooom { from { transform: scale(1) } to { transform: scale(10)}}
|
|
</style>
|
|
<img class="loading" src="icons/loading.webp" alt="Loading..." />
|
|
</div>
|
|
|
|
<script>
|
|
window.addEventListener('load', function() {
|
|
var loading = document.querySelector('#loading');
|
|
_flutter.loader.loadEntrypoint({
|
|
serviceWorker: {
|
|
serviceWorkerVersion: serviceWorkerVersion,
|
|
}
|
|
}).then(function(engineInitializer) {
|
|
loading.classList.add('main_done');
|
|
return engineInitializer.initializeEngine();
|
|
}).then(function(appRunner) {
|
|
loading.classList.add('init_done');
|
|
return appRunner.runApp();
|
|
}).then(function(app) {
|
|
window.setTimeout(function() {
|
|
loading.remove();
|
|
}, 200);
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|