aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.html
diff options
context:
space:
mode:
authorHakim El Hattab2012-08-04 15:45:13 -0400
committerHakim El Hattab2012-08-04 15:45:13 -0400
commitf350c6a5cdc6f7ae01bb490896329cf6533156b6 (patch)
tree95e5791e4fee740b975dbcf45cfa36ce9f37ef01 /index.html
parent7101c2408dd2ba1656883e186cecc9cace92112e (diff)
support for PDF export in chrome (closes #92)
Diffstat (limited to 'index.html')
-rw-r--r--index.html17
1 files changed, 8 insertions, 9 deletions
diff --git a/index.html b/index.html
index 2845842..c4cf294 100644
--- a/index.html
+++ b/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>