From 70bc3b737b4db64c648873620b14ba77004150ba Mon Sep 17 00:00:00 2001 From: Bartek Szopka Date: Mon, 12 Mar 2012 21:51:07 +0000 Subject: [PATCH] "impressive API update - added initialization `init` function and event" --- index.html | 5 +- js/impress.js | 316 ++++++++++++++++++++++++++------------------------ 2 files changed, 170 insertions(+), 151 deletions(-) diff --git a/index.html b/index.html index b77fe6f..0a885a8 100644 --- a/index.html +++ b/index.html @@ -318,14 +318,14 @@ if ("ontouchstart" in document.documentElement) { In here I just include full source of the script to make it more readable. - You also need to call a `impress()` function to initialize impress.js presentation. + You also need to call a `impress().init()` function to initialize impress.js presentation. And you should do it in the end of your document. Not only because it's a good practice, but also because it should be done when the whole document is ready. Of course you can wrap it in any kind of "DOM ready" event, but I was too lazy to do so ;) --> - +