hadriengardeur / webpub-viewer Goto Github PK
View Code? Open in Web Editor NEWProof of concept for a Web Publication Viewer
License: MIT License
Proof of concept for a Web Publication Viewer
License: MIT License
In order to test support in sandboxed iframes, a sandbox.html
is available.
For security reasons, using a sandboxed iframe would be preferable but this currently kills the offline & pre-caching available in this app.
We'll need to investigate the situation regarding sandboxed iframes and if foreign fetch could be useful to fix this issue.
I've been testing multiple pagination techniques and will attempt to add a paged mode to the viewer.
I don't find an access to the TOC (table of contents) on every page. (Note: perhaps this function match with non-fiction ebooks).
Add an access to the TOC, besides the previous
and next
elements of navigation. (In viewer.js I guess, with the informations from the toc.ncx file on the EPUB.)
Try to go to a chapter without flip the different pages/chapters.
The current code base has the following behaviour:
iframe.contentDocument.location.href
iframe.src
When we can't use contentDocument.location.href
, the app doesn't update next/previous actions if the user navigates to a new location within the iframe (following a link for example).
Is there any solution to this problem?
When I look at https://proto.myopds.com/?manifest=true&href=https://proto.myopds.com/manifest/mobydick.epub/manifest.json&document=https://proto.myopds.com/assets/mobydick.epub/main0.xml on the Mozilla Firefox browser (Ubuntu + Android), the content section have a height of 114px, so it's not possible to read the text.
The content must fit the screen height.
Go to this URL on Firefox : https://proto.myopds.com/?manifest=true&href=https://proto.myopds.com/manifest/mobydick.epub/manifest.json&document=https://proto.myopds.com/assets/mobydick.epub/main0.xml
When I read https://proto.myopds.com/?manifest=true&href=https://proto.myopds.com/manifest/mobydick.epub/manifest.json&document=https://proto.myopds.com/assets/mobydick.epub/title.xml, I read different pages/chapters. When I go back on a URL like that, I'm always redirected to the start/cover page
I want to return to the page I want with a URL.
Refresh any page/chapter, expect the cover page.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.