Team:Heidelberg/Templates/Footer-Start
From 2013.igem.org
(Difference between revisions)
Nils.kurzawa (Talk | contribs) |
m |
||
(10 intermediate revisions not shown) | |||
Line 4: | Line 4: | ||
<script src="https://2013.igem.org/Team:Heidelberg/Templates/holderjs?action=raw&ctype=text/javascript"></script> | <script src="https://2013.igem.org/Team:Heidelberg/Templates/holderjs?action=raw&ctype=text/javascript"></script> | ||
<script src="https://2013.igem.org/Team:Heidelberg/Templates/easing-js?action=raw&ctype=text/javascript"></script> | <script src="https://2013.igem.org/Team:Heidelberg/Templates/easing-js?action=raw&ctype=text/javascript"></script> | ||
- | |||
- | |||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(function() { | $(function() { | ||
+ | |||
$('#nav > div').hover( | $('#nav > div').hover( | ||
function () { | function () { | ||
var $this = $(this); | var $this = $(this); | ||
- | $this.find('img').stop().animate({ | + | $this.find('img.circle').stop().animate({ |
- | 'width' :' | + | 'width' :'350px', |
- | 'height' :' | + | 'height' :'350px', |
'top' :'-25px', | 'top' :'-25px', | ||
'left' :'-25px', | 'left' :'-25px', | ||
Line 26: | Line 25: | ||
var $this = $(this); | var $this = $(this); | ||
$this.find('ul').fadeOut(500); | $this.find('ul').fadeOut(500); | ||
- | $this.find('img').stop().animate({ | + | $this.find('img.circle').stop().animate({ |
'width' :'52px', | 'width' :'52px', | ||
'height' :'52px', | 'height' :'52px', | ||
Line 41: | Line 40: | ||
'container' : 'body', | 'container' : 'body', | ||
}); | }); | ||
+ | // hide all individual language boxes then pull up the first ("english") | ||
+ | $("div.wc_Translation").hide(); | ||
+ | $("div.english").show(); | ||
+ | $(".lang input[name='langOptions']").change(function(e){ | ||
+ | var chosenLang = $(e.delegateTarget).attr("value"); | ||
+ | jQuery("#languageTexts div").hide(); | ||
+ | jQuery(chosenLang).show(); | ||
+ | }); | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
}); | }); | ||
- | |||
- | |||
</script> | </script> | ||
</html> | </html> |
Latest revision as of 22:56, 26 October 2013