web-devtools/index.html
2026-01-15 12:11:01 +03:00

35 lines
1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=2.0, user-scalable=yes" />
<meta name="theme-color" content="#000000" />
<link rel="shortcut icon" type="image/ico" href="/src/assets/favicon.ico" />
<title>Siemens Dev Tools</title>
<style>
html[data-bs-theme="dark"] {
color-scheme: dark;
}
html[data-bs-theme="light"] {
color-scheme: light;
}
</style>
<script>
try {
let theme = JSON.parse(localStorage.getItem('bootstrapTheme') ?? '"system"');
if (theme === "system") {
const media = window.matchMedia('(prefers-color-scheme: dark)');
theme = media.matches ? 'dark' : 'light';
}
document.documentElement.dataset.bsTheme = theme;
} catch (e) {
console.error(e);
}
</script>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script src="/src/index.tsx" type="module"></script>
</body>
</html>