Kian-Meng, Ang
851304ff76
Fix typos
2021-12-16 15:03:30 +08:00
Fred Chasen
cb4facb6c2
WIP: Update to Webpack 4 and Babel 7 ( #835 )
...
* Update to Webpack 4 and Babel 7
* Update karma tests
* Update browserlist, fix tests, remove all requires
* Update karma browserlist query
* Update webpack externals
* remove gulp and serve
* Fix webpack for karma
* Fix test externals
2020-06-04 21:38:39 -07:00
Christiaan Baartse
d690dd9d68
Change Book.coverUrl to return null when there is no cover
...
CoverUrl now returns an undefined when there is no cover. However not
having a cover is expected behavior for an epub without a cover.
2020-05-22 11:34:03 +02:00
Christiaan Baartse
0b0f2e1b2d
Bugfix calling coverUrl throws error on book without cover
...
When calling coverUrl on a book that has no cover a error is thrown
> TypeError: Cannot read property 'substr' of undefined
This is because Archive.getBlob is called with this.cover which is
undefined.
2020-05-22 11:17:07 +02:00
Christiaan Baartse
2732e172cd
Fix opening an ArrayBuffer without options
...
Opening an archived Epub in an ArrayBuffer without passing in options will
never resolve its `book.opened` Promise.
2020-05-21 06:25:30 +02:00
Christiaan Baartse
2f63b16276
Fix broken coverUrl for archived Epubs
...
When calling coverUrl for an archived epub the resolved promise contains
undefined and not a string.
Also the documentation everywhere is lying about coverUrl() returning a
string whereas it actually returns a Promise that resolves to a string.
2020-05-19 06:48:19 +02:00
Bono Lv
f5022af53e
Added a search method to Section object for find out result spanning multiple document nodes.
2019-07-19 18:57:53 +08:00
Fred Chasen
90604b6bee
Fix #902 mixed lenght compares
2019-03-29 16:55:22 -07:00
Jeremy Dormitzer
3e63ac4970
Use alice epub for section#find() tests
2017-06-16 20:51:56 -04:00
Jeremy Dormitzer
4820ab48ab
Remove moby dick test epub
2017-06-16 20:51:37 -04:00
Jeremy Dormitzer
2a6ea2b2e7
Test section#find()
2017-05-30 13:57:25 -06:00
Fred Chasen
84e695fe08
Adds book.getRange, RangeObject polyfill ( #599 )
...
* range -> getRange, RangeObject polyfill
* Fix children for walkToNode
2017-04-12 15:59:47 -04:00
Fred Chasen
265df07917
Fix url to handle file links
2017-02-09 23:38:11 -05:00
Fred Chasen
353dfa62fd
Intial move to ES2015
2016-12-06 15:04:16 +01:00
Fred Chasen
db798e7934
Allow location to use XMLDom, add locations tests
2016-11-21 14:36:17 +01:00
Fred Chasen
d4641243a3
Update test, minify, build docs
2016-11-17 15:37:18 +01:00
Fred Chasen
b5cfc74e12
Added resources, renamed unarchive -> archive, moved replacements to Book
2016-11-08 16:05:47 +01:00
Fred Chasen
47787678f7
Added core Url and Path, split up book.open, added Container and Packaging
2016-11-08 02:06:10 +01:00
Fred Chasen
15b368d912
Add URL polyfill for phantomjs, fix archived test
2016-10-31 14:07:02 +01:00
Fred Chasen
5e6c268e83
Added webpack build, karma test runner, travis config
2016-10-26 17:05:27 +02:00
Fred Chasen
32993dc58c
Tabify src
2016-10-24 15:15:16 +02:00
Fred Chasen
1a26c1901e
Render pre-paginated spreads in single and continuous managers
2016-10-24 14:55:15 +02:00
fchasen
3a21665e80
Cleaned up highlighting example, epubcfi ignoreClass option
2016-02-09 22:36:41 -05:00
Fred Chasen
eaacf31ca1
Only filter nodes if needed
2016-01-03 22:04:26 -05:00
Fred Chasen
1c5e7c03fd
ignore working for simple highlights
2016-01-02 23:42:35 -05:00
Fred Chasen
7cad24b414
Handle misses in epubcfi
2015-12-23 15:38:01 -08:00
fchasen
f01c2c9e8e
cfi findNodes
2015-12-19 18:19:46 -05:00
fchasen
b4150fb164
filter and patch offset if in ignored element
2015-12-17 23:49:42 -05:00
fchasen
b0fde55527
get cfis from range and node
2015-12-17 21:17:04 -05:00
fchasen
ca6d27f4f8
Added compare
2015-12-16 23:17:34 -05:00
fchasen
7c3af4493c
added mochify test runner and epubcfi test
2015-12-16 21:58:23 -05:00
Fred Chasen
239109dadb
Updated request to parse DOM is xml is responseXML is not present
2014-10-28 17:20:21 -04:00
Fred Chasen
c29e5f84ee
Added error handles, sections, updated url resolving, use book.request for requests
2014-08-21 17:39:35 -04:00
Fred Chasen
b1b98f9d57
basic scrolling renderer
2014-07-31 17:25:56 -04:00
Fred Chasen
fe8edc77c1
Updated URL parsing to handle remote book paths
2014-07-23 17:02:22 -04:00
Fred Chasen
b6b48e0b08
inital setup/cleaning for v3
2014-07-23 13:31:34 -04:00