mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-04 15:09:16 +02:00
Merge pull request #246 from futurepress/kill-dev-html
Remove dev.html and update readme with instructions to use grunt watch.
This commit is contained in:
commit
f048ca8a73
2 changed files with 17 additions and 174 deletions
33
README.md
33
README.md
|
@ -104,21 +104,33 @@ Recent Updates
|
|||
Running Locally
|
||||
-------------------------
|
||||
|
||||
install [node.js](http://nodejs.org/)
|
||||
Install [node.js](http://nodejs.org/)
|
||||
|
||||
Then install the project dependences with npm
|
||||
|
||||
install the project dependences with npm
|
||||
```javascript
|
||||
npm install
|
||||
```
|
||||
|
||||
then you can run the reader locally with the command
|
||||
You can run the reader locally with the command
|
||||
|
||||
```javascript
|
||||
node server.js
|
||||
```
|
||||
|
||||
* [dev.html](http://localhost:8080/reader/dev.html) will pull from the source files and should be used during development.
|
||||
* [index.html](http://localhost:8080/reader/index.html) will use the minified production libraries in the build/ folder.
|
||||
Builds are concatenated and minified using [gruntjs](http://gruntjs.com/getting-started)
|
||||
|
||||
To generate a new build run
|
||||
|
||||
```javascript
|
||||
grunt
|
||||
```
|
||||
|
||||
Or, to generate builds as you make changes run
|
||||
|
||||
```
|
||||
grunt watch
|
||||
```
|
||||
|
||||
Examples
|
||||
-------------------------
|
||||
|
@ -150,17 +162,6 @@ Then you can pull the latest with:
|
|||
git submodule foreach git pull origin master
|
||||
```
|
||||
|
||||
Building for Distribution
|
||||
-------------------------
|
||||
|
||||
Builds are concatenated and minified using [gruntjs](http://gruntjs.com/getting-started)
|
||||
|
||||
To generate a new build run
|
||||
|
||||
```javascript
|
||||
grunt
|
||||
```
|
||||
|
||||
Hooks
|
||||
-------------------------
|
||||
|
||||
|
|
158
reader/dev.html
158
reader/dev.html
|
@ -1,158 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="no-js">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<title></title>
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no, minimal-ui">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
|
||||
<link rel="stylesheet" href="css/normalize.css">
|
||||
<link rel="stylesheet" href="css/main.css">
|
||||
<link rel="stylesheet" href="css/popup.css">
|
||||
<!-- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
|
||||
<script>window.jQuery || document.write('<script src="epubjs/libs/jquery-1.9.0.min.js"><\/script>')</script>
|
||||
-->
|
||||
<script src="../libs/jquery/jquery-2.1.0.js"></script>
|
||||
|
||||
<script>
|
||||
"use strict";
|
||||
|
||||
document.onreadystatechange = function () {
|
||||
if (document.readyState == "complete") {
|
||||
EPUBJS.filePath = "js/libs/";
|
||||
EPUBJS.cssPath = "css/";
|
||||
// fileStorage.filePath = EPUBJS.filePath;
|
||||
|
||||
window.Reader = ePubReader("moby-dick/", { reload: true, generatePagination: false });
|
||||
}
|
||||
};
|
||||
|
||||
</script>
|
||||
|
||||
<!--<script async src="epubjs/libs/jquery.touchy.min.js"></script>-->
|
||||
|
||||
<!-- zip -->
|
||||
<script src="../libs/jszip/jszip.js"></script>
|
||||
<script src="../libs/jszip/mime-types.js"></script>
|
||||
|
||||
|
||||
<!-- Render -->
|
||||
<script src="../libs/underscore/underscore.js"></script>
|
||||
<script src="../libs/rsvp/rsvp.js"></script>
|
||||
<script src="../libs/fileStorage/fileStorage.min.js"></script>
|
||||
|
||||
<script src="../src/base.js"></script>
|
||||
<script src="../src/core.js"></script>
|
||||
<script src="../src/unarchiver.js"></script>
|
||||
<script src="../src/parser.js"></script>
|
||||
<script src="../src/hooks.js"></script>
|
||||
<script src="../src/book.js"></script>
|
||||
<script src="../src/chapter.js"></script>
|
||||
<script src="../src/renderer.js"></script>
|
||||
<script src="../src/replace.js"></script>
|
||||
<script src="../src/epubcfi.js"></script>
|
||||
<script src="../src/render_iframe.js"></script>
|
||||
<script src="../src/layout.js"></script>
|
||||
<script src="../src/pagination.js"></script>
|
||||
|
||||
<!-- Hooks -->
|
||||
<script async src="../hooks/default/transculsions.js"></script>
|
||||
<script async src="../hooks/default/endnotes.js"></script>
|
||||
<script async src="../hooks/default/smartimages.js"></script>
|
||||
<script async src="../hooks/default/mathml.js"></script>
|
||||
|
||||
<!-- Reader -->
|
||||
<script src="../reader_src/reader.js"></script>
|
||||
<script src="../reader_src/controllers/bookmarks_controller.js"></script>
|
||||
<script src="../reader_src/controllers/controls_controller.js"></script>
|
||||
<script src="../reader_src/controllers/meta_controller.js"></script>
|
||||
<script src="../reader_src/controllers/reader_controller.js"></script>
|
||||
<script src="../reader_src/controllers/settings_controller.js"></script>
|
||||
<script src="../reader_src/controllers/sidebar_controller.js"></script>
|
||||
<script src="../reader_src/controllers/toc_controller.js"></script>
|
||||
<script src="../reader_src/controllers/notes_controller.js"></script>
|
||||
|
||||
<!-- Full Screen -->
|
||||
<script src="js/libs/screenfull.min.js"></script>
|
||||
|
||||
<!-- Highlights -->
|
||||
<script src="js/libs/jquery.highlight.js"></script>
|
||||
<script async src="../hooks/extensions/highlight.js"></script>
|
||||
|
||||
<!-- Plugins -->
|
||||
<script src="../reader_src/plugins/search.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="sidebar">
|
||||
<div id="panels">
|
||||
<input id="searchBox" placeholder="search" type="search">
|
||||
|
||||
<a id="show-Search" class="show_view icon-search" data-view="Search">Search</a>
|
||||
<a id="show-Toc" class="show_view icon-list-1 active" data-view="Toc">TOC</a>
|
||||
<a id="show-Bookmarks" class="show_view icon-bookmark" data-view="Bookmarks">Bookmarks</a>
|
||||
<a id="show-Notes" class="show_view icon-edit" data-view="Notes">Notes</a>
|
||||
|
||||
</div>
|
||||
<div id="tocView" class="view">
|
||||
</div>
|
||||
<div id="searchView" class="view">
|
||||
<ul id="searchResults"></ul>
|
||||
</div>
|
||||
<div id="bookmarksView" class="view">
|
||||
<ul id="bookmarks"></ul>
|
||||
</div>
|
||||
<div id="notesView" class="view">
|
||||
<div id="new-note">
|
||||
<textarea id="note-text"></textarea>
|
||||
<button id="note-anchor">Anchor</button>
|
||||
</div>
|
||||
<ol id="notes"></ol>
|
||||
</div>
|
||||
</div>
|
||||
<div id="main">
|
||||
|
||||
<div id="titlebar">
|
||||
<div id="opener">
|
||||
<a id="slider" class="icon-menu">Menu</a>
|
||||
</div>
|
||||
<div id="metainfo">
|
||||
<span id="book-title"></span>
|
||||
<span id="title-seperator"> – </span>
|
||||
<span id="chapter-title"></span>
|
||||
</div>
|
||||
<div id="title-controls">
|
||||
<a id="bookmark" class="icon-bookmark-empty">Bookmark</a>
|
||||
<a id="setting" class="icon-cog">Settings</a>
|
||||
<a id="fullscreen" class="icon-resize-full">Fullscreen</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="divider"></div>
|
||||
<div id="prev" class="arrow">‹</div>
|
||||
<div id="viewer"></div>
|
||||
<div id="next" class="arrow">›</div>
|
||||
|
||||
<div id="loader"><img src="img/loader.gif"></div>
|
||||
</div>
|
||||
<div class="modal md-effect-1" id="settings-modal">
|
||||
<div class="md-content">
|
||||
<h3>Settings</h3>
|
||||
<div>
|
||||
<p>
|
||||
<!-- <input type='radio' name='fontSize' value='x-small'><span class='xsmall'>Extra Small</span><br>
|
||||
<input type='radio' name='fontSize' value='small'><span class='small'>Small</span><br>
|
||||
<input type='radio' name='fontSize' value='medium'><span class='medium'>Medium</span><br>
|
||||
<input type='radio' name='fontSize' value='large'><span class='large'>Large</span><br>
|
||||
<input type='radio' name='fontSize' value='x-large'><span class='xlarge'>Extra Large</span> -->
|
||||
<input type="checkbox" id="sidebarReflow" name="sidebarReflow">Reflow text when sidebars are open.</input>
|
||||
</p>
|
||||
</div>
|
||||
<div class="closer icon-cancel-circled"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="overlay"></div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue