diff options
author | Chris Lawrence | 2014-04-13 14:05:51 -0400 |
---|---|---|
committer | Chris Lawrence | 2014-04-13 14:05:51 -0400 |
commit | ac766444567293dc64ae8779e501c3fe0eb174dd (patch) | |
tree | e0f6910f20b51189b93815974bba70a87e39299d /index.html | |
parent | d1d6cca272050c2088037e8255fe0ca77017a61b (diff) | |
parent | 9da952fea30906090446d038430186b11dba7f13 (diff) |
Merge remote-tracking branch 'upstream/master'
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]> |