summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-12-12 20:35:12 +0300
committerAndrew Dolgov <[email protected]>2019-12-12 20:35:12 +0300
commitbafd0b747449e0d1814389ddc3d528e0ca8b6ed2 (patch)
tree33665e6a95de41b9d32a293bbdc8863c4d32ea78 /index.php
parentd462303ce923e15b596eac41d69abfefb66caa90 (diff)
enable automatic night mode for index pages
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.php b/index.php
index 1b39ecb..3211dd0 100644
--- a/index.php
+++ b/index.php
@@ -51,7 +51,7 @@
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="lib/bootstrap/v3/css/bootstrap.min.css" rel="stylesheet" media="screen">
- <link href="lib/bootstrap/v3/css/bootstrap-theme.min.css" rel="stylesheet" media="screen">
+ <link id="theme_css" href="lib/bootstrap/v3/css/bootstrap-theme.min.css" rel="stylesheet" media="screen">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="lib/bootstrap/v3/js/jquery.js"></script>
<script src="lib/bootstrap/v3/js/bootstrap.min.js"></script>
@@ -137,6 +137,8 @@
$(document).ready(function() {
let refreshed_files = 0;
+ init_night_mode();
+
if ('serviceWorker' in navigator) {
navigator.serviceWorker
.register('worker.js?<?php echo time() ?>')