diff options
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]> |