new syncFragments api method
This commit is contained in:
parent
30b670cf42
commit
4672801229
18
js/reveal.js
18
js/reveal.js
@ -2682,8 +2682,7 @@
|
|||||||
function syncSlide( slide ) {
|
function syncSlide( slide ) {
|
||||||
|
|
||||||
syncBackground( slide );
|
syncBackground( slide );
|
||||||
|
syncFragments( slide );
|
||||||
sortFragments( slide.querySelectorAll( '.fragment' ) );
|
|
||||||
|
|
||||||
updateBackground();
|
updateBackground();
|
||||||
updateNotes();
|
updateNotes();
|
||||||
@ -2692,6 +2691,19 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Formats the fragments on the given slide so that they have
|
||||||
|
* valid indices. Call this if fragments are changed in the DOM
|
||||||
|
* after reveal.js has already initialized.
|
||||||
|
*
|
||||||
|
* @param {HTMLElement} slide
|
||||||
|
*/
|
||||||
|
function syncFragments( slide ) {
|
||||||
|
|
||||||
|
sortFragments( slide.querySelectorAll( '.fragment' ) );
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resets all vertical slides so that only the first
|
* Resets all vertical slides so that only the first
|
||||||
* is visible.
|
* is visible.
|
||||||
@ -5297,8 +5309,10 @@
|
|||||||
|
|
||||||
initialize: initialize,
|
initialize: initialize,
|
||||||
configure: configure,
|
configure: configure,
|
||||||
|
|
||||||
sync: sync,
|
sync: sync,
|
||||||
syncSlide: syncSlide,
|
syncSlide: syncSlide,
|
||||||
|
syncFragments: syncFragments,
|
||||||
|
|
||||||
// Navigation methods
|
// Navigation methods
|
||||||
slide: slide,
|
slide: slide,
|
||||||
|
Loading…
Reference in New Issue
Block a user