Last active
August 29, 2015 14:24
-
-
Save kentarosasaki/d675c024641503b6b7a8 to your computer and use it in GitHub Desktop.
reveal.jsで作った資料をChromeでPDF出力する方法 ref: http://qiita.com/kentarosasaki/items/d7bcc9699466cb82f237
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Printing and PDF exports --> | |
<script> | |
var link = document.createElement( 'link' ); | |
link.rel = 'stylesheet'; | |
link.type = 'text/css'; | |
link.href = window.location.search.match( /print-pdf/gi ) ? '../reveal.js/css/print/pdf.css' : '../reveal.js/css/print/paper.css'; | |
document.getElementsByTagName( 'head' )[0].appendChild( link ); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment