switch theme on every page
This commit is contained in:
@ -226,13 +226,17 @@ body {
|
||||
|
||||
.version {
|
||||
font-size: small;
|
||||
color: silver;
|
||||
color: black;
|
||||
position: absolute;
|
||||
padding-top: 36px;
|
||||
padding-left: 22px;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
[data-bs-theme="dark"] .version {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.fc-content {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
toggleTheme = function() {
|
||||
toggleTheme = function(urlprefix) {
|
||||
var oldValue = $("html").attr("data-bs-theme");
|
||||
var newValue = oldValue == "dark" ? "light" : "dark";
|
||||
$("html").attr("data-bs-theme", newValue);
|
||||
var url = "profile/" + newValue;
|
||||
var url = urlprefix + "/profile/" + newValue;
|
||||
$.ajax({
|
||||
url: url,
|
||||
dataType: 'json',
|
||||
|
Reference in New Issue
Block a user