Merge branch 'master' of https://github.com/gouravtiwari/reveal.js
This commit is contained in:
commit
24a59a53fd
26
js/reveal.js
26
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 -------------------------------//
|
// ----------------------------- EVENTS -------------------------------//
|
||||||
// --------------------------------------------------------------------//
|
// --------------------------------------------------------------------//
|
||||||
@ -1880,6 +1898,14 @@ var Reveal = (function(){
|
|||||||
return scale;
|
return scale;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
isFirstSlide: function(){
|
||||||
|
return firstSlide();
|
||||||
|
},
|
||||||
|
|
||||||
|
isLastSlide: function(){
|
||||||
|
return lastSlide();
|
||||||
|
},
|
||||||
|
|
||||||
// Helper method, retrieves query string as a key/value hash
|
// Helper method, retrieves query string as a key/value hash
|
||||||
getQueryHash: function() {
|
getQueryHash: function() {
|
||||||
var query = {};
|
var query = {};
|
||||||
|
Loading…
Reference in New Issue
Block a user