回答編集履歴
1
script修正
test
CHANGED
@@ -10,6 +10,14 @@
|
|
10
10
|
|
11
11
|
document.addEventListener("click", (e)=>{
|
12
12
|
|
13
|
+
if(!document.classList.contains("open")){
|
14
|
+
|
15
|
+
return;
|
16
|
+
|
17
|
+
}
|
18
|
+
|
19
|
+
|
20
|
+
|
13
21
|
if(!e.target.closest("nav")){
|
14
22
|
|
15
23
|
document.body.classList.remove("open")
|