aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic/js
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-01-25 13:08:05 +0000
committerMario <mario@mariovavti.com>2023-01-25 13:08:05 +0000
commit08e925758e920b898ac2d08710eab2f9638fe276 (patch)
treefed0f7b2ee8251c6534d446b3166096889c9aeb3 /view/theme/redbasic/js
parent213c8a6eeccc16c34d3a34229a810bd213837c56 (diff)
downloadvolse-hubzilla-08e925758e920b898ac2d08710eab2f9638fe276.tar.gz
volse-hubzilla-08e925758e920b898ac2d08710eab2f9638fe276.tar.bz2
volse-hubzilla-08e925758e920b898ac2d08710eab2f9638fe276.zip
update fullcalendar library
Diffstat (limited to 'view/theme/redbasic/js')
-rw-r--r--view/theme/redbasic/js/redbasic.js23
1 files changed, 11 insertions, 12 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js
index b32042668..f502b2538 100644
--- a/view/theme/redbasic/js/redbasic.js
+++ b/view/theme/redbasic/js/redbasic.js
@@ -4,20 +4,19 @@
let redbasic_dark_mode = localStorage.getItem('redbasic_dark_mode');
-$(document).ready(function() {
-
- if (redbasic_dark_mode == 1) {
- $('html').attr('data-bs-theme', 'light');
- $('meta[name=theme-color]').attr('content', $('nav').css('background-color'));
- $('#theme-switch-icon').removeClass('fa-sun-o').addClass('fa-moon-o');
- }
+if (redbasic_dark_mode == 1) {
+ $('html').attr('data-bs-theme', 'light');
+ $('meta[name=theme-color]').attr('content', $('nav').css('background-color'));
+ $('#theme-switch-icon').removeClass('fa-sun-o').addClass('fa-moon-o');
+}
+if (redbasic_dark_mode == 2) {
+ $('html').attr('data-bs-theme', 'dark');
+ $('meta[name=theme-color]').attr('content', $('nav').css('background-color'));
+ $('#theme-switch-icon').removeClass('fa-moon-o').addClass('fa-sun-o');
+}
- if (redbasic_dark_mode == 2) {
- $('html').attr('data-bs-theme', 'dark');
- $('meta[name=theme-color]').attr('content', $('nav').css('background-color'));
- $('#theme-switch-icon').removeClass('fa-moon-o').addClass('fa-sun-o');
- }
+$(document).ready(function() {
// CSS3 calc() fallback (for unsupported browsers)
$('body').append('<div id="css3-calc" style="width: 10px; width: calc(10px + 10px); display: none;"></div>');