Template:Team:Edinburgh/Code

From 2013.igem.org

(Difference between revisions)
Line 434: Line 434:
     if(french) french.onclick=function() {$("#languages").children("div").css("display", "none"); $("#french").css("display", "block")};
     if(french) french.onclick=function() {$("#languages").children("div").css("display", "none"); $("#french").css("display", "block")};
-
var german= $("#flags img")[1];
+
var german= $("#flags img")[2];
     if(german) german.onclick=function() {$("#languages").children("div").css("display", "none"); $("#german").css("display", "block")};
     if(german) german.onclick=function() {$("#languages").children("div").css("display", "none"); $("#german").css("display", "block")};
-
     var chinese = $("#flags img")[2];
+
     var chinese = $("#flags img")[3];
     if(chinese ) chinese .onclick=function() {$("#languages").children("div").css("display", "none"); $("#chinese ").css("display", "block")};
     if(chinese ) chinese .onclick=function() {$("#languages").children("div").css("display", "none"); $("#chinese ").css("display", "block")};
-
   var polish = $("#flags img")[3];
+
   var polish = $("#flags img")[4];
     if(polish ) polish .onclick=function() {$("#languages").children("div").css("display", "none"); $("#polish ").css("display", "block")};
     if(polish ) polish .onclick=function() {$("#languages").children("div").css("display", "none"); $("#polish ").css("display", "block")};
-
     var lithuanian= $("#flags img")[4];
+
     var lithuanian= $("#flags img")[5];
     if(lithuanian) lithuanian.onclick=function() {$("#languages").children("div").css("display", "none"); $("#lithuanian").css("display", "block")};
     if(lithuanian) lithuanian.onclick=function() {$("#languages").children("div").css("display", "none"); $("#lithuanian").css("display", "block")};
-
   var bulgarian = $("#flags img")[5];
+
   var bulgarian = $("#flags img")[6];
     if(bulgarian ) bulgarian .onclick=function() {$("#languages").children("div").css("display", "none"); $("#bulgarian ").css("display", "block")};
     if(bulgarian ) bulgarian .onclick=function() {$("#languages").children("div").css("display", "none"); $("#bulgarian ").css("display", "block")};
-
     var greek = $("#flags img")[6];
+
     var greek = $("#flags img")[7];
     if(greek ) greek.onclick=function() {$("#languages").children("div").css("display", "none");  
     if(greek ) greek.onclick=function() {$("#languages").children("div").css("display", "none");  
$("#greek ").css("display", "block")};
$("#greek ").css("display", "block")};

Revision as of 15:05, 4 October 2013