diff options
author | quilicicf <quilicicf@gmail.com> | 2020-03-10 14:03:30 +0100 |
---|---|---|
committer | quilicicf <quilicicf@gmail.com> | 2020-03-11 13:10:06 +0100 |
commit | 499dc685365ffa45197cfc1fe3d5600c6a5fd896 (patch) | |
tree | 0f52198c9f1949bc406612347c45ba8e8feb1d86 /demo.html | |
parent | 5a5a5c9a6c47ae166e75cd09b950f34727f12e9f (diff) | |
download | fosdem-2021-minimalism-presentation-499dc685365ffa45197cfc1fe3d5600c6a5fd896.tar fosdem-2021-minimalism-presentation-499dc685365ffa45197cfc1fe3d5600c6a5fd896.tar.gz |
Package paper and pdf style sheets and apply them conditionally
Diffstat (limited to 'demo.html')
-rw-r--r-- | demo.html | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -18,17 +18,12 @@ <link rel="stylesheet" href="dist/reveal.css"> <link rel="stylesheet" href="dist/theme/black.css" id="theme"> + <!-- Print on paper or PDF --> + <link rel="stylesheet" href="dist/print/paper.css"> + <link rel="stylesheet" href="dist/print/pdf.css"> + <!-- Theme used for syntax highlighting of code --> <link rel="stylesheet" href="lib/css/monokai.css"> - - <!-- Printing and PDF exports --> - <script> - var link = document.createElement( 'link' ); - link.rel = 'stylesheet'; - link.type = 'text/css'; - link.href = window.location.search.match( /print-pdf/gi ) ? 'dist/print/pdf.css' : 'dist/print/paper.css'; - document.getElementsByTagName( 'head' )[0].appendChild( link ); - </script> </head> <body> |