support for PDF export in chrome (closes #92)
This commit is contained in:
17
index.html
17
index.html
@ -16,10 +16,13 @@
|
||||
|
||||
<link rel="stylesheet" href="css/reset.css">
|
||||
<link rel="stylesheet" href="css/main.css">
|
||||
<link rel="stylesheet" href="css/print.css" type="text/css" media="print">
|
||||
|
||||
<link rel="stylesheet" href="lib/css/zenburn.css">
|
||||
|
||||
<script>
|
||||
// If the query includes print-pdf we'll use the fancy print CSS
|
||||
document.write( '<link rel="stylesheet" href="css/' + (window.location.search.match( /print-pdf/gi ) ? 'print-pdf.css' : 'print.css') + '" type="text/css" media="print">' );
|
||||
</script>
|
||||
|
||||
<!--[if lt IE 9]>
|
||||
<script src="lib/js/html5shiv.js"></script>
|
||||
<![endif]-->
|
||||
@ -36,11 +39,7 @@
|
||||
<div class="slides">
|
||||
<section>
|
||||
<h1>Reveal.js</h1>
|
||||
<h3 class="inverted">CSS 3D Presentations</h3>
|
||||
<script>
|
||||
// Delicously hacky. Look away.
|
||||
if( navigator.userAgent.match( /(iPhone|iPad|iPod|Android)/i ) ) document.write( '<p style="color: rgba(0,0,0,0.3); text-shadow: none;">('+'Tap to navigate'+')</p>' );
|
||||
</script>
|
||||
<h3 class="inverted">HTML Presentations Made Easy</h3>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
@ -223,7 +222,7 @@ function linkify( selector ) {
|
||||
<section>
|
||||
<h2>Intergalactic Interconnections</h2>
|
||||
<p>
|
||||
You can link between slides internally,<br/>
|
||||
You can link between slides internally,
|
||||
<a href="#/2/3">like this</a>.
|
||||
</p>
|
||||
</section>
|
||||
@ -333,7 +332,7 @@ function linkify( selector ) {
|
||||
// Load the scripts and, when completed, initialize reveal.js
|
||||
head.js.apply( null, scripts );
|
||||
|
||||
</script>
|
||||
</script>x
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user