mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 01:26:11 -08:00
The way of configuration was changed
to enable the Dark-Mode create a file named "darkmode" in the "front" directory
This commit is contained in:
0
front/darkmode
Normal file
0
front/darkmode
Normal file
@@ -506,11 +506,12 @@
|
|||||||
<script src="lib/AdminLTE/bower_components/moment/moment.js"></script>
|
<script src="lib/AdminLTE/bower_components/moment/moment.js"></script>
|
||||||
<script src="lib/AdminLTE/bower_components/fullcalendar/dist/fullcalendar.min.js"></script>
|
<script src="lib/AdminLTE/bower_components/fullcalendar/dist/fullcalendar.min.js"></script>
|
||||||
|
|
||||||
<!-- Enable or Disable the CSS Patch for Dark-Mode -->
|
<!-- Dark-Mode Patch -->
|
||||||
<!-- Uncomment or Comment below-->
|
<?php
|
||||||
<link rel="stylesheet" href="css/dark-patch-cal.css">
|
if ($ENABLED_DARKMODE === True) {
|
||||||
|
echo '<link rel="stylesheet" href="css/dark-patch-cal.css">';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
<!-- page script ----------------------------------------------------------- -->
|
<!-- page script ----------------------------------------------------------- -->
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -7,6 +7,12 @@
|
|||||||
# Puche 2021 pi.alert.application@gmail.com GNU GPLv3
|
# Puche 2021 pi.alert.application@gmail.com GNU GPLv3
|
||||||
#--------------------------------------------------------------------------- -->
|
#--------------------------------------------------------------------------- -->
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if (file_exists("darkmode")) {
|
||||||
|
$ENABLED_DARKMODE = True;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
@@ -57,10 +63,12 @@
|
|||||||
<!-- For better UX on Mobile Devices using the Shortcut on the Homescreen -->
|
<!-- For better UX on Mobile Devices using the Shortcut on the Homescreen -->
|
||||||
<link rel="manifest" href="img/manifest.json">
|
<link rel="manifest" href="img/manifest.json">
|
||||||
|
|
||||||
<!-- In addition to the "dark-patch.css" I recommend the use of the theme "skin-blue",
|
<!-- Dark-Mode Patch -->
|
||||||
on the basis of which I have created the patch. The "dark-patch.css" is mainly
|
<?php
|
||||||
the darkmode of the pi-hole AdminLTE Dashboard witch some fixes -->
|
if ($ENABLED_DARKMODE === True) {
|
||||||
<link rel="stylesheet" href="css/dark-patch.css">
|
echo '<link rel="stylesheet" href="css/dark-patch.css">';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|||||||
@@ -154,9 +154,12 @@
|
|||||||
<link href="lib/fullcalendar-scheduler/scheduler.min.css" rel="stylesheet">
|
<link href="lib/fullcalendar-scheduler/scheduler.min.css" rel="stylesheet">
|
||||||
<script src="lib/fullcalendar-scheduler/scheduler.min.js"></script>
|
<script src="lib/fullcalendar-scheduler/scheduler.min.js"></script>
|
||||||
|
|
||||||
<!-- Enable or Disable the CSS Patch for Dark-Mode -->
|
<!-- Dark-Mode Patch -->
|
||||||
<!-- Uncomment or Comment below-->
|
<?php
|
||||||
<link rel="stylesheet" href="css/dark-patch-cal.css">
|
if ($ENABLED_DARKMODE === True) {
|
||||||
|
echo '<link rel="stylesheet" href="css/dark-patch-cal.css">';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
<!-- page script ----------------------------------------------------------- -->
|
<!-- page script ----------------------------------------------------------- -->
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Reference in New Issue
Block a user