slides/custom/js/printpdf.js
Michael Hanke 8d0c8b692e
Move workshop entrypoint to subdir
This makes the linkage setup identical to all modules, and resolves
issues with JS code not working for one of the two types of pages.

Fixes: #9
2025-06-28 17:33:47 +02:00

6 lines
319 B
JavaScript

// Printing and PDF exports
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? '../reveal.js/css/print/pdf.scss' : '../reveal.js/css/print/paper.scss';
document.getElementsByTagName( 'head' )[0].appendChild( link );