質問編集履歴
1
jsの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -42,6 +42,22 @@
|
|
42
42
|
|
43
43
|
});
|
44
44
|
|
45
|
+
trainTab2.addEventListener("click" , function() {
|
46
|
+
|
47
|
+
if(trainTab2.className !== trainActive1) {
|
48
|
+
|
49
|
+
trainTab1.classList.remove(trainActive1);
|
50
|
+
|
51
|
+
trainTab2.classList.add(trainActive1);
|
52
|
+
|
53
|
+
train1.classList.remove(trainActive2);
|
54
|
+
|
55
|
+
train2.classList.add(trainActive2);
|
56
|
+
|
57
|
+
}
|
58
|
+
|
59
|
+
});
|
60
|
+
|
45
61
|
```
|
46
62
|
|
47
63
|
|