Difference between revisions of "Team:Lethbridge HS"

Line 36: Line 36:
 
                  
 
                  
 
                 function functionBees(){
 
                 function functionBees(){
               
+
                  var cookieValue = null;
 +
                    cookieValue = getCookie("projectType");
 
                 setCookie("projectType", "1", 365);
 
                 setCookie("projectType", "1", 365);
 
   alert("bees");
 
   alert("bees");
Line 42: Line 43:
 
                 }
 
                 }
 
                 function functionBiofilms(){
 
                 function functionBiofilms(){
 +
var cookieValue = null;
 +
                    cookieValue = getCookie("projectType");
 
                     setCookie("projectType", "2", 365);
 
                     setCookie("projectType", "2", 365);
 
   alert("biofilms");
 
   alert("biofilms");
 
                 }
 
                 }
 
   
 
   
 +
               
 +
      function setCookie(cname, cvalue, exdays) {
 +
    var d = new Date();
 +
    d.setTime(d.getTime() + (exdays*24*60*60*1000));
 +
    var expires = "expires="+d.toUTCString();
 +
    document.cookie = cname + "=" + cvalue + "; " + expires;
 +
}
 +
             
 +
                   
 +
         
 +
          function getCookie(cname) {
 +
    var name = cname + "=";
 +
    var ca = document.cookie.split(';');
 +
    for(var i=0; i<ca.length; i++) {
 +
        var c = ca[i];
 +
        while (c.charAt(0)==' ') c = c.substring(1);
 +
        if (c.indexOf(name) == 0) return c.substring(name.length,c.length);
 +
    }
 +
    return "";
 +
}         
 +
           
 +
             
 +
                   
 +
   
 +
 +
                    function makeBiofilms(){
 +
document.getElementById("nswitchIcon").style.backgroundColor = "#31B2DE";
 +
document.getElementById("coloredTitle").style.color = "#31B2DE";
 +
                  document.getElementById("titleSlide").style.backgroundImage = "url(https://static.igem.org/mediawiki/2015/7/7e/LethHS2015_biofilms_intro_back.jpg)";
 +
                        jQuery("#mainTitleText").text('Biofilms!!!');
 +
                    jQuery("#coloredTitle").text('Biofilms');
 +
                    jQuery("#slide1Title").text('Biofilm');
 +
                    jQuery("#slide1Paragraph").text('For years, bacterial biofilms have been a cause for concern in medicine. Biofilms are comprised of colonial microorganisms that can adhere to almost any surface with adequate moisture and nutrients. Biofilms often harbour pathogens, and can be extremely problematic in clinical settings. 65% of all hospital acquired infections can be attributed to pathogenic biofilms. Current methods to destroy biofilms include antimicrobial agents and hydraulic flushing. These are ineffective because biofilms are surrounded by a matrix of sugars and DNA. We intend to create an all-purpose biological counterattack capable of dispersing and eliminating a wide variety of biofilms by utilizing enzymes to destroy the structures within. This will be achieved through the secretion of dextranase, which degrades the exopolymeric matrix, and DNase, that targets the extracellular DNA responsible for maintaining biofilm structure. This double phased attack will be highly efficient compared to current removal methods.');
 +
                    document.getElementById("projectIcon").src ="https://static.igem.org/mediawiki/2015/4/4b/LethHS2015_Plasmid.png";
 +
                    document.getElementById("projectSwitchIcon").src = "https://static.igem.org/mediawiki/2015/8/88/LethHS2015_Varroa_icon.png";
 +
                    document.getElementById("slide1Image").src = "images/408.jpg";
 +
                    jQuery("#mainTitleText").style.color("#31B2DE");
 +
                }
 +
                function makeBees(){
 +
document.getElementById("nswitchIcon").style.backgroundColor = "#FFE545";
 +
document.getElementById("coloredTitle").style.color = "#FFE545";
 +
                  document.getElementById("titleSlide").style.backgroundImage = "url(https://static.igem.org/mediawiki/2015/6/6c/LethHS2015_bees_intro_back.jpg)";
 +
                        jQuery("#mainTitleText").text('Lethbridge High School iGEM');
 +
                    jQuery("#coloredTitle").text('Varroa');
 +
                    jQuery("#slide1Title").text('Introduction');
 +
                    jQuery("#slide1Paragraph").text('The top 100 food crops produced provide 90% of the world’s nutrition. 70% of these crops are pollinated by bees. A phenomenon called Colony Collapse Disorder (CCD) has decimated honeybee colonies across the world, halving the number of productive colonies worldwide. One of the main factors hypothesized to contribute to CCD is the mite and viral vector Varroa destructor. While feeding on the bee’s hemolymph, Varroa destructor expels RNA viruses into the bee crippling colony’s strength. Current commercial methods to eradicate Varroa have seen a gradual development of resistance in treated populations. Using synthetic biology, we plan to target Varroa more effectively by directly delivering the miticide, oxalic acid into Varroa and utilizing RNA interference to eliminate Varroa populations within commercial hives.');
 +
                    document.getElementById("projectIcon").src ="https://static.igem.org/mediawiki/2015/8/88/LethHS2015_Varroa_icon.png";
 +
                    document.getElementById("projectSwitchIcon").src = "https://static.igem.org/mediawiki/2015/4/4b/LethHS2015_Plasmid.png";
 +
                    document.getElementById("slide1Image").src = "https://static.igem.org/mediawiki/2015/4/4d/LethHS2015_bees_intro_slide1_pic.jpg";
 +
                    jQuery("#mainTitleText").style.color("#FFE545");
 +
                }
 +
               
 +
                             
 +
      jQuery(document).ready(function() {
 +
                     
 +
                        jQuery("#projectTitle").addClass("appear");
 +
   
 +
                    var s = jQuery(".menu");
 +
    var pos = s.position(); 
 +
           
 +
    jQuery(window).scroll(function() {
 +
        var windowpos = jQuery(window).scrollTop(); 
 +
         
 +
        if (windowpos >= 100) {
 +
           
 +
            s.addClass("makeNavBarColor");
 +
           
 +
        } else {
 +
         
 +
            s.removeClass("makeNavBarColor");
 +
           
 +
        }
 +
     
 +
    }); 
 +
 +
 +
                        var cookieVal = getCookie("projectType");
 +
                     
 +
                        if (cookieVal=="2"){
 +
alert("biofilms");
 +
                            makeBiofilms();
 +
                        }
 +
                        if (cookieVal=="1"){
 +
alert("bees");
 +
                            makeBees();
 +
                        }
 +
                           
 +
});
 +
                               
 
                  
 
                  
 
                  
 
                  
