質問編集履歴

3

jsコード追記

2020/02/04 14:31

投稿

ryooooou
ryooooou

スコア5

test CHANGED
File without changes
test CHANGED
@@ -171,3 +171,29 @@
171
171
  });
172
172
 
173
173
  ```
174
+
175
+ 追加分
176
+
177
+ ```js
178
+
179
+ jQuery(function{
180
+
181
+ $(this).children().eq(1).slideToggle(300);
182
+
183
+ $(this).children().eq(0).toggleClass("accordion-no-bar");
184
+
185
+ $(this).siblings().find(".accordion-header").removeClass("accordion-gold");
186
+
187
+ $(this).siblings().find(".accordion-header i").removeClass("rotate-fa");
188
+
189
+ $(this).find(".accordion-header").toggleClass("accordion-gold");
190
+
191
+ $(this).find(".fa").toggleClass("rotate-fa");
192
+
193
+
194
+
195
+ $(".accordion-wrap .accordion-text").not($(this).children().eq(1)).slideUp(300);
196
+
197
+ });
198
+
199
+ ```

2

jsコード追記

2020/02/04 14:31

投稿

ryooooou
ryooooou

スコア5

test CHANGED
File without changes
test CHANGED
@@ -168,4 +168,6 @@
168
168
 
169
169
  $(".accordion-wrap .accordion-text").not($(this).children().eq(1)).slideUp(300);
170
170
 
171
+ });
172
+
171
173
  ```

1

コードの表記方法を変更

2020/02/03 15:21

投稿

ryooooou
ryooooou

スコア5

test CHANGED
File without changes
test CHANGED
@@ -12,9 +12,9 @@
12
12
 
13
13
 
14
14
 
15
- ### 該当のソースコード
15
+ ### コード
16
16
 
17
- 【HTML】-----------------------------------------------------------------------
17
+ ```html
18
18
 
19
19
  <body>
20
20
 
@@ -36,9 +36,11 @@
36
36
 
37
37
  </body>
38
38
 
39
+ ```
39
40
 
40
41
 
42
+
41
- css】-----------------------------------------------------------------------
43
+ ```css
42
44
 
43
45
  body{
44
46
 
@@ -142,13 +144,11 @@
142
144
 
143
145
  }
144
146
 
145
-
146
-
147
- 【js】-----------------------------------------------------------------------
147
+ ```
148
148
 
149
149
 
150
150
 
151
-
151
+ ```js
152
152
 
153
153
  $(".accordion-wrap").on("click", function(){
154
154
 
@@ -167,3 +167,5 @@
167
167
 
168
168
 
169
169
  $(".accordion-wrap .accordion-text").not($(this).children().eq(1)).slideUp(300);
170
+
171
+ ```