From 53d62a4ec7c53d8e1a947dd4600d977e94cfee8d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 3 Mar 2017 17:30:36 +0300 Subject: night mode should apply to loading splash --- js/read.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/read.js') diff --git a/js/read.js b/js/read.js index e87b0f8..0e1da94 100644 --- a/js/read.js +++ b/js/read.js @@ -164,14 +164,14 @@ function apply_night_mode() { window.book.setStyle("background", "black"); window.book.setStyle("color", "#ccc"); - $("body").css("background", "black"); + $("body").addClass("night"); } else { window.book.setStyle("background", "white"); window.book.setStyle("color", "black"); - $("body").css("background", "white"); + $("body").removeClass("night"); } }); } -- cgit v1.2.3