Difference between revisions of "Template:NYMU-Taipei2"

 
(111 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Template_All_Teams2}}
+
{{Nymu-menu2}}
 +
{{Nymu-menu}}
 +
 
 
<html>
 
<html>
  
 
<style type="text/css">
 
<style type="text/css">
  
#st {
 
position: relative;
 
height: 600px;
 
width: auto;
 
background-image: url(https://static.igem.org/mediawiki/2015/2/23/Potato-farm.gif);
 
background-size: 100% 100%;
 
z-index: -1;
 
background-color: #FCC;
 
border-top-style: solid;
 
border-right-style: solid;
 
border-bottom-style: solid;
 
border-left-style: solid;
 
border-top-width: 1pt;
 
border-right-width: 1pt;
 
border-bottom-width: 1pt;
 
border-left-width: 1pt;
 
}
 
#stc {
 
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
 
font-size: 100px;
 
font-style: normal;
 
text-align: center;
 
position: relative;
 
color: #000;
 
width: 50%;
 
margin-top: 0%;
 
margin-right: auto;
 
margin-bottom: 0px;
 
margin-left: auto;
 
height: 10%;
 
padding-bottom: 0%;
 
padding-top: 0%;
 
border-top-style: none;
 
border-right-style: none;
 
border-bottom-style: none;
 
border-left-style: none;
 
}
 
  
 
 
 
 
#container {
 
border-top-style: solid;
 
border-right-style: solid;
 
border-bottom-style: solid;
 
border-left-style: solid;
 
margin-right: auto;
 
margin-left: auto;
 
border-top-width: 0px;
 
border-right-width: 0px;
 
border-bottom-width: 0px;
 
border-left-width: 0px;
 
}
 
#header {
 
height: 100px;
 
width: 800px;
 
margin-right: auto;
 
margin-left: auto;
 
border-top-width: 0px;
 
border-right-width: 0px;
 
border-bottom-width: 0px;
 
border-left-width: 0px;
 
border-top-style: solid;
 
border-right-style: solid;
 
border-bottom-style: solid;
 
border-left-style: solid;
 
}
 
#footer {
 
height: 170px;
 
width: auto;
 
margin-right: auto;
 
margin-left: auto;
 
border-top-width: 0px;
 
border-right-width: 0px;
 
border-bottom-width: 0px;
 
border-left-width: 0px;
 
border-top-style: solid;
 
border-right-style: solid;
 
border-bottom-style: solid;
 
border-left-style: solid;
 
background-color: #339933;
 
clear: both;
 
}
 
#main {
 
height: 300px;
 
width: 800px;
 
margin-right: auto;
 
margin-left: auto;
 
border-top-width: 0px;
 
border-right-width: 0px;
 
border-bottom-width: 0px;
 
border-left-width: 0px;
 
border-top-style: solid;
 
border-right-style: solid;
 
border-bottom-style: solid;
 
border-left-style: solid;
 
clear: none;
 
}
 
 
#left {
 
height: 300px;
 
width: 400px;
 
border-top-width: 0px;
 
border-right-width: 0px;
 
border-bottom-width: 0px;
 
border-left-width: 0px;
 
border-top-style: solid;
 
border-right-style: solid;
 
border-bottom-style: solid;
 
border-left-style: solid;
 
float: left;
 
background-image: url(%E6%9C%AA%E5%91%BD%E5%90%8D-1.gif);
 
font-family: Georgia, "Times New Roman", Times, serif;
 
}
 
#right {
 
float: right;
 
height: 300px;
 
width: 400px;
 
font-family: "Arial Black", Gadget, sans-serif;
 
font-size: 24px;
 
border-top-width: 0px;
 
border-right-width: 0px;
 
border-bottom-width: 0px;
 
border-left-width: 0px;
 
border-top-style: none;
 
border-right-style: none;
 
border-bottom-style: none;
 
border-left-style: none;
 
}
 
.mainnewcontext {
 
font-family: Tahoma, Geneva, sans-serif;
 
font-style: normal;
 
padding: 50px;
 
font-size: 50px;
 
}
 
.threelane {
 
height: 600px;
 
width: 1200px;
 
border-top-style: none;
 
border-right-style: none;
 
border-bottom-style: none;
 
border-left-style: none;
 
margin-top: 0px;
 
margin-right: auto;
 
margin-bottom: 0px;
 
margin-left: auto;
 
padding: 0px;
 
position: relative;
 
background-color: #FFE
 
z-index: -1;
 
}
 
