From 696346dccbde093af58cf6994fc89f19ab78e8f1 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Tue, 31 Jul 2012 01:35:16 -0400 Subject: added slide announcing markdown support (#15) --- js/reveal.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'js') diff --git a/js/reveal.js b/js/reveal.js index cbb859a..86af9c0 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -1,5 +1,5 @@ /*! - * reveal.js 1.5 r4 + * reveal.js 1.5 r6 * http://lab.hakim.se/reveal-js * MIT licensed * @@ -1015,6 +1015,17 @@ var Reveal = (function(){ return currentSlide }, + // Helper method, retrieves query string as a key/value hash + getQueryHash: function() { + var query = {}; + + location.search.replace( /[A-Z0-9]+?=(\w*)/gi, function(a) { + query[ a.split( '=' ).shift() ] = a.split( '=' ).pop(); + } ); + + return query; + }, + // Forward event binding to the reveal DOM element addEventListener: function( type, listener, useCapture ) { ( dom.wrapper || document.querySelector( '.reveal' ) ).addEventListener( type, listener, useCapture ); -- cgit v1.2.3