diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2014-04-26 19:16:10 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2014-04-26 19:16:10 +0200 |
commit | ae962d729be2b6e1b8db0c5e207c55887ff9f8dc (patch) | |
tree | 43c22096246a60fe87871f0c91cca883ff3c3a90 /index.html | |
parent | b0196045310a2f56f59f5a971399482745578f87 (diff) | |
download | fosdem-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.html | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -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]> |