Team:Buenos Aires/Pruebas
From 2013.igem.org
(Difference between revisions)
Line 352: | Line 352: | ||
initWindowEvent = function() { | initWindowEvent = function() { | ||
/* on window resize set the width for the menu */ | /* on window resize set the width for the menu */ | ||
- | $( | + | $("#contenedor").bind('resize.Menu' , function(e) { |
adjustImageSize($ac_bgimage); | adjustImageSize($ac_bgimage); | ||
/* calculate new width for the menu */ | /* calculate new width for the menu */ | ||
- | var new_w = $( | + | var new_w = $("#contenedor").width() - $title.outerWidth(true); |
$menu.css('width', new_w + 'px'); | $menu.css('width', new_w + 'px'); | ||
}); | }); |
Revision as of 19:27, 21 May 2013
<!DOCTYPE html>