MCPcopy Create free account
hub / github.com/hackmdio/codimd / renderSlide

Function renderSlide

public/js/slide.js:128–145  ·  view source on GitHub ↗
(event)

Source from the content-addressed store, hash-verified

126}
127
128function renderSlide (event) {
129 if (window.location.search.match(/print-pdf/gi)) {
130 const slides = $('.slides')
131 const title = document.title
132 finishView(slides)
133 document.title = title
134 Reveal.layout()
135 } else {
136 const markdown = $(event.currentSlide)
137 if (!markdown.attr('data-rendered')) {
138 const title = document.title
139 finishView(markdown)
140 markdown.attr('data-rendered', 'true')
141 document.title = title
142 Reveal.layout()
143 }
144 }
145}
146
147Reveal.addEventListener('ready', event => {
148 renderSlide(event)

Callers 1

slide.jsFile · 0.85

Calls 1

finishViewFunction · 0.90

Tested by

no test coverage detected