回答編集履歴
2
修正
test
CHANGED
@@ -58,6 +58,8 @@
|
|
58
58
|
|
59
59
|
});
|
60
60
|
|
61
|
+
|
62
|
+
|
61
63
|
$("#trigger−02").on("click", function () {
|
62
64
|
|
63
65
|
$(this).toggleClass("active");
|
1
修正
test
CHANGED
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
<script>
|
28
28
|
|
29
|
-
function
|
29
|
+
$(function () {// 読み込み時のチェックを追加
|
30
30
|
|
31
31
|
if ($(".active").length) {
|
32
32
|
|
@@ -38,14 +38,6 @@
|
|
38
38
|
|
39
39
|
}
|
40
40
|
|
41
|
-
}
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
$(function () {
|
46
|
-
|
47
|
-
$("#target").css({"display": "none"});
|
48
|
-
|
49
41
|
});
|
50
42
|
|
51
43
|
|
@@ -54,17 +46,31 @@
|
|
54
46
|
|
55
47
|
$(this).toggleClass("active");
|
56
48
|
|
49
|
+
if ($(".active").length) {
|
50
|
+
|
51
|
+
$("#target").css("display", "block");
|
52
|
+
|
57
|
-
|
53
|
+
} else {
|
54
|
+
|
55
|
+
$("#target").css("display", "none");
|
56
|
+
|
57
|
+
}
|
58
58
|
|
59
59
|
});
|
60
|
-
|
61
|
-
|
62
60
|
|
63
61
|
$("#trigger−02").on("click", function () {
|
64
62
|
|
65
63
|
$(this).toggleClass("active");
|
66
64
|
|
65
|
+
if ($(".active").length) {
|
66
|
+
|
67
|
+
$("#target").css("display", "block");
|
68
|
+
|
67
|
-
|
69
|
+
} else {
|
70
|
+
|
71
|
+
$("#target").css("display", "none");
|
72
|
+
|
73
|
+
}
|
68
74
|
|
69
75
|
});
|
70
76
|
|