diff options
author | Bartek Szopka <bartek.szopka+github@gmail.com> | 2012-02-15 21:46:00 +0100 |
---|---|---|
committer | Bartek Szopka <bartek.szopka+github@gmail.com> | 2012-02-15 21:46:00 +0100 |
commit | 2b22ee3b4b6231db476f7a02988dbde0d54d83f2 (patch) | |
tree | c64f06cef255369984687964151598950128a896 | |
parent | 5a2e369117550757445f6e7e384e21f6aa4e3c93 (diff) | |
download | impress.js-2b22ee3b4b6231db476f7a02988dbde0d54d83f2.tar.gz |
some iPad love
-rw-r--r-- | index.html | 3 | ||||
-rw-r--r-- | js/impress.js | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -66,9 +66,10 @@ <html lang="en"> <head> <meta charset="utf-8" /> + <meta name="viewport" content="width=1024, initial-scale=0.75, user-scalable=no" /> <title>impress.js | presentation tool based on the power of CSS3 transforms and transitions in modern browsers | by Bartek Szopka @bartaz</title> - <meta name="description" content="impress.js is a presentation tool based on the power of CSS3 transforms and transitions in modern browsers and inspired by the idea behind prezi.com."> + <meta name="description" content="impress.js is a presentation tool based on the power of CSS3 transforms and transitions in modern browsers and inspired by the idea behind prezi.com." /> <meta name="author" content="Bartek Szopka" /> <link href="http://fonts.googleapis.com/css?family=Open+Sans:regular,semibold,italic,italicsemibold|PT+Sans:400,700,400italic,700italic|PT+Serif:400,700,400italic,700italic" rel="stylesheet" /> 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 = {}; |