bharat_erp/web/index.html
2026-07-24 14:01:50 +05:30

116 lines
3.3 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">
<script>
// Migrate legacy hash URLs (…/index.html#/login) to path URLs (…/login).
(function () {
var hash = window.location.hash;
if (!hash || hash.charAt(1) !== '/') return;
var route = hash.slice(1);
var basePath = window.location.pathname
.replace(/index\.html$/, '')
.replace(/\/$/, '');
window.history.replaceState(
null,
'',
(basePath || '') + route + window.location.search,
);
})();
</script>
<meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta name="description" content="A new Flutter project.">
<!-- iOS meta tags & icons -->
<meta name="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="bharat_erp">
<link rel="apple-touch-icon" href="icons/Icon-192.png">
<!-- Favicon (updated at runtime via setAppFavicon) -->
<link rel="icon" type="image/png" href="favicon.png"/>
<script>
window.setAppFavicon = function (url) {
if (!url) return;
var busted =
url +
(url.indexOf('?') >= 0 ? '&' : '?') +
'_fc=' +
Date.now();
document
.querySelectorAll(
'link[rel="icon"], link[rel="shortcut icon"], link[rel="apple-touch-icon"]'
)
.forEach(function (el) {
el.parentNode.removeChild(el);
});
function applyHref(href, type) {
var link = document.createElement('link');
link.rel = 'icon';
if (type) link.type = type;
link.href = href;
document.head.appendChild(link);
var shortcut = document.createElement('link');
shortcut.rel = 'shortcut icon';
if (type) shortcut.type = type;
shortcut.href = href;
document.head.appendChild(shortcut);
}
// Data URLs apply instantly in the tab.
if (url.indexOf('data:image/') === 0) {
var dataType = url.substring(5, url.indexOf(';'));
applyHref(url, dataType || 'image/png');
return;
}
var img = new Image();
img.onload = function () {
try {
var canvas = document.createElement('canvas');
canvas.width = 32;
canvas.height = 32;
var ctx = canvas.getContext('2d');
ctx.drawImage(img, 0, 0, 32, 32);
applyHref(canvas.toDataURL('image/png'), 'image/png');
} catch (e) {
applyHref(busted, null);
}
};
img.onerror = function () {
applyHref(busted, null);
};
img.crossOrigin = 'anonymous';
img.src = busted;
};
</script>
<title>bharat_erp</title>
<link rel="manifest" href="manifest.json">
</head>
<body>
<script src="flutter_bootstrap.js" async></script>
</body>
</html>