#left2 {
 
float: left;
 
height: 600px;
 
width: 350px;
 
border-top-style: none;
 
border-right-style: none;
 
border-bottom-style: none;
 
border-left-style: none;
 
font-size: 36px;
 
text-align: center;
 
z-index: -1;
 
position: relative;
 
}
 
#mid2 {
 
height: 600px;
 
width: 350px;
 
position: relative;
 
margin-right: auto;
 
margin-left: auto;
 
border-top-style: none;
 
border-right-style: none;
 
border-bottom-style: none;
 
border-left-style: none;
 
font-size: 36px;
 
text-align: center;
 
z-index: -1;
 
}
 
 
#right2 {
 
float: right;
 
height: 600px;
 
width: 350px;
 
border-top-style: none;
 
border-right-style: none;
 
border-bottom-style: none;
 
border-left-style: none;
 
font-size: 36px;
 
text-align: center;
 
z-index: -1;
 
position: relative;
 
}
 
  
 
/* Slider Styles */
 
/* Slider Styles */
Line 203: Line 13:
 
width: 100%;
 
width: 100%;
 
display: none;
 
display: none;
 +
        margin-top:0;
 +
-webkit-touch-callout: none;
 +
-webkit-user-select: none;
 +
-khtml-user-select: none;
 +
-moz-user-select: none;
 +
-ms-user-select: none;
 +
user-select: none;
 +
background-image: url(https://static.igem.org/mediawiki/2015/9/99/Nymu-Background.png);
 +
background-size: 100%, auto;
 +
     
 
}
 
}
  
Line 209: Line 29:
 
height: 100%;
 
height: 100%;
 
background-size: 100%, auto;
 
background-size: 100%, auto;
 +
 
}
 
}
  
 
#Slider #Slide0 {
 
#Slider #Slide0 {
background-image: url(https://static.igem.org/mediawiki/2013/d/d1/2013UCalgarySlider1.png);
+
position:absolute;
 
}
 
}
  
 
#Slider #Slide1 {
 
#Slider #Slide1 {
background-image: url(https://static.igem.org/mediawiki/2013/a/ac/2013UCalgarySlider2.png);
+
display: none;
+
position:absolute;
 
}
 
}
  
 
#Slider #Slide2 {
 
#Slider #Slide2 {
background-image: url(https://static.igem.org/mediawiki/2013/6/62/2013UCalgarySlider3.png);
+
position:absolute;
display: none;
+
 
}
 
}
  
 
#Slider #Slide3 {
 
#Slider #Slide3 {
background-image: url(https://static.igem.org/mediawiki/2013/7/72/2013UCalgarySlider4.png);
+
position:absolute;
display: none;
+
 
}
 
}
  
 
#Slider #Slide4 {
 
#Slider #Slide4 {
background-image: url(https://static.igem.org/mediawiki/2013/a/a2/2013UCalgarySlider5.png);
+
position:absolute;
display: none;
+
 
}
 
}
  
 
#Slider #Slide5 {
 
#Slider #Slide5 {
background-image: url(https://static.igem.org/mediawiki/2013/d/de/2013UCalgarySlider6.png);
+
position:absolute;
display: none;
+
 
}
 
}
  
#Slider #BottomLinks {
+
#Slider #Slide6 {
position: absolute;
+
position:absolute;
width: 100%;
+
padding: 0;
+
bottom: 0;
+
background: #353132;
+
text-align: center;
+
opacity: 0.61;
+
filter: alpha(opacity=61);
+
 
}
 
}
  
#Slider #BottomLinks li {
+
 
display: inline-table;
+
 
list-style: none;
+
#imgslider  {
height: 100%;
+
color: #FFFFFF;
+
        height: 50%;
font: 24px Raleway, Arial, san-serif;
+
width: 68%;
text-align: center;
+
        z-index: 3;
padding: 15px 20px;
+
        left: 18%;
 +
        top:15%;
 +
        position: absolute;
 +
        background-color:#fff;
 +
        opacity: 0;
 +
filter: alpha(opacity=0);
 +
        position:absolute;
 
}
 
}
  
#Slider #BottomLinks li:hover {
+
 
