ibooks

ePub and Javascript

你。 提交于 2020-01-12 10:15:30
问题 I'm using a MacBook Air and have been looking into ePub creation. I've taken a copy of the epub3 boilerplate from github click here. I have in a javascript file added the following var txt = document.createTextNode(" This text was added to the DIV."); document.getElementById('contenty').appendChild(txt); <script src='../js/main.js'></script> When I open the compiled epub in iBooks it doesn't show This text was added to the DIV. in the div #contenty . Using Kitabu it actually works but is

Detect when user opens file in app

我们两清 提交于 2020-01-05 01:32:20
问题 I was reading this documentation on how to preview a file on my iOS app. https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/DocumentInteraction_TopicsForIOS/Articles/PreviewingandOpeningItems.html#//apple_ref/doc/uid/TP40010410-SW1 Is there any to detect which app did the user choose? Or any way to kno if he actually tapped on any option? My problem: iBooks large file (> 700mb). User chooses preview, then taps on the top right corner and chooses to open on iBooks.

Detect when user opens file in app

你说的曾经没有我的故事 提交于 2020-01-05 01:32:16
问题 I was reading this documentation on how to preview a file on my iOS app. https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/DocumentInteraction_TopicsForIOS/Articles/PreviewingandOpeningItems.html#//apple_ref/doc/uid/TP40010410-SW1 Is there any to detect which app did the user choose? Or any way to kno if he actually tapped on any option? My problem: iBooks large file (> 700mb). User chooses preview, then taps on the top right corner and chooses to open on iBooks.

Looking for ibooks html input alternative

有些话、适合烂在心里 提交于 2019-12-25 03:00:31
问题 In IOS5 on the iPad, iPad2 etc. iBooks accepted <input type="color"> as a way to prompt the keyboard to display when you clicked on an input field, to say, type in the answer to a question. I've just recently updated to IOS6, and this workaround no longer seems to be working. I tried using the JavaScript I found here - http://www.linkedin.com/groups/How-Show-iPads-Keyboard-when-3877009.S.84287009 <script type="text/javascript"> function iPadTouchHandler(event) { var type = "", button = 0; /

iBooks: is it possible to use localStorage when importing a *.epub file?

ぃ、小莉子 提交于 2019-12-24 18:28:53
问题 I'm trying to create a sample epub file that I can read in iBooks that will contain interactive content that iBooks will access via localStorage. I am able to get the localStorage piece working on the browser aok in chrome and firefox (not IE). I noted that the localStorage javascript bit does not work when the files have *.xhtml extensions, only *.html extensions. I am able to zip up the html, opf and ncx and get an epub that I can read in digital editions and only throw epubcheck errors

Send bundled PDF to iBooks from within app

杀马特。学长 韩版系。学妹 提交于 2019-12-24 17:49:59
问题 I'm using the following code attached to a button, to attempt to open a PDF file in iBooks, but nothing's happening when I click the button. The method's definitely being called. - (IBAction)openDocs { NSURL *url = [NSURL fileURLWithPath:@"MS.pdf"]; UIDocumentInteractionController *docController = [[UIDocumentInteractionController alloc] init]; docController = [UIDocumentInteractionController interactionControllerWithURL:url]; docController.delegate = self; BOOL isValid = [docController

media queries for iBooks

吃可爱长大的小学妹 提交于 2019-12-24 10:45:34
问题 I'm wonder is there media query for iBooks. I know there is for kindle but I cant find any for iBooks. Is media query for web (from this website will work on iBooks? thanks for any help. 回答1: yes, you can use web browser-style media queries for iBooks, although right now iBooks doesn't seem to support orientation : landscape or orientation : portrait . it's important that you include them as links in your HTML's head rather than directly in the stylesheet: <link type="text/css" rel=

P tag not rendering correctly in iBooks 2.0.1

橙三吉。 提交于 2019-12-23 03:56:47
问题 I have an EPUB created with InDesign 5.5 and am trying to use the built-in Futura on the iPad. H1 and H2 tags render properly in iBooks 2.0.1 but P tag and classes default to Times Roman. I've tried the samp hack, but no luck. Here's an example: p.Narrative-Body { font-family : Futura, Arial, sans-serif; font-weight : normal; font-style : normal; font-size : 1em; font-variant : normal; line-height : 1.6; text-align : left; color : #000000; } and here's the html: <p class="Narrative-Body"

UIDocumentInteractionController opening pdf in iBooks crashes

[亡魂溺海] 提交于 2019-12-23 03:11:51
问题 I have a test PDF file that I want to open in iBooks through my app. I saved it in my temp directory and I use this code to load it to iBooks: NSURL *targetURL = [NSURL fileURLWithPath:tempFullPath]; NSLog(@"Path is %@", tempFullPath); UIDocumentInteractionController *controller = [UIDocumentInteractionController interactionControllerWithURL:targetURL]; controller.delegate = self; controller.UTI = @"com.adobe.pdf"; [controller presentOpenInMenuFromRect:self.view.bounds inView:self.view

FInding out when page is being viewed in EPUB FXL via Javascript

*爱你&永不变心* 提交于 2019-12-22 11:21:06
问题 Is it possible to find out when a page of an EPUB Fixed Layout is being viewed with Javascript? There is the DOMContentLoaded event, but the adjacent pages also fire this event when they are preloaded in iBooks, causing animations or sounds to start before the page being visible... 回答1: No, it's not. This is a "feature" of iBooks. It preloads the pages, I suppose to make page turns faster later on. Unfortunately, there is no way to detect that a page is preloading as opposed to being actually