embed in what?
normally, you would upload the html and js file to a server and link to your html file to display your animation.
thanks for the reply.
I'm trying to embed an animation in an e-book.
any idea how to make this work?
how are you publishing/creating your ebook? or is your flash/animation actually your ebook?
im using kotobee to create the ebook. i have access to the html, css and java script in the background
ask for help using kotobee.
I just did a quick search on their site; it looks like you can zip up your files, upload the zip, and insert it as a widget:
Perhaps publishing as OEM would work.
Additional instructions; I just realized it was slightly more involved than just uploading the zip; first you have to add a plist file and add .wdgt to the name of your folder.
Full instructions below:
How to create book widgets from scratch?
Creating your own widget from scratch highly depends on your web programming proficiency. If you that is something difficulty for you then stick instead to widget builders like the ones inbookry.com and bookwidgets.com. If you need to create something very specific then here are some guidelines for the process.
After your app is developed and ready, name the root index file as index.html. All that is left, to make the widget compatible with iBooks Author, is to add an Info.plist file. This file defines some properties that are not mentioned elsewhere, such as the width and height of the container, and the location of the root file (index.html in our case). Also, if you would like to represent this widget with a certain icon as the button, the icon should be named Default.png and should sit at the root level. This is an example of an Info.plist file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
Place all the files into one folder postfixed with “.wdgt”, compress it into a zipped file, and congratulations!
In a separate article, we will look take a real-world example and implement a book widget completely step by step.