-
Notifications
You must be signed in to change notification settings - Fork 23
/
index.html
104 lines (87 loc) · 2.79 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<!--
Copyright (C) 2022, 2024 Artifex Software, Inc.
This file is part of MuPDF.
MuPDF is free software: you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version.
MuPDF is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
details.
You should have received a copy of the GNU Affero General Public License
along with MuPDF. If not, see <https://www.gnu.org/licenses/agpl-3.0.en.html>
Alternative licensing terms are available from the licensor.
For commercial licensing, see <https://www.artifex.com/> or contact
Artifex Software, Inc., 39 Mesa Street, Suite 108A, San Francisco,
CA 94129, USA, for further information.
-->
<title>MuPDF.js</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="shortcut icon" href="mupdf-icon.png">
<link rel="stylesheet" href="style.css">
<body>
<header id="menubar-panel">
<details>
<summary>File</summary>
<menu>
<li onclick="document.getElementById('open-file-input').click()">Open File...
</menu>
</details>
<details>
<summary>Edit</summary>
<menu>
<li onclick="show_search_panel()">Search...
</menu>
</details>
<details>
<summary>View</summary>
<menu>
<li onclick="toggle_fullscreen()">Fullscreen
<li onclick="toggle_outline_panel()">Outline
<li onclick="zoom_to(48)">50%
<li onclick="zoom_to(72)">75% (72 dpi)
<li onclick="zoom_to(96)">100% (96 dpi)
<li onclick="zoom_to(120)">125%
<li onclick="zoom_to(144)">150%
<li onclick="zoom_to(192)">200%
</menu>
</details>
</header>
<aside id="outline-panel" style="display:none">
<ul id="outline">
<!-- outline inserted here -->
</ul>
</aside>
<main id="page-panel">
<div id="message">
Loading MuPDF.js...
</div>
<div id="pages">
<!-- pages inserted here -->
</div>
</main>
<footer id="search-panel" style="display:none">
<input
id="search-input"
type="search"
size="40"
placeholder="Search..."
>
<button id="search-prev" onclick="run_search(-1, 1)"><</button>
<button id="search-next" onclick="run_search(1, 1)">></button>
<div id="search-status" style="flex-grow:1"></div>
<button onclick="hide_search_panel()">X</button>
</footer>
<!-- hidden input for file dialog -->
<input
style="display: none"
id="open-file-input"
type="file"
accept=".pdf,application/pdf"
onchange="open_document_from_file(event.target.files[0])"
>
</body>
<script src="viewer.js"></script>