Files
mih-project/Frontend/patient_manager/web/index.html
2024-08-07 16:02:52 +02:00

107 lines
3.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="Digitising Africa one process at a time.">
<!-- 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="Mzansi Innovation Hub">
<link rel="apple-touch-icon" href="icons/apple-touch-icon.png">
<!-- Favicon -->
<!-- <link rel="icon" type="image/png" href="logo.png"/> -->
<link rel="icon" href="favicon.png">
<!-- <link href="Logo-01.png" rel="icon" media="(prefers-color-scheme: light)">
<link href="Logo-02.png" rel="icon" media="(prefers-color-scheme: dark)"> -->
<title>Mzansi Innovation Hub</title>
<link rel="manifest" href="manifest.json">
<style>
.main {
width: 100%;
height: 100vh;
background-color: #3A4454;
display: flex; /* Default Axis is X*/
flex-direction: column;
justify-content: center; /* Main Axis */
align-items: center; /* Cross Axis */
}
.indicator{
width: 100px;
}
.writting{
font-size: 15px;
font-family: fantasy;
color: #bedcfe;
position: absolute;
bottom: 0;
padding-bottom: 3%
}
.bg{
background-color: #3A4454;
overflow: hidden
}
</style>
</head>
<body class="bg">
<script src="//cdnjs.cloudflare.com/ajax/libs/pdf.js/2.11.338/pdf.min.js"></script>
<script type="text/javascript">
pdfjsLib.GlobalWorkerOptions.workerSrc = "//cdnjs.cloudflare.com/ajax/libs/pdf.js/2.11.338/pdf.worker.min.js";
</script>
<script src="flutter_bootstrap.js?v=0.0.0.14" async></script>
<div id="loading_indicator" class="main">
<div><img class="indicator" src="Logo-loading.gif" /></div>
<div class="writting">
Prowered by Mzanzi Innovation Hub
</div>
</div>
<script>
// window
// .matchMedia('(prefers-color-scheme: dark)')
// .addEventListener('change', setFavicon);
const setFavicon = () => {
const favicon = document.querySelector('link[rel="icon"]');
favicon.href = (window.matchMedia('(prefers-color-scheme: dark)').matches)
? 'Logo-002.png'
: 'Logo-001.png';
};
setFavicon();
</script>
<script>
window.onload = function () {
setTimeout(function () {
var loadingIndicator = document.getElementById("loading_indicator");
if (loadingIndicator) {
loadingIndicator.remove();
}
}, 10000);
};
</script>
</body>
</html>