回答編集履歴

1

調整

2021/09/29 00:17

投稿

yambejp
yambejp

スコア114883

test CHANGED
@@ -2,13 +2,13 @@
2
2
 
3
3
  <style>
4
4
 
5
- body.active{
5
+ body.loading{
6
6
 
7
7
  background-Color:gray;
8
8
 
9
9
  }
10
10
 
11
- body.active:before{
11
+ body.loading:before{
12
12
 
13
13
  content:"loading...";
14
14
 
@@ -36,9 +36,9 @@
36
36
 
37
37
  if(flg==0){
38
38
 
39
- document.body.classList.add('active');
39
+ document.body.classList.add('loading');
40
40
 
41
- setTimeout(()=>document.body.classList.remove('active'),3000);
41
+ setTimeout(()=>document.body.classList.remove('loading'),3000);
42
42
 
43
43
  }
44
44