Przeglądaj źródła

非首页不强制加载2秒

wgl 4 lat temu
rodzic
commit
7a586717c3
2 zmienionych plików z 2 dodań i 14 usunięć
  1. 1 7
      index/business/index.html
  2. 1 7
      index/pension/index.html

+ 1 - 7
index/business/index.html

@@ -53,13 +53,7 @@
 				var end_time = (new Date()).getTime();
 				var loading_time = end_time - start_time;
 				console.log(((loading_time) / 1000).toString() + '秒');
-				if (loading_time < 2000) {
-					setTimeout(function() {
-						removeLoading();
-					}, 2000 - (loading_time));
-				} else {
-					removeLoading()
-				}
+				removeLoading();
 			}
 
 			function removeLoading() {

+ 1 - 7
index/pension/index.html

@@ -53,13 +53,7 @@
 				var end_time = (new Date()).getTime();
 				var loading_time = end_time - start_time;
 				console.log(((loading_time) / 1000).toString() + '秒');
-				if (loading_time < 2000) {
-					setTimeout(function() {
-						removeLoading();
-					}, 2000 - (loading_time));
-				} else {
-					removeLoading()
-				}
+				removeLoading();
 			}
 
 			function removeLoading() {