diff --git a/Gruntfile.js b/Gruntfile.js index 46385f4..a851845 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,6 +1,8 @@ /* global module:false */ module.exports = function(grunt) { var port = grunt.option('port') || 8000; + var base = grunt.option('base') || '.'; + // Project configuration grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), @@ -91,7 +93,7 @@ module.exports = function(grunt) { server: { options: { port: port, - base: '.', + base: base, livereload: true, open: true } diff --git a/README.md b/README.md index 3068c03..c052cf7 100644 --- a/README.md +++ b/README.md @@ -174,7 +174,7 @@ Reveal.initialize({ parallaxBackgroundImage: '', // e.g. "'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg'" // Parallax background size - parallaxBackgroundSize: '' // CSS syntax, e.g. "2100px 900px" + parallaxBackgroundSize: '', // CSS syntax, e.g. "2100px 900px" // Amount to move parallax background (horizontal and vertical) on slide change // Number, e.g. 100 @@ -692,7 +692,7 @@ Reveal.initialize({ ## PDF Export -Presentations can be exported to PDF via a special print stylesheet. This feature requires that you use [Google Chrome](http://google.com/chrome). +Presentations can be exported to PDF via a special print stylesheet. This feature requires that you use [Google Chrome](http://google.com/chrome) or [Chromium](https://www.chromium.org/Home). Here's an example of an exported presentation that's been uploaded to SlideShare: http://www.slideshare.net/hakimel/revealjs-300. 1. Open your presentation with `print-pdf` included anywhere in the query string. This triggers the default index HTML to load the PDF print stylesheet ([css/print/pdf.css](https://github.com/hakimel/reveal.js/blob/master/css/print/pdf.css)). You can test this with [lab.hakim.se/reveal-js?print-pdf](http://lab.hakim.se/reveal-js?print-pdf). @@ -712,7 +712,7 @@ The framework comes with a few different themes included: - white: White background, black text, blue links - league: Gray background, white text, blue links (default theme for reveal.js < 3.0.0) - beige: Beige background, dark text, brown links -- sky: Blue background, thin white text, blue links +- sky: Blue background, thin dark text, blue links - night: Black background, thick white text, orange links - serif: Cappuccino background, gray text, brown links - simple: White background, black text, blue links diff --git a/js/reveal.js b/js/reveal.js index ff5ea53..556f222 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -3764,8 +3764,15 @@ // keyboard modifier key is present if( activeElementIsCE || activeElementIsInput || (event.shiftKey && event.keyCode !== 32) || event.altKey || event.ctrlKey || event.metaKey ) return; - // While paused only allow "unpausing" keyboard events (b and .) - if( isPaused() && [66,190,191].indexOf( event.keyCode ) === -1 ) { + // While paused only allow resume keyboard events; + // 'b', '.' or any key specifically mapped to togglePause + var resumeKeyCodes = [66,190,191].concat( Object.keys( config.keyboard ).map( function( key ) { + if( config.keyboard[key] === 'togglePause' ) { + return parseInt( key, 10 ); + } + })); + + if( isPaused() && resumeKeyCodes.indexOf( event.keyCode ) === -1 ) { return false; }