aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2014-02-28 12:16:37 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2014-02-28 12:16:37 +0100
commit4cd1dd1a1f522962480f3cce9ef58a714a04abb0 (patch)
tree5f8969deb56e18f35972cd178eea8aa3584cebbd /index.html
parent11df3547f67d45a20d09b34dc4473d532aa726f2 (diff)
parent08fb6cb2f96a6d97aaa21c35a925ebb59b0b0070 (diff)
downloadfosdem-2018-presentation-4cd1dd1a1f522962480f3cce9ef58a714a04abb0.tar
fosdem-2018-presentation-4cd1dd1a1f522962480f3cce9ef58a714a04abb0.tar.gz
Merge branch 'master' of github.com:hakimel/reveal.js into dev
Diffstat (limited to 'index.html')
-rw-r--r--index.html10
1 files changed, 8 insertions, 2 deletions
diff --git a/index.html b/index.html
index bfaf081..972fac7 100644
--- a/index.html
+++ b/index.html
@@ -20,9 +20,15 @@
<!-- For syntax highlighting -->
<link rel="stylesheet" href="lib/css/zenburn.css">
- <!-- If the query includes 'print-pdf', use the PDF print sheet -->
+ <!-- If the query includes 'print-pdf', include the PDF print sheet -->
<script>
- document.write( '<link rel="stylesheet" href="css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' );
+ if( window.location.search.match( /print-pdf/gi ) ) {
+ var link = document.createElement( 'link' );
+ link.rel = 'stylesheet';
+ link.type = 'text/css';
+ link.href = 'css/print/pdf.css';
+ document.getElementsByTagName( 'head' )[0].appendChild( link );
+ }
</script>
<!--[if lt IE 9]>