forked from intity/epubreader-js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
template.html
34 lines (27 loc) · 1020 Bytes
/
template.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
<!DOCTYPE html>
<html>
<head>
<title>{{title}}</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Permissions-Policy" content="interest-cohort=()">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="icon" type="image/png" href="{{dist}}/img/favicon.png">
<link rel="stylesheet" href="{{dist}}/css/main.css?v={{version}}">
<!-- Libs -->
<script src="{{dist}}/js/libs/jszip.min.js?v={{version}}"></script>
<script src="{{dist}}/js/libs/md5.min.js?v={{version}}"></script>
<script src="{{dist}}/js/libs/epub.min.js?v={{version}}"></script>
<!-- Reader -->
<script type="module">
import { Reader } from "{{dist}}/js/epubreader.min.js?v={{version}}";
const path = "{{bookPath}}";
const settings = { openbook: false };
window.onload = (e) => new Reader(path, settings);
</script>
</head>
<body>
</body>
</html>