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