Team:Buenos Aires/Pruebas
From 2013.igem.org
(Difference between revisions)
Line 302: | Line 302: | ||
/* all other text display is none*/ | /* all other text display is none*/ | ||
$('.texto').css({opacity: '0.0', display: 'none'}); | $('.texto').css({opacity: '0.0', display: 'none'}); | ||
- | + | ||
return false; | return false; | ||
}); | }); | ||
Line 315: | Line 315: | ||
$('.texto').css({opacity:'0.0',display: 'none'}); | $('.texto').css({opacity:'0.0',display: 'none'}); | ||
- | + | new_link = $(this).attr('href')+ " #cargado"; | |
- | + | $text_loading.show(); | |
- | $('#text' + currentId).css({display: 'block'}); | + | |
- | + | $('#textObj').load(new_link, function() { | |
- | + | /* hide text: */ | |
+ | $text_loading.hide(); | ||
+ | $('#text' + currentId).css({display: 'block'}); | ||
+ | $('#text' + currentId).stop() | ||
+ | .animate({opacity: '1'}, 1400, function(){}); | ||
+ | }); | ||
+ | |||
Line 328: | Line 334: | ||
}); | }); | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
}, | }, | ||
Revision as of 16:03, 5 June 2013