cursor: pointer;
+
text-decoration: underline;
+
}
+
  
 
#Slider .SideBar {
 
#Slider .SideBar {
Line 287: Line 105:
 
margin-left: 30px;
 
margin-left: 30px;
 
background: url(https://static.igem.org/mediawiki/2013/5/53/2013UCalgaryArrowLeft.png) top no-repeat;
 
background: url(https://static.igem.org/mediawiki/2013/5/53/2013UCalgaryArrowLeft.png) top no-repeat;
}
+
}f
  
 
#Slider #RightArrow {
 
#Slider #RightArrow {
Line 302: Line 120:
 
}
 
}
  
 +
#container {
 +
border-top-style: solid;
 +
border-right-style: solid;
 +
border-bottom-style: solid;
 +
border-left-style: solid;
 +
margin-right: auto;
 +
margin-left: auto;
 +
border-top-width: 0px;
 +
border-right-width: 0px;
 +
border-bottom-width: 0px;
 +
border-left-width: 0px;
 +
}
  
  
 +
#container2 {
 +
border-top-style: solid;
 +
border-right-style: solid;
 +
border-bottom-style: solid;
 +
border-left-style: solid;
 +
margin-right: auto;
 +
margin-left: auto;
 +
border-top-width: 0px;
 +
border-right-width: 0px;
 +
border-bottom-width: 0px;
 +
border-left-width: 0px;
 +
box-shadow:inset 0px 0px 10px 5px rgba(20%,20%,40%,0.5);
 +
}
  
 +
.maincontext {
 +
font-family: Tahoma, Geneva, sans-serif;
 +
font-style: normal;
 +
font-size: 50px;
 +
        padding:50px;
 +
}
  
 +
.subcontext {
 +
font-family:  Segoe UI, Calibri, Helvetica, sans-serif;
 +
font-style: normal;
 +
font-size: 20px;
 +
        padding-top:30px;
 +
padding-bottom:30px;
 +
padding-left:10%;
 +
padding-right:10%;
 +
line-height: 25px;
 +
    text-align: justify;
 +
}
  
 +
.subcontext2 {
 +
font-family: Segoe UI, Calibri, Helvetica, sans-serif;
 +
font-style: normal;
 +
font-size: 20px;
 +
padding-bottom:50px;
 +
padding-left:10%;
 +
padding-right:10%;
 +
line-height: 25px;
 +
    text-align: justify;
  
  
 +
}
  
 +
.threelane {
 +
height: 100%;
 +
width: 80%;
 +
margin-top: 0px;
 +
margin-right: auto;
 +
margin-bottom: 0px;
 +
margin-left: auto;
 +
padding: 0px;
 +
position: relative;
 +
        background-color: #FFF
 +
        z-index: -1;
 +
padding-bottom:10%;
 +
}
  
 +
 +
 +
 +
 +
#left2 {
 +
 +
width: 15%;
 +
        z-index: 0;
 +
        left: 21.75%;
 +
        position: absolute;
 +
box-shadow:4px 4px 3px rgba(20%,20%,40%,0.5);
 +
}
 +
 +
#mid2 {
 +
height: 100%;
 +
width: 15%;
 +
z-index: 0;
 +
margin-right: auto;
 +
margin-left: auto;
 +
        position: absoulte;
 +
box-shadow:4px 4px 3px rgba(20%,20%,40%,0.5);
 +
}
 +
 +
#right2 {
 +
 +
 +
width: 15%;
 +
        z-index: 0;
 +
        right: 21.75%;
 +
        position: absolute;
 +
box-shadow:4px 4px 3px rgba(20%,20%,40%,0.5);
 +
}
 +
 +
#left1 {
 +
 +
width: 15%;
 +
        z-index: 0;
 +
        left: 1%;
 +
        position: absolute;
 +
box-shadow:4px 4px 3px rgba(20%,20%,40%,0.5);
 +
}
 +
 +
#right1 {
 +
 +
width: 15%;
 +
        z-index: 0;
 +
        right: 1%;
 +
        position: absolute;
 +
box-shadow:4px 4px 3px rgba(20%,20%,40%,0.5);
 +
}
 +
 +
 +
 +
 +
 +
 +
 +
