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=" | + | <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=" | + | <div class="texto" id="textExt"> Hola |
- | + | ||
- | + | ||
</div> | </div> | ||
Line 308: | Line 307: | ||
- | $(".sub_menu_link").bind('click.Menu', function( | + | $(".sub_menu_link").bind('click.Menu', function(){ |
+ | loadText(this); | ||
+ | return false; | ||
- | + | }); | |
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
+ | |||
+ | }); | ||
+ | }, | ||
+ | |||
+ | 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
Buenos AiresiGem
Hola