39 lines
1.5 KiB
Plaintext
39 lines
1.5 KiB
Plaintext
<!DOCTYPE html>
|
|
|
|
@* window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light' *@
|
|
<html>
|
|
<head>
|
|
<meta name="viewport" content="width=device-width" />
|
|
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
|
<meta name="theme-color" content="#000000" />
|
|
<meta name="description" content="Web site created using create-react-app" />
|
|
<link rel="apple-touch-icon" href="/logo192.png" />
|
|
<link rel="manifest" href="/manifest.json" />
|
|
<link rel="stylesheet" href="/styles.css" type="text/css">
|
|
<title>@ViewBag.Title</title>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.3/jquery.validate.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validation-unobtrusive/3.2.12/jquery.validate.unobtrusive.js"></script>
|
|
<script type="text/javascript">
|
|
function getTheme() {
|
|
if (window.matchMedia && window.matchMedia("(prefers-color-scheme:dark)").matches) {
|
|
return "dark";
|
|
} else {
|
|
return "light";
|
|
}
|
|
}
|
|
|
|
function setHtmlTheme(){
|
|
document.documentElement.setAttribute("data-bs-theme", getTheme());
|
|
}
|
|
|
|
setHtmlTheme();
|
|
|
|
@await RenderSectionAsync("javaScript", false)
|
|
</script>
|
|
</head>
|
|
<body>
|
|
@RenderBody()
|
|
</body>
|
|
</html>
|