From: vincent@cubedesigners.com Date: Tue, 17 Jan 2012 10:29:31 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=e2377346bc631e8d9f04f45e1efc1ee27c257cb5;p=cubeextranet.git --- 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 @@