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

22 commits

Author SHA1 Message Date
Fred Chasen
f10feec1ec Add enable-annotation attr to iframe 2017-09-14 22:45:08 -05:00
Fred Chasen
eff216fd2d Simplify iframe view expanding 2017-08-28 17:10:51 -04:00
Fred Chasen
03e7ca085c Fixes for page counting 2017-08-09 17:19:02 -04:00
Fred Chasen
bb1ab21a33 Updates for rendering in embedded Webviews (#643)
* Initial embedding support

* Updates for rendering in embedded webviews

* toLowerCase nodeName check
2017-08-01 17:25:19 -04:00
Fred Chasen
3f4d7bbbf2 Added relocated event 2017-07-10 17:25:26 -04:00
Fred Chasen
aa9c2535d9 Fix min image size, locationOf no longer uses scrollX / Y 2017-07-07 13:43:52 -04:00
Fred Chasen
307c4ea3a8 Merge pull request #636 from futurepress/respect_linear
Respect linear in spine
2017-06-28 20:47:43 -04:00
Fred Chasen
101af4f0f4 Respect linear in spine 2017-06-28 20:40:55 -04:00
Sunil-bb
9131777fa3 Fix for https://github.com/futurepress/epub.js/issues/537 (#550)
* Fix for https://github.com/futurepress/epub.js/issues/537

Following are the changes for getting IE and Firefox working:
• src doc is not supported in IE which was used to render the page content. Now changed the condition if src doc is supported or not and if not we are writing html string to the iframe using iframe.write api.

• Was using page response as xml(responseXML property of xhr), which was creating issue of self closing tags in IE and page was not getting rendered.
Now we have done changes to make use of string output of response to render(using responseText property of xhr) which don't have self closing tags.

• We were not able to load the css and js present in the page contents if they carried a relative URL.
To fix it we have added base tag into the html head so that the js and css links can be found.

• Was using treewalker dom api. In IE expects that acceptNode param should be a function but other browsers expects it to be an object. We have fixed it .

• treewalker dom api has problem with IE if we are passing a text node as root node(throws exception on treewalker.nextNode(), other browsers it returns null). Have added a condition to fix it(if text node do not create treewalker)

* Review change: removed base tag as its being added using hook

* PR changes: reverted the request method implementation and xmlSerialization implementation

* reverted the request method changes to return the response object, now xml is returned

* Updated the condition for IE to use xmldom

Review comment change: To resolve IE self closing tag issue(which causes rendering issue in IE), made use of xmldom npm package.
2017-06-28 20:37:38 -04:00
Fred Chasen
987a216c55 Add annotation manager in rendition 2017-06-16 13:34:18 -04:00
Fred Chasen
573ed8e18b Content resize (#605)
Wait after formatting, listen for resize events from `Contents`
2017-04-24 17:08:53 -04:00
Fred Chasen
bf9cd9f279 bump version to 0.3.25 2017-04-12 17:08:47 -04:00
Gerhard Sletten
4dc35bfc72 Optional global settings to disable srcdoc, since it will fail on cordova (#588) 2017-04-12 17:08:05 -04:00
Fred Chasen
f26b0c9f00 Add parsing of json manifest 2017-03-22 11:17:13 -04:00
Fred Chasen
d95ec97f7f Add Destroy to view managers 2017-02-12 13:27:49 -05:00
Fred Chasen
ad9dd35fb5 Stop expand on pre-paginated, adjust images only on if not pre-paginated, update deps 2016-12-14 16:07:10 +01:00
Fred Chasen
a435650c3b Fix eslint errors 2016-12-08 01:08:39 +01:00
Fred Chasen
353dfa62fd Intial move to ES2015 2016-12-06 15:04:16 +01:00
Fred Chasen
315650006e Switched from URIjs to URL and Node Path 2016-10-30 22:14:01 +01:00
Fred Chasen
151dc97d19 Switch to Native Promises, add polyfills.js in dist folder 2016-10-27 00:46:56 +02:00
Fred Chasen
a4e76029d4 Add event-emitter for node compatible events 2016-10-26 23:49:57 +02:00
Fred Chasen
730b06f32b Move views and helpers into managers 2016-10-24 16:42:59 +02:00
Renamed from src/views/iframe.js (Browse further)