Update javascript.html
This commit is contained in:
parent
36a16d2791
commit
699902405c
1 changed files with 7 additions and 6 deletions
|
@ -9,25 +9,26 @@
|
||||||
<script src="{{ $val }}"></script>
|
<script src="{{ $val }}"></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ if .Page.Store.Get "hasMermaid" }}
|
{{ if .Page.Store.Get "hasMermaid" }}
|
||||||
<script type="module">
|
<script type="module">
|
||||||
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.esm.min.mjs';
|
import mermaid from "https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.esm.min.mjs";
|
||||||
const settings = localStorage.getItem('theme') === 'dark' ?
|
const settings = localStorage.getItem("theme") === "dark" ?
|
||||||
{
|
{
|
||||||
startOnLoad: true,
|
startOnLoad: true,
|
||||||
theme: 'dark',
|
theme: "dark",
|
||||||
darkMode: true,
|
darkMode: true,
|
||||||
themeVariables: {
|
themeVariables: {
|
||||||
tertiaryColor: '#dee3ed'
|
tertiaryColor: "#dee3ed"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
:
|
:
|
||||||
{
|
{
|
||||||
startOnLoad: true,
|
startOnLoad: true,
|
||||||
theme: 'base',
|
theme: "base",
|
||||||
darkMode: false,
|
darkMode: false,
|
||||||
themeVariables: {
|
themeVariables: {
|
||||||
tertiaryColor: '#dee3ed'
|
tertiaryColor: "#dee3ed"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue