Plugin Directory

Changeset 2185006


Ignore:
Timestamp:
11/02/2019 06:49:39 PM (6 years ago)
Author:
iseulde
Message:

v0.0.34

Location:
slide/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • slide/trunk/index.php

    r2184973 r2185006  
    55 * Plugin URI:  https://wordpress.org/plugins/slide/
    66 * Description: Allows you to create presentations with the block editor.
    7  * Version:     0.0.33
     7 * Version:     0.0.34
    88 * Author:      Ella van Durpe
    99 * Author URI:  https://ellavandurpe.com
  • slide/trunk/readme.md

    r2184973 r2185006  
    66    Requires PHP:      5.6
    77    Tested up to:      5.3
    8     Stable tag:        0.0.33
     8    Stable tag:        0.0.34
    99    License:           GPL-2.0-or-later
    1010    License URI:       http://www.gnu.org/licenses/gpl-2.0.html
  • slide/trunk/template.php

    r2184973 r2185006  
    3232        }
    3333
    34         @media print {
    35             .print-pdf #wpadminbar {
    36                 display: none;
    37             }
    38         }
    39 
     34        .print-pdf #wpadminbar,
    4035        .receiver #wpadminbar {
    4136            display: none;
     
    248243            const svg = event.currentSlide.getAttribute( 'data-background-svg' );
    249244
     245            console.log( event );
     246
    250247            if ( ! svg ) {
    251248                return;
    252249            }
    253250
     251            const targetBackgound = document.querySelectorAll( '.slide-background' )[ event.indexh ];
     252
     253            if ( ! targetBackgound ) {
     254                return;
     255            }
     256
    254257            window.setTimeout( () => {
    255                 const background = document.querySelector( '.slide-background.present .slide-background-content' );
    256                 background.innerHTML = svg;
     258                targetBackgound.innerHTML = svg;
    257259            } );
    258260        }
Note: See TracChangeset for help on using the changeset viewer.