100 lines
2.6 KiB
HTML
100 lines
2.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="">
|
|
<head>
|
|
|
|
<base href="$FLUTTER_BASE_HREF">
|
|
|
|
<meta charset="UTF-8">
|
|
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
|
|
<meta name="description" content="Nhance App Flutter">
|
|
|
|
<!-- 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="nhance_app_pwa">
|
|
<link rel="apple-touch-icon" href="icons/Icon-192.png">
|
|
|
|
<!-- Favicon -->
|
|
<link rel="icon" type="image/png" href="favicon.png"/>
|
|
|
|
<title>Nhance</title>
|
|
<link rel="manifest" href="manifest.json">
|
|
|
|
<style>
|
|
.content {
|
|
width: 10%;
|
|
height: 10vh;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
text-align: center;
|
|
}
|
|
|
|
.overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: #FFFCE5; /* Overlay background color with opacity */
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Styles for the loading indicator */
|
|
.indicator {
|
|
width: 5vw;
|
|
}
|
|
|
|
</style>
|
|
<!-- This script adds the flutter initialization JS code -->
|
|
<script src="flutter.js" defer></script>
|
|
</head>
|
|
<body style="overflow:hidden">
|
|
<div id="loading_indicator" class="container overlay">
|
|
<img class="indicator" src="assets/nhance-loader.gif" alt="">
|
|
</div>
|
|
<script type="module">
|
|
// Import the functions you need from the SDKs you need
|
|
import { initializeApp } from "https://www.gstatic.com/firebasejs/10.12.4/firebase-app.js";
|
|
|
|
// Your web app's Firebase configuration
|
|
const firebaseConfig = {
|
|
apiKey: "AIzaSyDg6lonV9STSIwJ4x261tcTGALEhX98LqY",
|
|
authDomain: "nhance-app-4fedb.firebaseapp.com",
|
|
projectId: "nhance-app-4fedb",
|
|
storageBucket: "nhance-app-4fedb.appspot.com",
|
|
messagingSenderId: "508866094093",
|
|
appId: "1:508866094093:web:82f8ad47ccb63688366144"
|
|
};
|
|
|
|
// Initialize Firebase
|
|
const app = initializeApp(firebaseConfig);
|
|
</script>
|
|
|
|
<script>
|
|
window.addEventListener('load', function(ev) {
|
|
// Download main.dart.js
|
|
_flutter.loader.loadEntrypoint({
|
|
onEntrypointLoaded: function(engineInitializer) {
|
|
engineInitializer.initializeEngine().then(function(appRunner) {
|
|
appRunner.runApp();
|
|
});
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
<script>
|
|
window.onLoad = function(){
|
|
setTimeout(function () {
|
|
var loadingIndicator = document.getElementById("loading_indicator");
|
|
if(loadingIndicator){
|
|
loadingIndicator.remove();
|
|
}
|
|
});
|
|
};
|
|
</script>
|
|
</body>
|
|
</html>
|