From: Vincent Vanwaelscappel Date: Mon, 20 Nov 2017 17:58:32 +0000 (+0100) Subject: wip #1802 @1.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=dce4b56004b01c544c6073994dabe4ad5bdf831a;p=fluidbook-html5.git wip #1802 @1.5 --- diff --git a/_index.html b/_index.html index 23ad3072..4ee5f411 100644 --- a/_index.html +++ b/_index.html @@ -2,13 +2,13 @@ - prefix="og: http://ogp.me/ns#"> + <!-- $titre --> + content="default-src 'self' data: gap: 'unsafe-inline' *; style-src 'self' 'unsafe-inline'; font-src 'self' data:; script-src 'self' 'unsafe-inline' 'unsafe-eval' ; img-src * data:"> @@ -20,6 +20,7 @@ +
diff --git a/js/libs/fluidbook/fluidbook.share.js b/js/libs/fluidbook/fluidbook.share.js index 4b7477a4..2d535ddf 100644 --- a/js/libs/fluidbook/fluidbook.share.js +++ b/js/libs/fluidbook/fluidbook.share.js @@ -17,6 +17,21 @@ function FluidbookShare(fluidbook) { $this.fluidbook.menu.openView("share", $(this).data('extra')); return false; }); + + $(this.fluidbook).on('fluidbook.page.change.end', function () { + $('[data-href^="article:"]').each(function () { + $(this).attr('data-href', relativeToAbsoluteURL($this.getShareURL($(this).data('href')))); + }); + + if ($(".fb-like").length > 0) { + try { + console.log('try to refresh facebook'); + FB.XFBML.parse(); + } catch (e) { + + } + } + }); } } diff --git a/style/fluidbook.less b/style/fluidbook.less index 04b29f9e..32ac8d96 100644 --- a/style/fluidbook.less +++ b/style/fluidbook.less @@ -2346,6 +2346,11 @@ body > input { } } +#links .fb_iframe_widget { + transform-origin: 0 0 0; + transform: scale(2.5); +} + /* Webfonts*/ @font-face {