Line 76: Line 168:
 
                          
 
                          
 
                         <div class="col-md-6 col-sm-6 col-xs-12">
 
                         <div class="col-md-6 col-sm-6 col-xs-12">
                         <a href="https://2015.igem.org/Team:Lethbridge_HS/Introduction"><div  style="margin-top:5%;" onclick="functionBiofilms()" class="switchButton"><img id="choosePic" src="https://static.igem.org/mediawiki/2015/4/4b/LethHS2015_Plasmid.png" class="img-responsive"></div>   
+
                         <a href="#"><div  style="margin-top:5%;" onclick="functionBiofilms()" class="switchButton"><img id="choosePic" src="https://static.igem.org/mediawiki/2015/4/4b/LethHS2015_Plasmid.png" class="img-responsive"></div>   
 
                         </div>
 
                         </div>
 
                             </a>
 
                             </a>
 
                         <div class="col-md-6 col-sm-6 col-xs-12">
 
                         <div class="col-md-6 col-sm-6 col-xs-12">
                         <a href="https://2015.igem.org/Team:Lethbridge_HS/Introduction"><div onclick="functionBees()" class="switchButton" style="background-color:#FFE545; margin-top:5%;"><img id="choosePic" src="https://static.igem.org/mediawiki/2015/8/88/LethHS2015_Varroa_icon.png" class="img-responsive"></div>   
+
                         <a href="#"><div onclick="functionBees()" class="switchButton" style="background-color:#FFE545; margin-top:5%;"><img id="choosePic" src="https://static.igem.org/mediawiki/2015/8/88/LethHS2015_Varroa_icon.png" class="img-responsive"></div>   
 
                         </div></a>
 
                         </div></a>
 
                          
 
                          

Revision as of 23:43, 10 September 2015

Biofilms and Beyond

This year we chose to tackle two projects: Bees and Biofilms

You can click on one of the icons above to learn about that project.

You can switch between the projects later on by clicking the Bee/Biofilms icon in the nivagation bar