Team:Buenos Aires
From 2013.igem.org
(Difference between revisions)
Line 8: | Line 8: | ||
<link href="http://fonts.googleapis.com/css?family=PT+Sans+Narrow:regular,bold" rel="stylesheet" type="text/css" /> <!-- Font --> | <link href="http://fonts.googleapis.com/css?family=PT+Sans+Narrow:regular,bold" rel="stylesheet" type="text/css" /> <!-- Font --> | ||
- | |||
<style type ='text/css'> | <style type ='text/css'> | ||
Line 283: | Line 282: | ||
var init = function() { | var init = function() { | ||
loadPage(); | loadPage(); | ||
- | + | initWindowEvent(); | |
}, | }, | ||
loadPage = function() { | loadPage = function() { | ||
Line 322: | Line 321: | ||
slideOutMenu = function() { | slideOutMenu = function() { | ||
/* calculate new width for the menu */ | /* calculate new width for the menu */ | ||
- | var new_w = 1024 - $title.outerWidth(true) - 15; | + | if($("#contenedor").width() > 1100){ |
+ | var new_w = $("#contenedor").width() - $title.outerWidth(true) - 15; | ||
+ | } else { | ||
+ | var new_w = 1024 - $title.outerWidth(true) - 15; | ||
+ | } | ||
/* All links blank */ | /* All links blank */ | ||
$("a").css('color', '#FFF'); | $("a").css('color', '#FFF'); | ||
Line 509: | Line 512: | ||
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) - 15; |
$menu.css('width', new_w + 'px'); | $menu.css('width', new_w + 'px'); | ||
}); | }); | ||
Line 517: | Line 520: | ||
$img.css({ | $img.css({ | ||
- | width : | + | width : $(window).width + 'px', |
height : $(window).height + 'px', | height : $(window).height + 'px', | ||
Revision as of 14:20, 15 September 2013