diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2014-02-28 12:16:14 +0100 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2014-02-28 12:16:14 +0100 |
commit | 08fb6cb2f96a6d97aaa21c35a925ebb59b0b0070 (patch) | |
tree | 4f34b60c6baf482c6aa11abea49a2d97ec133211 /index.html | |
parent | 8b8cc607d4e02ca51c4256175b9cc861f75b70e3 (diff) | |
download | fosdem-2018-presentation-08fb6cb2f96a6d97aaa21c35a925ebb59b0b0070.tar fosdem-2018-presentation-08fb6cb2f96a6d97aaa21c35a925ebb59b0b0070.tar.gz |
fix pdf print bug in chrome 33 #808
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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]> |