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