Team:Buenos Aires/Pruebas
From 2013.igem.org
(Difference between revisions)
Line 314: | Line 314: | ||
$('.texto').css({opacity:'0.0',display: 'none'}); | $('.texto').css({opacity:'0.0',display: 'none'}); | ||
/* show text: */ | /* show text: */ | ||
- | + | ||
- | + | loadDiv(this); | |
- | + | ||
$('#text' + currentId).css({display: 'block'}); | $('#text' + currentId).css({display: 'block'}); | ||
Line 334: | Line 333: | ||
//Load external in div | //Load external in div | ||
loadDiv = function(link) { | loadDiv = function(link) { | ||
- | + | $text_loading.show(); | |
+ | $.when($('#textObj').load($(link).attr('href')+ " #cargado")).done(function(){ | ||
+ | $text_loading.hide();});; // Load its linked page into the div | ||
return false; // And prevent it following the link | return false; // And prevent it following the link | ||
Revision as of 05:05, 2 June 2013