質問編集履歴
1
変数名を変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
```Javascript
|
18
18
|
|
19
|
-
let
|
19
|
+
let switch = false; //←ここ
|
20
20
|
|
21
21
|
|
22
22
|
|
@@ -24,17 +24,17 @@
|
|
24
24
|
|
25
25
|
let checkboxes = document.getElementById('checkboxes');
|
26
26
|
|
27
|
-
if (!
|
27
|
+
if (!switch) {
|
28
28
|
|
29
29
|
checkboxes.style.display = 'block';
|
30
30
|
|
31
|
-
|
31
|
+
switch = true;//←ここ
|
32
32
|
|
33
33
|
} else {
|
34
34
|
|
35
35
|
checkboxes.style.display = 'none';
|
36
36
|
|
37
|
-
|
37
|
+
switch = false;//←ここ
|
38
38
|
|
39
39
|
}
|
40
40
|
|