From 1bec7f0ea4f94b067647c9d10b7c9108fdccd7ba Mon Sep 17 00:00:00 2001 From: nicholas antonov Date: Tue, 20 Mar 2018 15:13:04 -0400 Subject: [PATCH] Add loading gif --- frontend/templates/read.html | 14 ++++++++------ frontend/views/__init__.py | 2 +- static/images/reader/loader.gif | Bin 0 -> 6820 bytes static/js/reader/libs/localforage.min.js | 7 +++++++ 4 files changed, 16 insertions(+), 7 deletions(-) create mode 100644 static/images/reader/loader.gif create mode 100644 static/js/reader/libs/localforage.min.js diff --git a/frontend/templates/read.html b/frontend/templates/read.html index 1c0555e2..2ced4480 100644 --- a/frontend/templates/read.html +++ b/frontend/templates/read.html @@ -9,10 +9,10 @@ {% for author in work.relators %} - + {% endfor %} {% if work.first_isbn_13 %} - + {% endif %} @@ -28,15 +28,18 @@ document.onreadystatechange = function () { if (document.readyState == "complete") { - EPUBJS.filePath = "js/libs/"; + EPUBJS.filePath = "/static/js/reader/libs/"; EPUBJS.cssPath = window.location.href.replace(window.location.hash, '').replace('index.html', '') + "css/"; // fileStorage.filePath = EPUBJS.filePath; - window.reader = ePubReader("moby-dick/"); + window.reader = ePubReader("https://unglue.it/download_ebook/30881/", {restore: true}); } }; + + + @@ -53,7 +56,6 @@ {% with work.id as work_id %} -
{{work}}