Line 126: | Line 126: | ||
if(y<sec2_pos-40){ | if(y<sec2_pos-40){ | ||
if (y>sec1_pos){ | if (y>sec1_pos){ | ||
+ | console.log('sec 1 supposed to move'); | ||
sec1.stop().animate({'top':y-sec1_pos},1); | sec1.stop().animate({'top':y-sec1_pos},1); | ||
} | } | ||
Line 133: | Line 134: | ||
if(y<sec3-40){ | if(y<sec3-40){ | ||
if(y>sec2_pos){ | if(y>sec2_pos){ | ||
+ | console.log('sec 2 supposed to move'); | ||
sec2.stop().animate({'top':y-sec2_pos},1); | sec2.stop().animate({'top':y-sec2_pos},1); | ||
} | } | ||
Line 140: | Line 142: | ||
if(y<sec4-40){ | if(y<sec4-40){ | ||
if(y>sec3_pos){ | if(y>sec3_pos){ | ||
+ | console.log('sec 3 supposed to move'); | ||
sec3.stop().animate({'top':y-sec3_pos},1); | sec3.stop().animate({'top':y-sec3_pos},1); | ||
} | } | ||
Line 147: | Line 150: | ||
if(y<3000){ | if(y<3000){ | ||
if(y>sec4_pos){ | if(y>sec4_pos){ | ||
+ | console.log('sec 4 supposed to move'); | ||
sec4.stop().animate({'top':y-sec4_pos},1); | sec4.stop().animate({'top':y-sec4_pos},1); | ||
} | } |
Revision as of 23:49, 17 October 2016