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" />
 +
Line 78: Line 79:
toxic pollutants in water</li>
toxic pollutants in water</li>
<li><a class="sub_menu_link" id="Obj" href="_objetive">Objetive</a></li>
<li><a class="sub_menu_link" id="Obj" href="_objetive">Objetive</a></li>
-
<li><a class="sub_menu_link" id="Mot" href="#nada">Motivation</a></li>
+
<li><a class="sub_menu_link" id="Mot" href="prueba">Motivation</a></li>
<!-- <li><a class="sub_menu_link" id="App" href="#nada">Application</a></li>-->
<!-- <li><a class="sub_menu_link" id="App" href="#nada">Application</a></li>-->
</ul>
</ul>
Line 117: Line 118:
<!-- <iframe class="restricted" id="textObj" scrolling="no"-->
<!-- <iframe class="restricted" id="textObj" scrolling="no"-->
<div class="text_loading"></div>
<div class="text_loading"></div>
-
<div class="texto" id="textObj">
+
<div class="texto" id="textExt"> Hola
-
 
+
-
<!--<iframe name="textObjetivo" src="2013.igem.org/Team:Buenos_Aires/blanco"></iframe>-->
+
</div>
</div>
Line 308: Line 307:
-
$(".sub_menu_link").bind('click.Menu', function(e){
+
$(".sub_menu_link").bind('click.Menu', function(){
 +
loadText(this);
 +
return false;
-
var currentId = $(this).attr('id');
+
});
-
/* all other text display is none*/
 
-
$('.texto').css({opacity:'0.0',display: 'none'});
 
-
new_link = $(this).attr('href')+ " #cargado";
 
-
$text_loading.show();
 
-
 
-
$('#textObj').load(new_link, function() {
 
-
/* hide text: */
 
-
                                        $text_loading.hide();
 
-
$('#text' + currentId).css({display: 'block'});
 
-
$('#text' + currentId).stop()
 
-
.animate({opacity: '1'}, 1400, function(){});
 
-
});
 
 +
 +
});
 +
},
 +
 +
loadText = function(link) {
 +
 +
/* Change opacity for later animatation*/
 +
$('.texto').css({opacity:'0.0'});
 +
 +
new_link = $(link).attr('href')+ " #external";
 +
$text_loading.show();
 +
 +
$('#textExt').load(new_link, function() {
 +
/* hide loading text: */
 +
                                        $text_loading.hide();
 +
/*show external div in textExt*/
 +
$('#textExt').css({display: 'block'});
 +
$('#textExt').stop()
 +
.animate({opacity: '1'}, 1400, function(){});
 +
/*Bind function recursivily in the links of the external*/
 +
 +
$('.texto a').bind('click.Menu', function(){
 +
loadText(this);
return false;
return false;
 +
});
});
});
-
+
 
-
+
-
});
+
},
},

Revision as of 16:35, 6 June 2013

iGem Buenos Aires

Background

Buenos AiresiGem

Hola