forked from rDrama/rDrama
fix
parent
de03f4823c
commit
868e96c700
|
@ -1,6 +1,6 @@
|
||||||
<div class="container inline-flex sm:hidden">
|
<div class="container inline-flex sm:hidden">
|
||||||
|
|
||||||
<div class="z-100 fixed shadow-sm bottom-0 w-full dark:bg-none bg-gradient-to-t from-gray-200 to-gray-100 dark:bg-gray-700 border-t border-gray-300 dark:border-gray-900 px-4 py-3" id="mobile-bottom-navigation-bar" style="transition: transform cubic-bezier(0, 0, 0.2, 1) 220ms;">
|
<div class="z-100 fixed shadow-sm bottom-0 w-full dark:bg-none bg-gradient-to-t from-gray-200 to-gray-100 dark:bg-gray-700 border-t border-gray-300 dark:border-none px-4 py-3" id="mobile-bottom-navigation-bar" style="transition: transform cubic-bezier(0, 0, 0.2, 1) 220ms;">
|
||||||
|
|
||||||
<ul class="flex flex-nowrap justify-around text-shadow mb-0">
|
<ul class="flex flex-nowrap justify-around text-shadow mb-0">
|
||||||
<li>
|
<li>
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
|
{% if v and v.theme2 %}
|
||||||
|
{% set theme = v.theme2 %}
|
||||||
|
{% else %}
|
||||||
|
{% set theme = 'theme-iron dark' %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en" class="{{ theme }}">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
|
@ -57,13 +63,7 @@
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
{% if v and v.theme2 %}
|
<body class="overflow-hidden overflow-y-auto sm:overflow-y-none antialiased bg-cover bg-center bg-gray-500 text-black dark:bg-gray-700 dark:text-gray-100">
|
||||||
{% set theme = v.theme2 %}
|
|
||||||
{% else %}
|
|
||||||
{% set theme = 'theme-iron dark' %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<body class="{{ theme }} overflow-hidden overflow-y-auto sm:overflow-y-none antialiased bg-cover bg-center bg-gray-500 text-black dark:bg-gray-700 dark:text-gray-100">
|
|
||||||
|
|
||||||
{% include "CHRISTMAS/header-tw.html" %}
|
{% include "CHRISTMAS/header-tw.html" %}
|
||||||
|
|
||||||
|
@ -217,7 +217,7 @@
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script src="/assets/CHRISTMAS/js/mobile_navigation_bar.js?v=200"></script>
|
<script src="/assets/CHRISTMAS/js/mobile_navigation_bar.js?v=207"></script>
|
||||||
|
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<script>function formkey() {return '{{v.formkey}}';}</script>
|
<script>function formkey() {return '{{v.formkey}}';}</script>
|
||||||
|
@ -225,13 +225,13 @@
|
||||||
<script>
|
<script>
|
||||||
var previousTheme = '{{ v.theme2 }}'.split(' ');
|
var previousTheme = '{{ v.theme2 }}'.split(' ');
|
||||||
function changeTheme(theme) {
|
function changeTheme(theme) {
|
||||||
const body = document.body;
|
const root = document.documentElement
|
||||||
// if previous selection has a value, remove them from body tag
|
// if previous selection has a value, remove them from root html tag
|
||||||
if (previousTheme.length) {
|
if (previousTheme.length) {
|
||||||
previousTheme.map(v => body.classList.toggle(v));
|
previousTheme.map(v => root.classList.toggle(v));
|
||||||
}
|
}
|
||||||
// toggle classes in body tag
|
// toggle classes in root html tag
|
||||||
theme.map(v => body.classList.toggle(v));
|
theme.map(v => root.classList.toggle(v));
|
||||||
// Set global previous selection to current selection
|
// Set global previous selection to current selection
|
||||||
previousTheme = theme;
|
previousTheme = theme;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue