MCPcopy
hub / github.com/hakimel/reveal.js / update

Method update

js/controllers/notes.js:39–49  ·  view source on GitHub ↗

* Pick up notes from the current slide and display them * to the viewer. * * @see config.showNotes

()

Source from the content-addressed store, hash-verified

37 * @see {@link config.showNotes}
38 */
39 update() {
40
41 if( this.Reveal.getConfig().showNotes &&
42 this.element && this.Reveal.getCurrentSlide() &&
43 !this.Reveal.isScrollView() &&
44 !this.Reveal.isPrintView()
45 ) {
46 this.element.innerHTML = this.getSlideNotes() || '<span class="notes-placeholder">No notes on this slide.</span>';
47 }
48
49 }
50
51 /**
52 * Updates the visibility of the speaker notes sidebar that

Callers 6

startFunction · 0.45
layoutFunction · 0.45
slideFunction · 0.45
syncFunction · 0.45
syncSlideFunction · 0.45

Calls 3

getSlideNotesMethod · 0.95
getConfigMethod · 0.80
getCurrentSlideMethod · 0.80

Tested by

no test coverage detected