diff options
author | Hakim El Hattab | 2013-08-10 13:40:22 -0400 |
---|---|---|
committer | Hakim El Hattab | 2013-08-10 13:40:22 -0400 |
commit | 8222795c8701295e76c1be1297cbb76c47617537 (patch) | |
tree | 238249747d5012eab5c7cbc34e7433117a5850f9 /js/reveal.js | |
parent | 73b69eb13dc15734fd4ce0ad9aabe0a9c5f053b9 (diff) |
code formatting
Diffstat (limited to 'js/reveal.js')
-rw-r--r-- | js/reveal.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/js/reveal.js b/js/reveal.js index 19b77e5..56a000f 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -1032,11 +1032,8 @@ var Reveal = (function(){ var wasActive = dom.wrapper.classList.contains( 'overview' ); - var depth = 2500; - - if( window.innerWidth < 400 ) { - depth = 1000; - } + // Vary the depth of the overview based on screen size + var depth = window.innerWidth < 400 ? 1000 : 2500; dom.wrapper.classList.add( 'overview' ); dom.wrapper.classList.remove( 'exit-overview' ); |