fix
This commit is contained in:
parent
30a088fb5d
commit
06e5834e51
2 changed files with 17 additions and 2 deletions
|
@ -146,3 +146,18 @@ function expandDesktopImage(image) {
|
||||||
document.getElementById("desktop-expanded-image-link").href = image;
|
document.getElementById("desktop-expanded-image-link").href = image;
|
||||||
document.getElementById("desktop-expanded-image-wrap-link").href=image;
|
document.getElementById("desktop-expanded-image-wrap-link").href=image;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
var previousTheme = [];
|
||||||
|
|
||||||
|
function changeTheme(theme) {
|
||||||
|
const body = document.body;
|
||||||
|
// if previous selection has a value, remove them from body tag
|
||||||
|
if (previousTheme.length) {
|
||||||
|
previousTheme.map(v => body.classList.toggle(v));
|
||||||
|
}
|
||||||
|
// toggle classes in body tag
|
||||||
|
theme.map(v => body.classList.toggle(v));
|
||||||
|
// Set global previous selection to current selection
|
||||||
|
previousTheme = theme;
|
||||||
|
}
|
|
@ -347,7 +347,7 @@
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<script>function formkey() {return '{{v.formkey}}';}</script>
|
<script>function formkey() {return '{{v.formkey}}';}</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<script src="/assets/CHRISTMAS/js/default.js?v=201"></script>
|
<script src="/assets/CHRISTMAS/js/default.js?v=202"></script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue