diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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) { |