Skip to content

Commit 46bb4ee

Browse files
committed
deploy: 715e213
0 parents  commit 46bb4ee

18 files changed

+113
-0
lines changed

.nojekyll

Whitespace-only changes.

apple-touch-icon-180x180.png

1004 Bytes
Loading

assets/index-Cf-RCOeo.js

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/index-Cf-RCOeo.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/index-D2o6aUx6.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

favicon.ico

632 Bytes
Binary file not shown.

index.html

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta http-equiv="Content-Security-Policy" content="
5+
default-src 'self' blob: data:;
6+
script-src 'self';
7+
style-src 'self' 'unsafe-inline';
8+
img-src 'self' blob: data:;
9+
connect-src 'self';
10+
frame-src 'self' blob: data:;
11+
worker-src 'self';
12+
manifest-src 'self';
13+
upgrade-insecure-requests; block-all-mixed-content;">
14+
<meta charset="UTF-8">
15+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
16+
<title>HTMLReader</title>
17+
<script type="module" crossorigin src="./assets/index-Cf-RCOeo.js"></script>
18+
<link rel="stylesheet" crossorigin href="./assets/index-D2o6aUx6.css">
19+
<link rel="manifest" href="./manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="./registerSW.js"></script>
20+
<meta name="theme-color" content="#2196F3">
21+
<link rel="icon" href="./favicon.ico" sizes="48x48">
22+
<link rel="icon" href="./source.svg" sizes="any" type="image/svg+xml">
23+
<link rel="apple-touch-icon" href="./apple-touch-icon-180x180.png"></head>
24+
<body>
25+
<header>
26+
<div class="title">
27+
<span>HTMLReader</span>
28+
<span class="book-title" id="book-title"></span>
29+
</div>
30+
<div class="controls">
31+
<button id="toc-button" disabled>Table of Contents</button>
32+
<button id="open-button">Open EPUB</button>
33+
<button id="library-button">Library</button>
34+
<input type="file" id="file-input" class="file-input" accept=".epub">
35+
<!-- Fallback multiple file input for library import -->
36+
<input type="file" id="library-input" class="file-input" accept=".epub" multiple>
37+
<button id="install-button" hidden>Install App</button> <!-- New Install Button -->
38+
</div>
39+
</header>
40+
<main>
41+
<div id="viewer"></div>
42+
</main>
43+
<footer>
44+
<button id="prev-button" disabled>⬅ Previous</button>
45+
<div class="page-info">
46+
<span>Page</span>
47+
<input type="number" id="current-page" min="1" value="1">
48+
<span>of</span>
49+
<span id="total-pages">1</span>
50+
</div>
51+
<button id="next-button" disabled>Next ➡</button>
52+
</footer>
53+
<!-- TOC Container -->
54+
<div class="toc-container" id="toc-container">
55+
<div class="toc-header">
56+
<h3>Table of Contents</h3>
57+
<button id="close-toc">Close</button>
58+
</div>
59+
<div class="toc-content" id="toc-content"></div>
60+
</div>
61+
<!-- Library Popup (hidden by default) -->
62+
<div class="library-container" id="library-container">
63+
<div class="library-header">
64+
<h3>Library</h3>
65+
<button id="close-library">Close</button>
66+
</div>
67+
<div class="library-content" id="library-content"></div>
68+
</div>
69+
<div class="overlay" id="overlay"></div>
70+
<div class="message" id="loading-message">
71+
<h3>Loading EPUB...</h3>
72+
<p>Please wait while your book is being processed.</p>
73+
</div>
74+
<div class="message" id="error-message">
75+
<h3>Error</h3>
76+
<p id="error-text">There was an error processing your EPUB file.</p>
77+
<button id="close-error">Close</button>
78+
</div>
79+
</body>
80+
</html>

manifest.webmanifest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"name":"HTMLReader","short_name":"HTMLReader","description":"A quick HTML-based ePub Reader that works offline.","start_url":"./","display":"standalone","background_color":"#f5f5f5","theme_color":"#2196F3","lang":"en","scope":"./","icons":[{"src":"pwa-64x64.png","sizes":"64x64","type":"image/png"},{"src":"pwa-192x192.png","sizes":"192x192","type":"image/png"},{"src":"pwa-512x512.png","sizes":"512x512","type":"image/png"},{"src":"maskable-icon-512x512.png","sizes":"512x512","type":"image/png","purpose":"maskable"}]}

maskable-icon-512x512.png

3.31 KB
Loading

pwa-192x192.png

1.37 KB
Loading

0 commit comments

Comments
 (0)