回答編集履歴

1

ソースの変更

2017/01/18 01:26

投稿

takumaro_web
takumaro_web

スコア301

test CHANGED
@@ -138,11 +138,7 @@
138
138
 
139
139
  var $active = $('#slideshow p.active');
140
140
 
141
- if ( $active.length == 0 ) $active = $('#slideshow p:last');
141
+ var $next = $active.next().length ? $active.next() : $('#slideshow p:first');
142
-
143
- var $next = $active.next().length ? $active.next()
144
-
145
- : $('#slideshow p:first');
146
142
 
147
143
  $active.addClass('last-active');
148
144