#box {
 +
 +
}
  
  
Line 316: Line 259:
  
  
$(document).ready(function() {
+
<script>
//Display slider for Javascript users
+
$(document).ready(function() {
 +
 +
                                $('.Slides').css('transition', 'opacity 1s ease-out');
 +
$('.Slides').css('opacity', '0');
 +
$('.Slides').css(' height', '0');
 +
$('.Slides').css('overflow', 'hidden');
 +
                                //Display slider for Javascript users
 
$('#Slider').css('display', 'block');
 
$('#Slider').css('display', 'block');
+
$('#Slider').css('opacity', '1');
 +
var TotalSlides = $('.Slides').length;
 +
var CurrentSlide = 0;
 +
CurrentSlide = CurrentSlide % TotalSlides;
 +
changeSlide(CurrentSlide);
 +
                             
 
//Set height of slider (16/5 ratio)
 
//Set height of slider (16/5 ratio)
$('#Slider').css('height', ($('body').width() / 3.2));
+
$('#Slider').css('height', ($('body').width() / 2.5));
 
 
 
//Position right/left arrows
 
//Position right/left arrows
Line 330: Line 284:
 
//Repeats for window resize
 
//Repeats for window resize
 
$(window).resize(function() {
 
$(window).resize(function() {
$('#Slider').css('height', ($('body').width() / 3.2));
+
$('#Slider').css('height', ($('body').width() / 2.5));
 
 
 
var BarHeight = $('#Slider').height() -  $('#BottomLinks').height();
 
var BarHeight = $('#Slider').height() -  $('#BottomLinks').height();
Line 343: Line 297:
 
CurrentSlide = ++CurrentSlide % TotalSlides;
 
CurrentSlide = ++CurrentSlide % TotalSlides;
 
changeSlide(CurrentSlide);
 
changeSlide(CurrentSlide);
 +
                                        if (timer) { clearInterval(timer) }
 
});
 
});
 
 
Line 348: Line 303:
 
CurrentSlide = (CurrentSlide + TotalSlides - 1) % TotalSlides;
 
CurrentSlide = (CurrentSlide + TotalSlides - 1) % TotalSlides;
 
changeSlide(CurrentSlide);
 
changeSlide(CurrentSlide);
 +
                                        if (timer) { clearInterval(timer) }
 
});
 
});
 
 
Line 356: Line 312:
 
});
 
});
 
 
function changeSlide(num){
+
var SlideID = '#Slide' + num;
+
                                     
$('.Slides').css('display', 'none');
+
 
$(SlideID).css('display', 'block');
+
                                var timer;
}
+
// when mouse enters, clear the timer if it has been set
});
+
$("#imgslider").mouseenter(function(){if (timer) { clearInterval(timer) }})
 +
                    // when mouse goes out, start the slideshow
 +
                        .mouseleave(function() {timer = setInterval(function() {CurrentSlide = ++CurrentSlide % TotalSlides;changeSlide(CurrentSlide);}, 6000);})
 +
      // trigger mouseleave for initial slideshow starting
 +
                                              .mouseleave();
 +
                                                                   
  
<script type="text/javascript">
+
                               
(function($) {
+
  
  $.fn.menumaker = function(options) {
+
                                function changeSlide(num){
     
+
var SlideID = '#Slide' + num;
      var cssmenu = $(this), settings = $.extend({
+
        title: "Menu",
+
$('.Slides').css('transition', 'opacity 1s ease-out');
        format: "dropdown",
+
$('.Slides').css('opacity', '0');
        sticky: false
+
$('.Slides').css(' height', '0');
      }, options);
+
$('.Slides').css('overflow', 'hidden');
  
      return this.each(function() {
 
        cssmenu.prepend('<div id="menu-button">' + settings.title + '</div>');
 
        $(this).find("#menu-button").on('click', function(){
 
          $(this).toggleClass('menu-opened');
 
          var mainmenu = $(this).next('ul');
 
          if (mainmenu.hasClass('open')) {
 
            mainmenu.hide().removeClass('open');
 
          }
 
          else {
 
            mainmenu.show().addClass('open');
 
            if (settings.format === "dropdown") {
 
              mainmenu.find('ul').show();
 
            }
 
          }
 
        });
 
  
        cssmenu.find('li ul').parent().addClass('has-sub');
+
$(SlideID).css('opacity', '1');
 +
//Set height of slider (16/5 ratio)
 +
$('#Slider').css('height', ($('body').width() / 2.5));
 +
  
        multiTg = function() {
 
          cssmenu.find(".has-sub").prepend('<span class="submenu-button"></span>');
 
          cssmenu.find('.submenu-button').on('click', function() {
 
            $(this).toggleClass('submenu-opened');
 
            if ($(this).siblings('ul').hasClass('open')) {
 
              $(this).siblings('ul').removeClass('open').hide();
 
            }
 
            else {
 
              $(this).siblings('ul').addClass('open').show();
 
            }
 
          });
 
        };
 
  
        if (settings.format === 'multitoggle') multiTg();
+
}
        else cssmenu.addClass('dropdown');
+
  
        if (settings.sticky === true) cssmenu.css('position', 'fixed');
 
  
        resizeFix = function() {
 
          if ($( window ).width() > 768) {
 
            cssmenu.find('ul').show();
 
          }
 
  
          if ($(window).width() <= 768) {
 
            cssmenu.find('ul').hide().removeClass('open');
 
          }
 
        };
 
        resizeFix();
 
        return $(window).on('resize', resizeFix);
 
  
      });
 
  };
 
})(jQuery);
 
  
(function($){
 
$(document).ready(function(){
 
  
$("#cssmenu").menumaker({
 
  title: "Menu",
 
  format: "multitoggle"
 
});
 
  
});
+
});
})(jQuery);
+
</script>
</script>
+
  
  
  
