aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugin
diff options
context:
space:
mode:
Diffstat (limited to 'plugin')
-rw-r--r--plugin/multiplex/index.js1
-rw-r--r--plugin/notes-server/index.js1
-rw-r--r--plugin/notes-server/notes.html9
-rw-r--r--plugin/notes/notes.html7
-rw-r--r--plugin/print-pdf/print-pdf.js11
5 files changed, 20 insertions, 9 deletions
diff --git a/plugin/multiplex/index.js b/plugin/multiplex/index.js
index 35df8e3..6f5d8b1 100644
--- a/plugin/multiplex/index.js
+++ b/plugin/multiplex/index.js
@@ -30,6 +30,7 @@ app.configure(function() {
});
app.get("/", function(req, res) {
+ res.writeHead(200, {'Content-Type': 'text/html'});
fs.createReadStream(opts.baseDir + '/index.html').pipe(res);
});
diff --git a/plugin/notes-server/index.js b/plugin/notes-server/index.js
index 8643f5d..5535c90 100644
--- a/plugin/notes-server/index.js
+++ b/plugin/notes-server/index.js
@@ -30,6 +30,7 @@ app.configure(function() {
});
app.get("/", function(req, res) {
+ res.writeHead(200, {'Content-Type': 'text/html'});
fs.createReadStream(opts.baseDir + '/index.html').pipe(res);
});
diff --git a/plugin/notes-server/notes.html b/plugin/notes-server/notes.html
index 551e400..25d1a62 100644
--- a/plugin/notes-server/notes.html
+++ b/plugin/notes-server/notes.html
@@ -3,6 +3,8 @@
<head>
<meta charset="utf-8">
+ <meta name="viewport" content="width=1150">
+
<title>reveal.js - Slide Notes</title>
<style>
@@ -14,6 +16,7 @@
font-size: 24px;
width: 640px;
margin-top: 5px;
+ clear: left;
}
#wrap-current-slide {
@@ -27,13 +30,13 @@
width: 1280px;
height: 1024px;
border: none;
-
+
-webkit-transform-origin: 0 0;
-moz-transform-origin: 0 0;
-ms-transform-origin: 0 0;
-o-transform-origin: 0 0;
transform-origin: 0 0;
-
+
-webkit-transform: scale(0.5);
-moz-transform: scale(0.5);
-ms-transform: scale(0.5);
@@ -53,7 +56,7 @@
width: 1280px;
height: 1024px;
border: none;
-
+
-webkit-transform-origin: 0 0;
-moz-transform-origin: 0 0;
-ms-transform-origin: 0 0;
diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html
index 830045d..8af43fb 100644
--- a/plugin/notes/notes.html
+++ b/plugin/notes/notes.html
@@ -14,6 +14,7 @@
font-size: 24px;
width: 640px;
margin-top: 5px;
+ clear: left;
}
#wrap-current-slide {
@@ -212,9 +213,9 @@
now = new Date();
diff = now.getTime() - start.getTime();
- hours = parseInt( diff / ( 1000 * 60 * 60 ) );
- minutes = parseInt( ( diff / ( 1000 * 60 ) ) % 60 );
- seconds = parseInt( ( diff / 1000 ) % 60 );
+ hours = Math.floor( diff / ( 1000 * 60 * 60 ) );
+ minutes = Math.floor( ( diff / ( 1000 * 60 ) ) % 60 );
+ seconds = Math.floor( ( diff / 1000 ) % 60 );
clockEl.innerHTML = now.toLocaleTimeString();
hoursEl.innerHTML = zeroPadInteger( hours );
diff --git a/plugin/print-pdf/print-pdf.js b/plugin/print-pdf/print-pdf.js
index 2b1d691..6b6cad6 100644
--- a/plugin/print-pdf/print-pdf.js
+++ b/plugin/print-pdf/print-pdf.js
@@ -11,8 +11,13 @@
var page = new WebPage();
var system = require( 'system' );
+page.viewportSize = {
+ width: 1024,
+ height: 768
+};
+
page.paperSize = {
- format: 'A4',
+ format: 'letter',
orientation: 'landscape',
margin: {
left: '0',
@@ -21,7 +26,6 @@ page.paperSize = {
bottom: '0'
}
};
-page.zoomFactor = 1.5;
var revealFile = system.args[1] || 'index.html?print-pdf';
var slideFile = system.args[2] || 'slides.pdf';
@@ -36,4 +40,5 @@ page.open( revealFile, function( status ) {
console.log( 'Printed succesfully' );
page.render( slideFile );
phantom.exit();
-} ); \ No newline at end of file
+} );
+