Team:UCLondon/Templates/Team-Style

From 2012e.igem.org

(Difference between revisions)
Line 121: Line 121:
-
var openBox = function () {  
+
var openTeamBox = function () {  
   $('#shadowTeam').center();
   $('#shadowTeam').center();
   var description = $(this).children().children('.description');  
   var description = $(this).children().children('.description');  
Line 140: Line 140:
-
var closeBox = function() {
+
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', openBox);
+
   $('body').off('click', '.team li', openTeamBox);
-
   $('body').on('click', '.team li', openBox);
+
   $('body').on('click', '.team li', openTeamBox);
-
   $('body').off('click', '#close-box', closeBox);
+
   $('body').off('click', '#close-box', closeTeamBox);
-
   $('body').on('click', '#close-box', closeBox);
+
   $('body').on('click', '#close-box', closeTeamBox);
        
        
});
});

Revision as of 02:23, 21 September 2012