Difference between revisions of "Template:NYMU-Taipei2"
Line 276: | Line 276: | ||
}); | }); | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
var TotalSlides = $('.Slides').length; | var TotalSlides = $('.Slides').length; | ||
var CurrentSlide = 0; | var CurrentSlide = 0; | ||
Line 295: | Line 300: | ||
}); | }); | ||
− | function changeSlide(num){ | + | |
+ | |||
+ | var timer; | ||
+ | |||
+ | $("#Slider") | ||
+ | // when mouse enters, clear the timer if it has been set | ||
+ | .mouseenter(function() { | ||
+ | if (timer) { clearInterval(timer) } | ||
+ | }) | ||
+ | // when mouse goes out, start the slideshow | ||
+ | .mouseleave(function() { | ||
+ | timer = setInterval(function() { | ||
+ | CurrentSlide = ++CurrentSlide % TotalSlides; | ||
+ | changeSlide(CurrentSlide); | ||
+ | }, 3000); | ||
+ | }) | ||
+ | // trigger mouseleave for initial slideshow starting | ||
+ | .mouseleave(); | ||
+ | |||
+ | |||
+ | function changeSlide(num){ | ||
var SlideID = '#Slide' + num; | var SlideID = '#Slide' + num; | ||
$('.Slides').css('display', 'none'); | $('.Slides').css('display', 'none'); | ||
Line 302: | Line 327: | ||
} | } | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
}); | }); | ||
Revision as of 14:31, 13 August 2015
- Intro
- Problem
- Late Blight
- Prevention
- Detection
- Cure
- System
About Our Project
The 2015 NYMU iGEM team presents a potato defense system, an effective system that can be easily implemented by potato farmers all over the world. This system is made up of three parts: protection, detection, and cure.
Top