-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (45 loc) · 3.34 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Book Reader</title>
<link rel="apple-touch-icon" sizes="180x180" href="icons/apple-touch-icon.png">
<link rel="icon" type="image/png" href="icons/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="icons/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="icons/manifest.json">
<link rel="shortcut icon" href="icons/favicon.ico">
<meta name="msapplication-config" content="icons/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="style.css">
<script src="lib/async_storage.js" defer></script>
<script src="app.js" defer></script>
</head><body>
<div id="container">
<p>
<button>Open document</button>
<label><input type="checkbox"> Keep document in local shelf</label>
</p>
<ul id="shelf"></ul>
<h2>FAQ</h2>
<dl>
<dt>How do I open a document?</dt>
<dd>There are two ways: Either you start your file manager, open the document there and choose this app as viewer. Or you press the button above and choose an app to select the document from. You'll need a file picker app to do so, I recommend <a href="https://marketplace.firefox.com/app/finder" target="_blank" rel="noopener">Finder</a>.</dd>
<dt>What’s that local shelf?</dt>
<dd>The local shelf helps you to store documents you want to read more than once. Just check the checkbox before opening, and the document will be put into the list, from where you can open it again. It will be stored as copy, so it will be available even if you delete the original, and can be removed from the list without deleting the original, but also wo’n’t update if the original changes.</dd>
<dd>If you deleted the original, you can save it from the shelf as file again. Note that the file will be stored among your downloads, and that you might have to rename it from an accidental temporary name, caused by a bug in Firefox OS.</dd>
<dt>What formats are supported?</dt>
<dd>You can open EPUB, PDF, Open Document (ODT for text, ODS for spreadsheets, ODP for presentations), and plain text files.</dd>
<dt>How do I use the viewers?</dt>
<dd>To view the documents this app includes different viewers that have been developed independendly. This means that each viewer will work a bit differently, but you will figure out how to navigate, zoom, etc.</dd>
<dd>Note that the PDF viewer will show more tools when the screen is in landscape, and the ODF viewer shows its tools only after you tap the screen.</dd>
<dt>Can I get the source?</dt>
<dd>Yes! It is free software, you can download it from <a href="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/Schnark/docviewer" target="_blank" rel="noopener">GitHub</a>, it is available under the <a href="https://www.gnu.org/licenses/agpl-3.0" target="_blank" rel="noopener">AGPL</a> license and includes the following libraries:<ul>
<li><a href="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/futurepress/epub.js" target="_blank" rel="noopener">epub.js</a>, by FuturePress</li>
<li><a href="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/mozilla/pdf.js" target="_blank" rel="noopener">pdf.js</a>, by Mozilla Foundation</li>
<li><a href="http:https://viewerjs.org/" target="_blank" rel="noopener">viewerjs</a>, by KO GmbH</li>
</ul>
This software is provided 'as-is', without any express or implied warranty.</dd>
</dl>
</div>
<iframe id="iframe"></iframe><!--TODO use a sandboxed iframe, but without breaking everything-->
</body></html>