rebuilding site Thu Sep 23 05:28:42 PM CST 2021

This commit is contained in:
James Feng Cao 2021-09-23 17:28:43 +08:00
parent 90e1d439bb
commit 1778ab4ca6
3 changed files with 80 additions and 1 deletions

View file

@ -3,6 +3,8 @@
<div id="area"></div>
<script>
let url = location.search.substring(3);
if(url.startsWith("file:///"))
url = "https://local/"+url.substring(8);
var book = ePub(url);
var rendition = book.renderTo("area");
var displayed = rendition.display();