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 */ | ||
- | $( | + | $(window).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 = $(window).width() - $title.outerWidth(true); |
$menu.css('width', new_w + 'px'); | $menu.css('width', new_w + 'px'); | ||
}); | }); |
Revision as of 19:30, 21 May 2013
<!DOCTYPE html>