Skip to content

Commit

Permalink
- add bootswatch theme css file
Browse files Browse the repository at this point in the history
- add jquery script
- add ToggleTheme script function
  • Loading branch information
kkomzi7179 committed Aug 16, 2022
1 parent 23b4e32 commit 8a0d510
Show file tree
Hide file tree
Showing 8 changed files with 72 additions and 2 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

This file was deleted.

13 changes: 12 additions & 1 deletion BlazorBootswatchTheme/BlazorApp/wwwroot/index.html
Expand Up @@ -6,9 +6,15 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>BlazorApp</title>
<base href="/" />
<link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" />
<link id="themeLink" href="css/bootstrap/bootstrap.Default.min.css" rel="stylesheet" />
<link href="css/app.css" rel="stylesheet" />
<link href="BlazorApp.styles.css" rel="stylesheet" />

<script src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
crossorigin="anonymous"></script>
<script src="https://code.jquery.com/ui/1.13.1/jquery-ui.min.js" integrity="sha256-eTyxS0rkjpLEo16uXTS0uVCS4815lc40K2iVpWDvdSY=" crossorigin="anonymous"></script>

</head>

<body>
Expand All @@ -20,6 +26,11 @@
<a class="dismiss">🗙</a>
</div>
<script src="_framework/blazor.webassembly.js"></script>
<script>
function ToggleTheme(themeName) {
$('#themeLink').attr('href', `css/bootstrap/bootstrap.${themeName}.min.css`);
}
</script>
</body>

</html>

0 comments on commit 8a0d510

Please sign in to comment.