回答編集履歴
2
追記
test
CHANGED
@@ -12,15 +12,13 @@
|
|
12
12
|
|
13
13
|
$(this).stop().animate({width: "1000px"}).animate({width: "500px"});
|
14
14
|
|
15
|
-
p++;
|
16
|
-
|
17
15
|
} else {
|
18
16
|
|
19
17
|
$(this).stop().animate({width: "500px"}).animate({width: "1000px"});
|
20
18
|
|
21
|
-
|
19
|
+
}
|
22
20
|
|
23
|
-
|
21
|
+
p++;
|
24
22
|
|
25
23
|
});
|
26
24
|
|
1
追記
test
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
$('.s').click(function() {
|
10
10
|
|
11
|
-
if(p==0){
|
11
|
+
if(p%2===0){
|
12
12
|
|
13
13
|
$(this).stop().animate({width: "1000px"}).animate({width: "500px"});
|
14
14
|
|