post_enrollment_app/web/index.html
venbaittech b5d77d2426 CHANGE_
2024-07-28 11:50:54 +05:30

136 lines
4.2 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<!--
If you are serving your web app in a path other than the root, change the
href value below to reflect the base path you are serving from.
The path provided below has to start and end with a slash "/" in order for
it to work correctly.
For more details:
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
This is a placeholder for base href that will be replaced by the value of
the `--base-href` argument provided to `flutter build`.
-->
<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_app_pwa</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>
<script>
// The value below is injected by flutter build, do not touch.
const serviceWorkerVersion = {{flutter_service_worker_version}};
</script>
<!-- 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">
</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";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
const firebaseConfig = {
apiKey: "AIzaSyAg0e5u7Piy6sWfgKl0C6D2XYyOakGB4wg",
authDomain: "push-notification-enrollment.firebaseapp.com",
projectId: "push-notification-enrollment",
storageBucket: "push-notification-enrollment.appspot.com",
messagingSenderId: "203846206303",
appId: "1:203846206303:web:292619fd22c24ff99b6cea"
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
</script>
<!-- <script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js"></script>-->
<!-- <script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-auth.js"></script>-->
<!-- <script>-->
<!-- var firebaseConfig = {-->
<!-- apiKey: "AIzaSyAdacw5svpqopDCpoEym7aDkI3F2AajEO4",-->
<!-- authDomain: "push-notification-enrollment.firebaseapp.com",-->
<!-- projectId: "push-notification-enrollment",-->
<!-- storageBucket: "push-notification-enrollment.appspot.com",-->
<!-- messagingSenderId: "203846206303",-->
<!-- appId: "1:203846206303:android:01f39a22f39a50539b6cea"-->
<!-- };-->
<!-- firebase.initializeApp(firebaseConfig);-->
<!-- </script>-->
<script>
window.addEventListener('load', function(ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
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();
}
},5000);
};
</script>
</body>
</html>