()
| 331 | // Event listeners =========================================================== |
| 332 | |
| 333 | function onPrint() { |
| 334 | if (big.mode === "print") return; |
| 335 | body.className = "print-mode " + initialBodyClass; |
| 336 | emptyNode(presentationContainer); |
| 337 | slideDivs.forEach(function(slideContainer, i) { |
| 338 | var subContainer = presentationContainer.appendChild( |
| 339 | ce("div", "sub-container") |
| 340 | ); |
| 341 | var slideBodyContainer = subContainer.appendChild( |
| 342 | ce( |
| 343 | "div", |
| 344 | slideContainer.firstChild.getAttribute("data-bodyclass") || "" |
| 345 | ) |
| 346 | ); |
| 347 | slideBodyContainer.appendChild(slideContainer); |
| 348 | slideContainer.style.display = "flex"; |
| 349 | useDataImageAsBackground(slideContainer); |
| 350 | resizeTo(slideContainer, 512, 320); |
| 351 | if (notes[i].length) { |
| 352 | var notesUl = subContainer.appendChild(ce("ul", "notes-list")); |
| 353 | notes[i].forEach(function(note) { |
| 354 | var li = notesUl.appendChild(ce("li")); |
| 355 | li.innerText = note; |
| 356 | }); |
| 357 | } |
| 358 | }); |
| 359 | |
| 360 | big.mode = "print"; |
| 361 | } |
| 362 | |
| 363 | function onTalk(i) { |
| 364 | if (big.mode === "talk") return; |
no test coverage detected