aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2014-04-26 19:16:10 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2014-04-26 19:16:10 +0200
commitae962d729be2b6e1b8db0c5e207c55887ff9f8dc (patch)
tree43c22096246a60fe87871f0c91cca883ff3c3a90 /index.html
parentb0196045310a2f56f59f5a971399482745578f87 (diff)
downloadfosdem-2018-presentation-ae962d729be2b6e1b8db0c5e207c55887ff9f8dc.tar
fosdem-2018-presentation-ae962d729be2b6e1b8db0c5e207c55887ff9f8dc.tar.gz
fix non-pdf printing (closes #881)
Diffstat (limited to 'index.html')
-rw-r--r--index.html14
1 files changed, 6 insertions, 8 deletions
diff --git a/index.html b/index.html
index 7eabd5c..98739b9 100644
--- a/index.html
+++ b/index.html
@@ -20,15 +20,13 @@
<!-- For syntax highlighting -->
<link rel="stylesheet" href="lib/css/zenburn.css">
- <!-- If the query includes 'print-pdf', include the PDF print sheet -->
+ <!-- Include the appropriate print stylesheet -->
<script>
- 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 );
- }
+ var link = document.createElement( 'link' );
+ link.rel = 'stylesheet';
+ link.type = 'text/css';
+ link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
+ document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
<!--[if lt IE 9]>