about summary refs log tree commit diff stats
path: root/index.php
diff options
context:
space:
mode:
authorAndrew Dolgov <noreply@fakecake.org>2020-04-21 07:49:42 +0300
committerAndrew Dolgov <noreply@fakecake.org>2020-04-21 07:49:42 +0300
commitbb0bbfb1ed76bb9c429b92d3769c19adef553e43 (patch)
tree14c6cb620fd9d1851d077800c93c951c83e86f14 /index.php
parentf28a75864777b72027275f620feb31a357a5ae3d (diff)
downloadthe-epube-bb0bbfb1ed76bb9c429b92d3769c19adef553e43.tar.gz
the-epube-bb0bbfb1ed76bb9c429b92d3769c19adef553e43.tar.xz
epubeapp-related stuff
Diffstat (limited to 'index.php')
-rw-r--r--index.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/index.php b/index.php
index c6c5306..bc9419c 100644
--- a/index.php
+++ b/index.php
@@ -131,12 +131,24 @@
 </div>
 </div>
 
+<div class="epube-app-filler"></div>
+
 <script type="text/javascript">
 	var index_mode = "<?php echo $mode ?>";
 
 	$(document).ready(function() {
 		let refreshed_files = 0;
 
+		if (typeof EpubeApp != "undefined") {
+			$(".navbar").hide();
+			$(".epube-app-filler").show();
+
+			if ($.urlParam("mode") == "favorites")
+				EpubeApp.setPage("PAGE_FAVORITES");
+			else
+				EpubeApp.setPage("PAGE_LIBRARY");
+		}
+
 		init_night_mode();
 
 		if ('serviceWorker' in navigator) {