From: Vincent Vanwaelscappel Date: Thu, 11 Oct 2018 15:07:50 +0000 (+0200) Subject: wip #2286 @3 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=61d471c455f751f335424edac31ed5eda5a5ab9b;p=fluidbook-html5.git wip #2286 @3 --- diff --git a/images/interface.svg b/images/interface.svg index eab1519e..a9da0ad3 100644 --- a/images/interface.svg +++ b/images/interface.svg @@ -1,8 +1,10 @@ - - + + @@ -20,4 +22,10 @@ + + + + + + diff --git a/js/libs/fluidbook/fluidbook.menu.js b/js/libs/fluidbook/fluidbook.menu.js index d1d57827..fc5c6c88 100644 --- a/js/libs/fluidbook/fluidbook.menu.js +++ b/js/libs/fluidbook/fluidbook.menu.js @@ -155,8 +155,8 @@ FluidbookMenu.prototype = { var read = multimedia.indexOf('r_') == 0 ? ' data-readmode="1"' : ''; $("#view").append('
' + view + '
'); - if(animateLinks){ - this.fluidbook.links.animateLinks($("#view"),500); + if (animateLinks) { + this.fluidbook.links.animateLinks($("#view"), 500); } if (callback != undefined) { @@ -522,7 +522,7 @@ FluidbookMenu.prototype = { var w = ww * 0.6; var h = hh * 0.8; var forceHeight = false; - var fullscreen = false; + var fullscreen = m.data('fullscreen') == '1'; var nw, nh; var hasCaption = true; diff --git a/js/libs/fluidbook/links/fluidbook.links.zoomhd.js b/js/libs/fluidbook/links/fluidbook.links.zoomhd.js index 0d6299b7..413210fc 100644 --- a/js/libs/fluidbook/links/fluidbook.links.zoomhd.js +++ b/js/libs/fluidbook/links/fluidbook.links.zoomhd.js @@ -20,16 +20,23 @@ FluidbookLinksZoomHD.prototype = { view = '
' + this.fluidbook.menu.closeButton() + '
'; view += '
'; - view += '
'; + view += '
'+getSpriteIcon('interface-minus')+''+getSpriteIcon('interface-plus')+'
'; - $("#view").append('
' + view + '
'); + $("#view").append('
' + view + '
'); - $("#view").find('.zoomhdScale').append(image); + var e = $("#view").find('.zoomhdScale'); + e.append(image); + + this.initZoomHD(e); if (callback != undefined) { callback(); } }, + + initZoomHD: function (e) { + + }, } $(function () { diff --git a/style/fluidbook.less b/style/fluidbook.less index db9f938f..e5bd7639 100644 --- a/style/fluidbook.less +++ b/style/fluidbook.less @@ -1281,7 +1281,7 @@ html.ios body.portrait #interface { -o-transition: opacity @menutransition, top @menutransition; transition: opacity @menutransition, top @menutransition; - &[data-menu="multimedia"], &[data-menu="webvideo"], &[data-menu="video"], &[data-menu="externalchapters"], &[data-menu="iframe"], &[data-menu="text"] { + &[data-menu="multimedia"], &[data-menu="webvideo"], &[data-menu="video"], &[data-menu="externalchapters"], &[data-menu="iframe"], &[data-menu="text"], &[data-menu="zoomhd"] { .caption { height: 0; padding: 0; @@ -1416,11 +1416,52 @@ html.ios body.portrait #interface { height: 60px; z-index: 2; } + } + } + } + } + + .zoomhdHolder { + position: relative; + width: 100%; + height: 100%; + overflow: hidden; + + .zoomhdControls { + position: absolute; + bottom: 50px; + left: 50%; + width: 0; + a { + position: absolute; + display: block; + top: -20px; + left: 10px; + width: 50px; + height: 50px; + border-radius: 50%; + background-color: @menu-button-background; + color: @menu-text; + + &.minus { + left: -60px; } } } + .zoomhdScale { + position: absolute; + top: 50%; + left: 50%; + img{ + display: block; + position: absolute; + top: -50%; + left: -50%; + } + } + } &[data-menu="webvideo"], &[data-menu="webvideo"] {