<div id="container">
+
                <div id="container">
 +
                       
 +
                            <div id="Slider">
 +
                        <div id="imgslider"></div>
 +
<div id="Slide0" class="Slides current"><img src="https://static.igem.org/mediawiki/2015/4/49/Ymu-slide-intro.png" style="PADDING-LEFT: 15%;padding-top:5% ;"width="70%" ></div>
 +
<div id="Slide1" class="Slides"><img src="https://static.igem.org/mediawiki/2015/9/92/Nymu-slide-Problem.jpg" style="PADDING-LEFT: 15%;padding-top:5% ;"width="70%" ></div>
 +
<div id="Slide2" class="Slides"><img src="https://static.igem.org/mediawiki/2015/3/36/Nymu-slide-patho.png" style="PADDING-LEFT: 15%;padding-top:5% ;"width="70%" ></div>
 +
<div id="Slide3" class="Slides"><img src="https://static.igem.org/mediawiki/2015/0/01/Nymu-slide-FYVE.png" style="PADDING-LEFT: 15%;padding-top:5% ;"width="70%" ></div>
 +
<div id="Slide4" class="Slides"><img src="https://static.igem.org/mediawiki/2015/7/7f/Nymu-slide-Defensin.jpg" style="PADDING-LEFT: 15%;padding-top:5% ;"width="70%" ></div>
 +
                                <div id="Slide5" class="Slides"><img src="https://static.igem.org/mediawiki/2015/f/f6/Nymu-slide-Smfc.png" style="PADDING-LEFT: 15%;padding-top:5% ;"width="70%" ></div>
 +
<div id="Slide6" class="Slides"><img src="https://static.igem.org/mediawiki/2015/4/46/Nymu-slide-D_system.jpg" style="PADDING-LEFT: 15%;padding-top:5% ;"width="70%" ></div>
 +
 +
                                <div id="LeftBar" class="SideBar">
 +
                                <div id="LeftArrow"></div></div>
 +
<div id="RightBar" class="SideBar">
 +
                                <div id="RightArrow"></div></div>
 +
  </div>
 +
                  </div>
 +
  <div id="container2">
 +
                  <div align="center" class="maincontext">About Our Project</div>
 +
<div align="center" class="subcontext">&ensp;&ensp;&ensp;&ensp;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.</div>  
  
  
 +
<div align="center" class="subcontext2">
  
 +
&ensp;&ensp;&ensp;&ensp;Our system consists of potatoes resistant to <i>Phytophthora infestans</i>, a fungus-like pathogen that causes potato late blight, by creating a competitive inhibitor that can prevent the effector protein secreted by <i>P. infestans</i> from entering the potato cell. In case that the potatoes we genetically modified cannot fend off the <i>P. infestans</i>, we designed a soil based microbial fuel cell (SMFC) with engineered bacteria on the anode of the SMFC that can detect whether the potato tuber is infected or not. If the potato is infected and detected by our SMFC, we will spread defensin, an antimicrobial peptide isolated from maca (<i>Lepidium meyenii</i>). The defensin can weaken and inhibit the growth of <i>P. infestans</i> without doing harm to the environment and human body since it does not contain heavy metals like most fungicides.
  
  
 +
