Template:Team:Edinburgh/Code
From 2013.igem.org
(Difference between revisions)
Hristianita (Talk | contribs) |
Hristianita (Talk | contribs) |
||
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")[ | + | 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")[ | + | 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")[ | + | 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")[ | + | 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")[ | + | 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")[ | + | 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