1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00

Version bump to 0.3.60

This commit is contained in:
Fred Chasen 2018-05-06 13:23:01 -07:00
parent 5fc34f714e
commit b7643d3a1d
2 changed files with 30 additions and 1 deletions

29
examples/contents.html Normal file
View file

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>EPUB.js Basic Example</title>
<script src="../dist/epub.js"></script>
<link rel="stylesheet" type="text/css" href="examples.css">
</head>
<body>
<div id="viewer" class="scrolled"></div>
<script>
var $viewer = document.getElementById("viewer");
var book = ePub("https://s3.amazonaws.com/epubjs/books/moby-dick/OPS/package.opf");
book.ready.then(function(){
book.getRange("epubcfi(/6/14[xchapter_001]!/4/2,/2/2/2[c001s0000]/1:0,/8/2[c001p0003]/1:663)").then(function(range) {
let text = range.toString()
console.log(text);
$viewer.textContent = text;
});
});
</script>
</body>
</html>

View file

@ -1,6 +1,6 @@
{ {
"name": "epubjs", "name": "epubjs",
"version": "0.3.59", "version": "0.3.60",
"description": "Parse and Render Epubs", "description": "Parse and Render Epubs",
"main": "lib/index.js", "main": "lib/index.js",
"module": "src/index.js", "module": "src/index.js",