aboutsummaryrefslogtreecommitdiff
path: root/js/reveal.js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2014-04-23 21:18:13 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2014-04-23 21:18:13 +0200
commita49a78c454ab88120af37b0cc44df75cd0c31601 (patch)
treee810fb91510126418c7164db76ba044957b7bc88 /js/reveal.js
parent646203f038fcddbc15c35e891d3bbd7aa1d8be1f (diff)
downloadfreenode-live-2017-presentation-a49a78c454ab88120af37b0cc44df75cd0c31601.tar
freenode-live-2017-presentation-a49a78c454ab88120af37b0cc44df75cd0c31601.tar.gz
remove needless condition
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 982b951..3ca9d6f 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -412,10 +412,11 @@ var Reveal = (function(){
*/
function setupPDF() {
- // Dimensions of the content
+ // Dimensions of the PDF pages
var pageWidth = 1122,
pageHeight = 867;
+ // Dimensions of slides within the pages
var slideWidth = 960,
slideHeight = 700;
@@ -428,12 +429,9 @@ var Reveal = (function(){
// Vertical stacks are not centred since their section
// children will be
- if( slide.classList.contains( 'stack' ) ) {
- slide.style.top = 0;
- }
- else {
- var left = ( pageWidth - slideWidth ) / 2;
- var top = ( pageHeight - slideHeight ) / 2;
+ if( slide.classList.contains( 'stack' ) === false ) {
+ var left = ( pageWidth - slideWidth ) / 2,
+ top = ( pageHeight - slideHeight ) / 2;
if( config.center || slide.classList.contains( 'center' ) ) {
top = Math.max( ( pageHeight - getAbsoluteHeight( slide ) ) / 2, 0 );