Team:UCLondon/Templates/Team-Style
From 2012e.igem.org
(Difference between revisions)
Line 121: | Line 121: | ||
- | var | + | var openTeamBox = function () { |
$('#shadowTeam').center(); | $('#shadowTeam').center(); | ||
var description = $(this).children().children('.description'); | var description = $(this).children().children('.description'); | ||
Line 140: | Line 140: | ||
- | var | + | var closeTeamBox = function() { |
$('#shadowTeam').toggle('slow', function() { | $('#shadowTeam').toggle('slow', function() { | ||
$(this).children('#box-content').html(loading); | $(this).children('#box-content').html(loading); | ||
Line 151: | Line 151: | ||
loading = $('#load').parent().html(); | loading = $('#load').parent().html(); | ||
- | $('body').off('click', '.team li', | + | $('body').off('click', '.team li', openTeamBox); |
- | $('body').on('click', '.team li', | + | $('body').on('click', '.team li', openTeamBox); |
- | $('body').off('click', '#close-box', | + | $('body').off('click', '#close-box', closeTeamBox); |
- | $('body').on('click', '#close-box', | + | $('body').on('click', '#close-box', closeTeamBox); |
}); | }); |
Revision as of 02:23, 21 September 2012