From 302428f2a05e5713bf2d3b22aaa20441d7526c7f Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Tue, 24 Apr 2012 14:29:15 +0000 Subject: [PATCH] --- fluidbook/compile/_js/fluidbook.js | 14 ++++++++ fluidbook/compile/fluidbook.js | 2 ++ fluidbook/compile/index.html | 1 - inc/ws/Controlleur/class.ws.url.php | 34 ++++++++++++------- .../Util/packager/class.ws.packager.html.php | 4 +-- 5 files changed, 40 insertions(+), 15 deletions(-) diff --git a/fluidbook/compile/_js/fluidbook.js b/fluidbook/compile/_js/fluidbook.js index b784fec9e..8f8d625be 100644 --- a/fluidbook/compile/_js/fluidbook.js +++ b/fluidbook/compile/_js/fluidbook.js @@ -134,6 +134,20 @@ function _isMobile(devices){ return false; } +function redirectPDF(){ + window.location='data/document.pdf'; +} + +function redirectMobile(){ + var get=parseGet(); + var page='index.html'; + if(get['widget']!=undefined && get['widget']=='1'){ + page='widget.html'; + } + window.location='m/'+page; +} + + function wheel(event){ var delta = 0; if (!event) /* For IE. */ diff --git a/fluidbook/compile/fluidbook.js b/fluidbook/compile/fluidbook.js index deeb6ef9f..a4e6c8314 100644 --- a/fluidbook/compile/fluidbook.js +++ b/fluidbook/compile/fluidbook.js @@ -69,6 +69,8 @@ function getCookie(nom) } return null; } + + function setCookie(nom, valeur) { var argv=setCookie.arguments; diff --git a/fluidbook/compile/index.html b/fluidbook/compile/index.html index 2925fffee..388ebfbbe 100644 --- a/fluidbook/compile/index.html +++ b/fluidbook/compile/index.html @@ -17,7 +17,6 @@ - $redirectScript $ga