Team:Buenos Aires/Pruebas

From 2013.igem.org

(Difference between revisions)
Line 6: Line 6:
         <meta name="keywords" content="biosensing, igem, buenos aires, UBA, arsenic"/>
         <meta name="keywords" content="biosensing, igem, buenos aires, UBA, arsenic"/>
<link rel="stylesheet" type="text/css" rel="stylesheet" href="https://2013.igem.org/Team:Buenos_Aires/css/style.css?action=raw&ctype=text/css" />
<link rel="stylesheet" type="text/css" rel="stylesheet" href="https://2013.igem.org/Team:Buenos_Aires/css/style.css?action=raw&ctype=text/css" />
-
 
<link  href="http://fonts.googleapis.com/css?family=PT+Sans+Narrow:regular,bold" rel="stylesheet" type="text/css" />
<link  href="http://fonts.googleapis.com/css?family=PT+Sans+Narrow:regular,bold" rel="stylesheet" type="text/css" />
Line 313: Line 312:
$('.texto').css({opacity:'0.0',display: 'none'});
$('.texto').css({opacity:'0.0',display: 'none'});
/* show text: */
/* show text: */
-
                                                 
+
                                                  $text_loading.show();
loadDiv(this);
loadDiv(this);
-
+
$text_loading.hide(); // Load its linked page into the div
$('#text' + currentId).css({display: 'block'});
$('#text' + currentId).css({display: 'block'});
$('#text' + currentId).stop()
$('#text' + currentId).stop()
Line 331: Line 330:
//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 $.Deferred(
 +
function(dfd) {
 +
 +
$('#textObj').load($(link).attr('href')+ " #cargado");
 +
 +
}
 +
 +
).promise();
},
},

Revision as of 14:31, 5 June 2013

iGem Buenos Aires

Background

Buenos AiresiGem