mirror of
https://github.com/unmojang/drasl.git
synced 2025-09-10 15:48:14 -04:00
EnableBackgroundEffect = false should not disable 3d skin preview
This commit is contained in:
parent
07f75ab62c
commit
03ee17c40b
@ -23,14 +23,15 @@
|
|||||||
<body>
|
<body>
|
||||||
<div id="background"></div>
|
<div id="background"></div>
|
||||||
<main id="content">{{ block "content" . }}{{ end }}</main>
|
<main id="content">{{ block "content" . }}{{ end }}</main>
|
||||||
|
<script type="module">
|
||||||
|
for (const el of document.querySelectorAll(".noscript-hidden")) {
|
||||||
|
el.classList.remove("noscript-hidden");
|
||||||
|
}
|
||||||
|
</script>
|
||||||
{{ if .App.Config.EnableBackgroundEffect }}
|
{{ if .App.Config.EnableBackgroundEffect }}
|
||||||
<script type="module">
|
<script type="module">
|
||||||
import { background } from "{{.App.PublicURL}}/bundle.js";
|
import { background } from "{{.App.PublicURL}}/bundle.js";
|
||||||
background(document.querySelector("#background"));
|
background(document.querySelector("#background"));
|
||||||
|
|
||||||
for (const el of document.querySelectorAll(".noscript-hidden")) {
|
|
||||||
el.classList.remove("noscript-hidden");
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</body>
|
</body>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user