aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2013-02-13 17:38:24 -0500
committerHakim El Hattab <hakim.elhattab@gmail.com>2013-02-13 17:38:24 -0500
commit24a59a53fdd211d8176c83e0647d2fa6a21660d1 (patch)
tree186a5320d43d37c49b41140e5631bb9779af1d87 /js
parent2d0237538c97df65448e5e08b015a87ee3b1259a (diff)
parent4df8a256254705b6c6ffa5cf2edb7c52d26b43ec (diff)
downloadfosdem-2018-presentation-24a59a53fdd211d8176c83e0647d2fa6a21660d1.tar
fosdem-2018-presentation-24a59a53fdd211d8176c83e0647d2fa6a21660d1.tar.gz
Merge branch 'master' of https://github.com/gouravtiwari/reveal.js
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 5ed71c1..33ca7da 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -1529,7 +1529,25 @@ var Reveal = (function(){
}
+ /**
+ *
+ * @return {Boolean} true if current slide is first slide,
+ * false otherwise
+ */
+
+ function firstSlide(){
+ return (document.querySelector(SLIDES_SELECTOR + '.past') == null ? true : false);
+ }
+
+ /**
+ *
+ * @return {Boolean} true if current slide is last slide,
+ * false otherwise
+ */
+ function lastSlide(){
+ return (document.querySelector(SLIDES_SELECTOR + '.future') == null ? true : false);
+ }
// --------------------------------------------------------------------//
// ----------------------------- EVENTS -------------------------------//
// --------------------------------------------------------------------//
@@ -1880,6 +1898,14 @@ var Reveal = (function(){
return scale;
},
+ isFirstSlide: function(){
+ return firstSlide();
+ },
+
+ isLastSlide: function(){
+ return lastSlide();
+ },
+
// Helper method, retrieves query string as a key/value hash
getQueryHash: function() {
var query = {};