Include the dark-mode-toggle lib from file rather than CDN

This commit is contained in:
Francis Lavoie 2020-03-30 22:00:48 -04:00
parent 7ee79e96fb
commit 827c44cc28
No known key found for this signature in database
GPG key ID: 7D1A27F0725BE5D8
2 changed files with 4 additions and 2 deletions

View file

@ -1,9 +1,9 @@
{{include "/includes/head.html"}}
<!-- https://github.com/GoogleChromeLabs/dark-mode-toggle -->
<script type="module" src="https://unpkg.com/dark-mode-toggle"></script>
<script type="module" src="/resources/js/dark-mode-toggle.min.js"></script>
<!-- modulepreload is still experimental as of this writing, but works in Chrome -->
<!-- should help avoid some of the flicker on page load -->
<link rel="modulepreload" src="https://unpkg.com/dark-mode-toggle" crossorigin>
<link rel="modulepreload" src="/resources/js/dark-mode-toggle.min.js" crossorigin>
<link rel="stylesheet" href="/resources/css/docs.css">
<link rel="stylesheet" href="/resources/css/docs-dark.css" media="(prefers-color-scheme: dark)">

File diff suppressed because one or more lines are too long