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
6 lines
319 B
JavaScript
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 );
|