Template:Team:KIT-Kyoto/hp
From 2014.igem.org
(Difference between revisions)
Line 90: | Line 90: | ||
}); | }); | ||
} | } | ||
- | $("#stop").is(".stop") | + | $("#stop").click(function(){ |
+ | var stopfunc = $("#stop").is(".stop"); | ||
+ | if(stopfunc)){ | ||
clearInterval(slide1); | clearInterval(slide1); | ||
clearInterval(slide2); | clearInterval(slide2); | ||
$("#stop").removeClass('stop'); | $("#stop").removeClass('stop'); | ||
- | } | + | }else { |
- | + | ||
var loop1 = setInterval(slide1,6000); | var loop1 = setInterval(slide1,6000); | ||
var loop2 = setInterval(slide2,6000); | var loop2 = setInterval(slide2,6000); | ||
$("#stop").addClass('.stop'); | $("#stop").addClass('.stop'); | ||
+ | } | ||
}); | }); | ||
}); | }); |
Revision as of 12:44, 30 September 2014