Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save themorgantown/4570113 to your computer and use it in GitHub Desktop.
Save themorgantown/4570113 to your computer and use it in GitHub Desktop.
<script type="text/javascript" src="AppleClasses/AppleWidget.js"> </script>
<script>
function myCallback(hypeDocument, element, event) {
function widgetIsReady() {
widget.notifyContentIsReady();
}
// wait a second, then run widgetIsReady above
setTimeout(widgetIsReady,1);
}
// run 'myCallback once the Hype document has loaded (above)
if("HYPE_eventListeners" in window === false) {
window.HYPE_eventListeners = Array();
}
window.HYPE_eventListeners.push({"type":"HypeDocumentLoad", "callback":myCallback});
</script>
@themorgantown
Copy link
Author

@micklavin -- Do you still see the white flash? There have been a few upgrades to iBooks author in the time it's taken for me to figure out how to get notified of comments on my Gists. BTW the latest for iBooks is kept updated here: http://forums.tumult.com/t/intro-to-exporting-ibooks-widgets/948

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment