diff options
author | Bartek Szopka <bartek.szopka+github@gmail.com> | 2012-02-16 13:33:06 +0100 |
---|---|---|
committer | Bartek Szopka <bartek.szopka+github@gmail.com> | 2012-02-16 13:33:06 +0100 |
commit | 2324484152227791a12da562cd05014febd05c8e (patch) | |
tree | fcc03d7eb60ee5f1e9ad13bd6768d4099ac514ad | |
parent | c7ce6af1c811d92aa4bbc5958cf6877d7d2f7fa4 (diff) | |
download | impress.js-2324484152227791a12da562cd05014febd05c8e.tar.gz |
more helpful hint for touch devices
-rw-r--r-- | index.html | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -277,7 +277,11 @@ <div class="hint"> <p>Use a spacebar or arrow keys to navigate</p> </div> - +<script> +if ("ontouchstart" in document.documentElement) { + document.querySelector(".hint").innerHTML = "<p>Tap on the left or right to navigate</p>"; +} +</script> <!-- |