From e2377346bc631e8d9f04f45e1efc1ee27c257cb5 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Tue, 17 Jan 2012 10:29:31 +0000 Subject: [PATCH] --- fluidbook/compile/_js/fluidbook.js | 14 ++++++++++++-- fluidbook/compile/index.html | 2 ++ inc/ws/Controlleur/class.ws.url.php | 14 +++++++++----- inc/ws/Util/packager/class.ws.packager.html.php | 6 ++++-- 4 files changed, 27 insertions(+), 9 deletions(-) diff --git a/fluidbook/compile/_js/fluidbook.js b/fluidbook/compile/_js/fluidbook.js index 9a724991b..f12182ac3 100644 --- a/fluidbook/compile/_js/fluidbook.js +++ b/fluidbook/compile/_js/fluidbook.js @@ -96,10 +96,20 @@ function handleWheel(delta){ } function isMobile(){ - var ua=navigator.userAgent; var devices = ['iphone', 'ipad', 'ipod', 'droid', 'blackberry', 'mobile','htc','samsung','nokia','archos','galaxy','motorola','pad','tab','slate','motorola', 'symbian', 'phone', 'nintendo', 'playstation','touch','webos','ericsson','metro']; - var pattern; + return _isMobile(devices); +} +function isBadMobile(){ + var devices = ['kindle']; + return _isMobile(devices); +} + +function _isMobile(devices){ + var ua=navigator.userAgent; + var pattern; + + for(i=0;i-1){ diff --git a/fluidbook/compile/index.html b/fluidbook/compile/index.html index 09bb42534..ee2b13952 100644 --- a/fluidbook/compile/index.html +++ b/fluidbook/compile/index.html @@ -25,6 +25,8 @@