瀏覽代碼

code formatting

Hakim El Hattab 11 年之前
父節點
當前提交
8222795c87
共有 2 個文件被更改,包括 3 次插入6 次删除
  1. 2 5
      js/reveal.js
  2. 1 1
      js/reveal.min.js

+ 2 - 5
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' );

File diff suppressed because it is too large
+ 1 - 1
js/reveal.min.js


Some files were not shown because too many files changed in this diff