aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2012-07-31 01:35:16 -0400
committerHakim El Hattab <hakim.elhattab@gmail.com>2012-07-31 01:35:25 -0400
commit696346dccbde093af58cf6994fc89f19ab78e8f1 (patch)
tree24f366c81f278f4bc23cbb5e0fa469d8ec98f96f /js
parent19852772fe3aaa22d3447cb57b5e1b84d69814ba (diff)
downloadfosdem-2018-presentation-696346dccbde093af58cf6994fc89f19ab78e8f1.tar
fosdem-2018-presentation-696346dccbde093af58cf6994fc89f19ab78e8f1.tar.gz
added slide announcing markdown support (#15)
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js13
1 files changed, 12 insertions, 1 deletions
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 );