</div>
  
  
<div>
 
  <div id="st">
 
    <div id="stc">
 
      <p>Fight the Blight
 
    </p>
 
    </div>
 
  </div>
 
  <div align="center" class="mainnewcontext" id="mainc">About Our Project</div>
 
  <div class="threelane" id="three lane">
 
 
 
    <div id="right2"><img src="https://static.igem.org/mediawiki/2015/2/29/Judge.jpg" width="350" height="400">
 
      <p>Judging Form</p></div>
 
    <div id="left2"><img src="https://static.igem.org/mediawiki/2015/7/7c/Exp.jpg" width="350" height="400">
 
      <p>Experiment</p></div>
 
    <div id="mid2"><img src="https://static.igem.org/mediawiki/2015/0/07/Human.jpg" width="350" height="400">
 
    <p>Policy &amp; Practice</p></div>
 
  </div>
 
</div>
 
  
  
  
<div id="Slider">
 
<div id="Slide0" class="Slides current"></div>
 
<div id="Slide1" class="Slides"></div>
 
<div id="Slide2" class="Slides"></div>
 
<div id="Slide3" class="Slides"></div>
 
<div id="Slide4" class="Slides"></div>
 
<div id="Slide5" class="Slides"></div>
 
<div id="LeftBar" class="SideBar"><div id="LeftArrow"></div></div>
 
<div id="RightBar" class="SideBar"><div id="RightArrow"></div></div>
 
<ul id="BottomLinks">
 
<li id="Link0" class="SlideLink">Intro</li><li id="Link1" class="SlideLink">Problem</li><li id="Link2" class="SlideLink">Situation</li><li id="Link3" class="SlideLink">Idea</li><li id="Link4" class="SlideLink">Solution</li><li id="Link5" class="SlideLink">Platform</li>
 
</ul>
 
</div>
 
 
<div id="footer">
 
<img src="https://static.igem.org/mediawiki/2015/7/72/NYMU_school_tag.png" width="110" height="110" class="ym" longdesc="http://web.ym.edu.tw/front/bin/home.phtml"> </div>
 
  
  
 +
                 
 +
    <div class="threelane" id="three lane">
 +
 
 +
    <div id="right2"><img src="https://static.igem.org/mediawiki/2015/b/b3/Nymu-Safety.jpg" width="100%" ></div>
  
 +
    <div id="right1"><img src="https://static.igem.org/mediawiki/2015/0/08/Nymu-Judging_form_logo.jpg" width="100%" ></div>
  
 +
  <div id="left1"><a href="https://2015.igem.org/Template:NYMU-2015project-wetlab"><img src="https://static.igem.org/mediawiki/2015/0/07/Nymu-Experiment_logo.jpg" width="100%"  ></a> </div>
 +
   
 +
  <div id="left2"><a href="https://2015.igem.org/Template:NYMU-2015project-drylab"><img src="https://static.igem.org/mediawiki/2015/3/3c/Nymu-Modeling_logo.jpg" width="100%"  ></a></div>
  
 +
<div id="mid2"><a href="https://2015.igem.org/Template:NYMU-2015project-hp"><img src="https://static.igem.org/mediawiki/2015/4/4f/Nymu-Hp_logo.jpg" width="100%"></a></div>
 +
  </div>
  
 +
 
  
  
  
 
</html>
 
</html>
 +
{{Template:Nymu-Footer}}

Latest revision as of 13:37, 27 August 2015

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.
    Our system consists of potatoes resistant to Phytophthora infestans, a fungus-like pathogen that causes potato late blight, by creating a competitive inhibitor that can prevent the effector protein secreted by P. infestans from entering the potato cell. In case that the potatoes we genetically modified cannot fend off the P. infestans, we designed a soil based microbial fuel cell (SMFC) with engineered bacteria on the anode of the SMFC that can detect whether the potato tuber is infected or not. If the potato is infected and detected by our SMFC, we will spread defensin, an antimicrobial peptide isolated from maca (Lepidium meyenii). The defensin can weaken and inhibit the growth of P. infestans without doing harm to the environment and human body since it does not contain heavy metals like most fungicides.