]> _ Git - fluidbook-toolbox.git/commitdiff
wait #5525 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 21 Feb 2023 11:03:19 +0000 (12:03 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 21 Feb 2023 11:03:19 +0000 (12:03 +0100)
resources/linkeditor/js/linkeditor.js
resources/linkeditor/style/style.sass
resources/views/fluidbook_publication/link_editor.blade.php

index c91656931a823b3a5f8380af72bcd8793a4b910a..bf5de031c466c774e88f5fab9b7a3920176e1acd 100644 (file)
@@ -428,6 +428,14 @@ LinkEditor.prototype = {
         return [page, page + 1];
     },
 
+    toggleWhiteOverlay: function () {
+        $("#linkeditor-fluidbook").toggleClass('white-overlay');
+        if ($("#linkeditor-fluidbook").hasClass('white-overlay')) {
+            $('[data-action="toggleWhiteOverlay"]').addClass('active');
+        } else {
+            $('[data-action="toggleWhiteOverlay"]').removeClass('active');
+        }
+    },
 
 // Convert global coordinates to fluidbook ones
     globalToFluidbook: function (x, y, onePage) {
index ffbdf7152fabda3abbb45d660934a58e2aee977e..973e81439bf997492d06eb103cc7edcad4f9bdf2 100644 (file)
@@ -126,6 +126,18 @@ body, #linkeditor, html
                                 &.texts
                                     z-index: 2
 
+                    &.white-overlay
+                        &:after
+                            content: ''
+                            position: absolute
+                            top: 0
+                            left: 0
+                            width: 100%
+                            height: 100%
+                            z-index: 3
+                            pointer-events: none
+                            background-color: rgba(255, 255, 255, 0.75)
+
     &.single
         #linkeditor-page-right
             display: none
index c2804b6eb8dca4c53e39e07308fc2df9364736c4..53d549a1d014884ccb274182d8c2cf44bfdfe4bb 100644 (file)
                                data-tooltip="{{__('Editer les liens de l\'image supplémentaire du menu')}}"></a>
                         @endif
                     @endif
+                    <div class="separator"></div>
+                    <a href="#" data-action="toggleThumbnailsPDF" data-icon="pdf-thumbnails" data-tooltip="{{__('Afficher les pages du PDF des miniatures')}}"></a>
+                    <a href="#" data-action="toggleWhiteOverlay" data-icon="white-overlay" data-tooltip="{{__('Afficher un overlay blanc semi-opaque au dessus des pages')}}"></a>
+                    <a href="#" data-action="openFluidbook" data-icon="open-fluidbook" data-tooltip="{{__('Ouvrir le fluidbook à la page courante')}}"></a>
                 </nav>
                 <nav id="linkeditor-toolbar-right">