com web/pres2: Missing pdf printing css: reveal.js reveal_tem plate.php

[email protected] (Rasmus Lerdorf) Thu, 04 Apr 2019 02:54:19 +0000
Newsgroups php.pres
Message-ID <[email protected]>
Commit:    4812e8393d9b9d6e9ae8139ae3374dafa3e392f0
Author:    Rasmus Lerdorf <[email protected]>         Wed, 3 Apr 2019 19:54:19 -0700
Parents:   be33b96662880261a5fe8b3b98ef27d0ec0a56c2
Branches:  master

Link:       http://git.php.net/?p=web/pres2.git;a=commitdiff;h=4812e8393d9b9d6e9ae8139ae3374dafa3e392f0

Log:
Missing pdf printing css

Changed paths:
  M  reveal.js
  M  reveal_template.php


Diff:
diff --git a/reveal.js b/reveal.js
index 360bc94..3643112 160000
--- a/reveal.js
+++ b/reveal.js
@@ -1 +1 @@
-Subproject commit 360bc940062711db9b8020ce4e848f6c37014481
+Subproject commit 3643112b35255b2fddf21041343b31cc64222fb1
diff --git a/reveal_template.php b/reveal_template.php
index 21028db..bae85c2 100644
--- a/reveal_template.php
+++ b/reveal_template.php
@@ -17,6 +17,15 @@
 		<link rel="stylesheet" href="/reveal.js/css/reveal.css">
 		<link rel="stylesheet" href="/reveal.js/css/theme/white.css" id="theme">
 
+		<!-- 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 ) ? 'css/print/pdf.css' : 'css/print/paper.css';
+			document.getElementsByTagName( 'head' )[0].appendChild( link );
+		</script>
+
 		<!-- For syntax highlighting - note that these are not the generic highlight.js theme files - see https://github.com/nwinkler/reveal-highlight-themes -->
 		<link rel="stylesheet" href="/styles/xcode.css">