mirror of
https://github.com/koodo-reader/koodo-reader.git
synced 2026-06-20 05:40:18 -04:00
149 lines
4.6 KiB
HTML
149 lines
4.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<link rel="icon" href="%PUBLIC_URL%/favicon.png" />
|
|
<link rel="dns-prefetch" href="https://reader.960960.xyz" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="keywords" content="epub reader free koodo" />
|
|
<meta
|
|
itemprop="name"
|
|
content="Koodo Reader - Free Epub Reader for Windows, Mac and Web"
|
|
/>
|
|
<meta
|
|
itemprop="description"
|
|
content="Koodo Reader is an open-source epub reader with backup and restore support, runs on Windows, Mac and Web"
|
|
/>
|
|
|
|
<style>
|
|
#root {
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
</style>
|
|
<title>Koodo Reader</title>
|
|
</head>
|
|
<body>
|
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
|
|
<div id="root"></div>
|
|
<script>
|
|
const style = document.createElement("link");
|
|
style.rel = "stylesheet";
|
|
if (
|
|
JSON.parse(localStorage.getItem("readerConfig") || "{}")
|
|
.isDisplayDark === "yes"
|
|
) {
|
|
style.href = "./assets/styles/dark.css";
|
|
} else {
|
|
style.href = "./assets/styles/default.css";
|
|
}
|
|
document.head.appendChild(style);
|
|
if (JSON.parse(localStorage.getItem("readerConfig") || "{}").systemFont) {
|
|
let body = document.getElementsByTagName("body")[0];
|
|
body.setAttribute(
|
|
"style",
|
|
"font-family:" +
|
|
JSON.parse(localStorage.getItem("readerConfig") || "{}")
|
|
.systemFont +
|
|
"!important"
|
|
);
|
|
}
|
|
document.head.appendChild(style);
|
|
if (
|
|
document.location.href.indexOf("epub") > -1 ||
|
|
document.location.href.indexOf("pdf") > -1 ||
|
|
document.location.href.indexOf("mobi") > -1 ||
|
|
document.location.href.indexOf("txt") > -1 ||
|
|
document.location.href.indexOf("djvu") > -1 ||
|
|
document.location.href.indexOf("rtf") > -1 ||
|
|
document.location.href.indexOf("docx") > -1 ||
|
|
document.location.href.indexOf("fb2") > -1 ||
|
|
document.location.href.indexOf("cbr") > -1 ||
|
|
document.location.href.indexOf("cbt") > -1 ||
|
|
document.location.href.indexOf("cbz") > -1 ||
|
|
document.location.href.indexOf("md") > -1 ||
|
|
document.location.href.indexOf("html") > -1 ||
|
|
document.location.href.indexOf("htm") > -1 ||
|
|
document.location.href.indexOf("xml") > -1 ||
|
|
document.location.href.indexOf("xhtml") > -1 ||
|
|
document.location.href.indexOf("azw3") > -1
|
|
) {
|
|
let coverLoading = document.querySelector(".loading-cover");
|
|
coverLoading && coverLoading.parentNode.removeChild(coverLoading);
|
|
}
|
|
</script>
|
|
<script
|
|
type="text/javascript"
|
|
src="%PUBLIC_URL%/lib/JSZip/jszip.min.js"
|
|
></script>
|
|
<script
|
|
type="text/javascript"
|
|
src="%PUBLIC_URL%/lib/pdf/build/pdf.js"
|
|
></script>
|
|
<script
|
|
type="text/javascript"
|
|
src="%PUBLIC_URL%/lib/EpubJS/epub.min.js"
|
|
></script>
|
|
<script
|
|
type="text/javascript"
|
|
src="%PUBLIC_URL%/lib/Dropbox/Dropbox-sdk.min.js"
|
|
></script>
|
|
<script
|
|
type="text/javascript"
|
|
src="%PUBLIC_URL%/lib/Rangy/rangy-core.js"
|
|
></script>
|
|
<script
|
|
type="text/javascript"
|
|
src="%PUBLIC_URL%/lib/Rangy/rangy-serializer.js"
|
|
></script>
|
|
<script
|
|
type="text/javascript"
|
|
src="%PUBLIC_URL%/lib/Rangy/rangy-classapplier.js"
|
|
></script>
|
|
<script
|
|
type="text/javascript"
|
|
src="%PUBLIC_URL%/lib/Rangy/rangy-highlighter.js"
|
|
></script>
|
|
<script
|
|
type="text/javascript"
|
|
src="%PUBLIC_URL%/lib/Rangy/rangy-textrange.js"
|
|
></script>
|
|
<script
|
|
type="text/javascript"
|
|
src="%PUBLIC_URL%/lib/Hammer/hammer.min.js"
|
|
></script>
|
|
<script
|
|
type="text/javascript"
|
|
src="%PUBLIC_URL%/lib/unrar/unrar.js"
|
|
></script>
|
|
<script
|
|
type="text/javascript"
|
|
src="%PUBLIC_URL%/lib/djvu/djvu.min.js"
|
|
></script>
|
|
<script
|
|
type="text/javascript"
|
|
src="%PUBLIC_URL%/lib/djvu/djvu_viewer.js"
|
|
></script>
|
|
<script
|
|
type="text/javascript"
|
|
src="%PUBLIC_URL%/lib/mammoth/mammoth.browser.min.js"
|
|
></script>
|
|
<script>
|
|
var _hmt = _hmt || [];
|
|
(function () {
|
|
if (
|
|
JSON.parse(localStorage.getItem("readerConfig") || "{}")
|
|
.isDisableAnalytics !== "yes"
|
|
) {
|
|
var hm = document.createElement("script");
|
|
hm.src =
|
|
"https://hm.baidu.com/hm.js?358570be1bfc40e01db43adefade5ad5";
|
|
var s = document.getElementsByTagName("script")[0];
|
|
s.parentNode.insertBefore(hm, s);
|
|
}
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html>
|