mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
63 lines
1.7 KiB
HTML
63 lines
1.7 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus SVG 1.1//EN"
|
||
"http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd">
|
||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||
<title>Basic ePubJS Example</title>
|
||
<meta name="description" content="">
|
||
<meta name="viewport" content="width=device-width">
|
||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||
|
||
<!-- EPUBJS Renderer -->
|
||
<script src="../build/epub.min.js"></script>
|
||
<script>
|
||
var qs = document.querySelector;
|
||
document.querySelector = null;
|
||
document.querySelectorAll = null;
|
||
</script>
|
||
<script src="../hooks/extensions/hypothesis.js"></script>
|
||
|
||
<link rel="stylesheet" href="basic.css">
|
||
|
||
<style type="text/css">
|
||
|
||
body {
|
||
overflow: hidden;
|
||
margin: 0;
|
||
}
|
||
|
||
#area {
|
||
width: 100%;
|
||
height: 100%;
|
||
margin: 0;
|
||
}
|
||
|
||
|
||
</style>
|
||
|
||
<script>
|
||
"use strict";
|
||
|
||
var Book = ePub("../demo/moby-dick/", {
|
||
fixedLayout : true
|
||
});
|
||
|
||
|
||
</script>
|
||
</head>
|
||
<body>
|
||
<div id="main">
|
||
<div id="prev" onclick="Book.prevPage();" class="arrow">‹</div>
|
||
<div id="area"></div>
|
||
<div id="next" onclick="Book.nextPage();"class="arrow">›</div>
|
||
</div>
|
||
|
||
<script>
|
||
|
||
Book.renderTo("area");
|
||
Book.setStyle("padding", "0 300px");
|
||
|
||
</script>
|
||
</body>
|
||
</html>
|