From 1264b1bd5d8a904300e19306c4136fa7636172d8 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 23 Oct 2017 14:05:16 +0000 Subject: [PATCH] #813 --- inc/ws/Util/html5/master/class.ws.html5.compiler.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/inc/ws/Util/html5/master/class.ws.html5.compiler.php b/inc/ws/Util/html5/master/class.ws.html5.compiler.php index bcab40373..34d01e0b2 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/master/class.ws.html5.compiler.php @@ -54,6 +54,7 @@ class wsHTML5Compiler { 'js/libs/fluidbook/fluidbook.privacy.js', 'js/libs/fluidbook/fluidbook.zoom.js', 'js/libs/fluidbook/fluidbook.menu.js', + 'js/libs/fluidbook/fluidbook.sound.js', 'js/libs/fluidbook/menu/fluidbook.chapters.js', 'js/libs/fluidbook/menu/fluidbook.index.js', 'js/libs/fluidbook/fluidbook.js', @@ -329,6 +330,8 @@ class wsHTML5Compiler { $this->log('Langs written'); $this->writeIndex(); $this->log('Index written'); + $this->writeSounds(); + $this->log('Sound written'); $this->writeTexts(); $this->log('Texts written'); $this->writeExtras(); @@ -426,6 +429,13 @@ class wsHTML5Compiler { } } + protected function writeSounds() { + if ($this->book->parametres->soundTheme == '') { + return; + } + $this->vdir->copyDirectory(WS_SOUNDS . '/' . $this->book->parametres->soundTheme, 'data/sounds'); + } + protected function writeIndex() { global $core; @@ -1223,8 +1233,8 @@ class wsHTML5Compiler { $lessVariables['page-number-color'] = wsHTML5::colorToCSS($this->theme->parametres->colorPageNumber); $lessVariables['display-page-number'] = $this->_lessBoolean($this->theme->parametres->displayPageNumber); + $lessVariables['page-transition-duration'] = $this->book->parametres->mobileTransitionDuration . 's'; - $res[] = '.doublePage._2d,.doublePage._3d{' . wsHTML5::writeCSSUA('transition', 'all ' . $this->book->parametres->mobileTransitionDuration . 's ease-in-out') . '}'; $res[] = '.background{' . wsHTML5::writeCSSUA('transform-origin', 'top left') . ';}'; foreach ($this->getResolutions() as $r) { -- 2.39.5