diff options
author | Bartek Szopka <bartek.szopka+github@gmail.com> | 2012-03-08 16:20:33 +0100 |
---|---|---|
committer | Bartek Szopka <bartek.szopka+github@gmail.com> | 2012-03-08 16:20:33 +0100 |
commit | e1786e38e91ae445bb1caf968907292ec247f80c (patch) | |
tree | 7e427fa2efde826e1c4dbc7ff193bb9650644468 | |
parent | 8a0b80d5ac65631d7e5b27b1714d12d1b7dd73ce (diff) | |
download | impress.js-e1786e38e91ae445bb1caf968907292ec247f80c.tar.gz |
couple of typos and inline script warning in courtesy of @gustaff-weldon
-rw-r--r-- | index.html | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -273,6 +273,15 @@ This class is used by this hint below. Check CSS file to see how it's shown with delayed CSS animation. + ... + + And when it comes to this piece of JavaScript below ... kids, don't do this at home ;) + It's just a quick and dirty workaround to get different content for touch devices. + In a real world it should be at least placed in separate JS file ... and the touch content should be + probably just hidden somewhere in HTML, not hard-coded in the script. + + Just sayin' ;) + --> <div class="hint"> <p>Use a spacebar or arrow keys to navigate</p> @@ -294,8 +303,8 @@ if ("ontouchstart" in document.documentElement) { You also need to call a `impress()` 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 I 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 to lazy to do so ;) + 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 ;) --> <script src="js/impress.js"></script> |