uweb/searchurl/txt/epub.html

10 lines
341 B
HTML
Raw Normal View History

<script src="https://cdn.jsdelivr.net/npm/epubjs/dist/epub.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/jszip/dist/jszip.min.js"></script>
<div id="area"></div>
<script>
let url = location.search.substring(3);
var book = ePub(url);
var rendition = book.renderTo("area");
var displayed = rendition.display();
</script>