Team:Heidelberg/Templates/Footer-Nav
From 2013.igem.org
(Difference between revisions)
Nils.kurzawa (Talk | contribs) |
m |
||
(4 intermediate revisions not shown) | |||
Line 159: | Line 159: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(function() { | $(function() { | ||
- | var items = $('.item'); | + | /*var items = $('.item'); |
for (var i = 0; i < items.length; ++i) { | for (var i = 0; i < items.length; ++i) { | ||
var dd = $(items[i]).find('ul'); | var dd = $(items[i]).find('ul'); | ||
Line 165: | Line 165: | ||
dd.css("left", ($(items[i]).innerWidth() - dd.outerWidth()) * 0.5); | dd.css("left", ($(items[i]).innerWidth() - dd.outerWidth()) * 0.5); | ||
} | } | ||
- | } | + | }*/ |
$('#nav > div').hover( | $('#nav > div').hover( | ||
function () { | function () { | ||
var $this = $(this); | var $this = $(this); | ||
+ | var offsetLeft = $this.data("offsetL") + "px"; | ||
$this.find('img.circle').stop().animate({ | $this.find('img.circle').stop().animate({ | ||
'width' :'320px', | 'width' :'320px', | ||
'height' :'320px', | 'height' :'320px', | ||
// 'top' :'0 px', | // 'top' :'0 px', | ||
- | 'left' : | + | 'left' :offsetLeft, |
'opacity' :'3.0', | 'opacity' :'3.0', | ||
},200,'easeOutBack',function(){ | },200,'easeOutBack',function(){ | ||
Line 205: | Line 206: | ||
<!-- This part is only if you want to use $...$ delimiters --> | <!-- This part is only if you want to use $...$ delimiters --> | ||
<script type="text/x-mathjax-config"> | <script type="text/x-mathjax-config"> | ||
- | MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}, TeX: {equationNumbers: { autoNumber: " | + | MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}, TeX: {equationNumbers: { autoNumber: "AMS" }}}); |
</script> | </script> | ||
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> | <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> | ||
</html> | </html> |
Latest revision as of 00:36, 29 October 2013