From 2b22ee3b4b6231db476f7a02988dbde0d54d83f2 Mon Sep 17 00:00:00 2001 From: Bartek Szopka Date: Wed, 15 Feb 2012 21:46:00 +0100 Subject: [PATCH] some iPad love --- index.html | 3 ++- js/impress.js | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index b93b1ee..4cccb40 100644 --- a/index.html +++ b/index.html @@ -66,9 +66,10 @@ + impress.js | presentation tool based on the power of CSS3 transforms and transitions in modern browsers | by Bartek Szopka @bartaz - + diff --git a/js/impress.js b/js/impress.js index a6be86b..8698363 100644 --- a/js/impress.js +++ b/js/impress.js @@ -98,7 +98,9 @@ var ua = navigator.userAgent.toLowerCase(); var impressSupported = ( pfx("perspective") != null ) && - ( ua.search(/(iphone)|(ipod)|(ipad)|(android)/) == -1 ); + ( document.body.classList ) && + ( document.body.dataset ) && + ( ua.search(/(iphone)|(ipod)|(android)/) == -1 ); var roots = {};