Template:Team:Paris Saclay/default header
From 2014.igem.org
(Difference between revisions)
m |
m |
||
Line 49: | Line 49: | ||
#footerps {margin: 2% 2% 2% 23%;width: 75%;} | #footerps {margin: 2% 2% 2% 23%;width: 75%;} | ||
- | #flags {float:right | + | #flags {float:right;} |
- | #flags a {height:43px; width: 50px; display: block; background:url(https://static.igem.org/mediawiki/2014/9/9e/Paris_Saclay_wiki-flags.png); float:right;} | + | #flags a {height:43px; width: 50px; display: block; background:url(https://static.igem.org/mediawiki/2014/9/9e/Paris_Saclay_wiki-flags.png); float:right; cursor:pointer;} |
+ | .flgbrazil {background-position-x: -10px;} | ||
+ | .flgchina {background-position-x: -70px;} | ||
+ | .flgfinland {background-position-x: -130px;} | ||
+ | .flgfrance {background-position-x: -190px;} | ||
+ | .flgitaly {background-position-x: -250px;} | ||
+ | .flgkorea {background-position-x: -310px;} | ||
+ | .flgnetherland {background-position-x: -370px;} | ||
+ | .flgnorway {background-position-x: -430px;} | ||
+ | .flgpoland {background-position-x: -490px;} | ||
+ | .flgspain {background-position-x: -550px;} | ||
+ | .flgturkey {background-position-x: -610px;} | ||
+ | .flguk {background-position-x: -670px;} | ||
.invisible {display:none;} | .invisible {display:none;} | ||
</style> | </style> | ||
Line 77: | Line 89: | ||
<script> | <script> | ||
$(document).ready(function(){ | $(document).ready(function(){ | ||
- | $(".flgbrazil").click(function(){ | + | $(".flgbrazil").click(function(){abstractTranslation('portuguese');}); |
- | $(" | + | $(".flgchina").click(function(){abstractTranslation('chinese');}); |
- | + | $(".flgfinland").click(function(){abstractTranslation('finnish');}); | |
- | }); | + | $(".flgfrance").click(function(){abstractTranslation('french');}); |
+ | $(".flgitaly").click(function(){abstractTranslation('italian');}); | ||
+ | $(".flgkorea").click(function(){abstractTranslation('korean');}); | ||
+ | $(".flgnetherland").click(function(){abstractTranslation('dutch');}); | ||
+ | $(".flgnorway").click(function(){abstractTranslation('norwegian');}); | ||
+ | $(".flgpoland").click(function(){abstractTranslation('polish');}); | ||
+ | $(".flgspain").click(function(){abstractTranslation('spanish');}); | ||
+ | $(".flgturkey").click(function(){abstractTranslation('turkish');}); | ||
+ | $(".flguk").click(function(){abstractTranslation('english');}); | ||
var actualVersion = $("#englishversion"); | var actualVersion = $("#englishversion"); | ||
var abstractTranslation = function(a) { | var abstractTranslation = function(a) { | ||
- | |||
actualVersion.addClass("invisible"); | actualVersion.addClass("invisible"); | ||
- | |||
actualVersion = $( "#"+a+"version" ); | actualVersion = $( "#"+a+"version" ); | ||
- | + | actualVersion.removeClass("invisible"); | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
}; | }; | ||
- | + | }); | |
</script> | </script> | ||
Revision as of 16:45, 8 October 2014