Team:Buenos Aires/Pruebas
From 2013.igem.org
(Difference between revisions)
Line 43: | Line 43: | ||
color:#FFF; | color:#FFF; | ||
border:none; | border:none; | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
} | } | ||
Line 123: | Line 115: | ||
<!--Objetive--> | <!--Objetive--> | ||
<!-- <iframe class="restricted" id="textObj" scrolling="no"--> | <!-- <iframe class="restricted" id="textObj" scrolling="no"--> | ||
- | + | <div class="text_loading">HOLA</div> | |
<div class="texto" id="textObj"> | <div class="texto" id="textObj"> | ||
+ | |||
<!--<iframe name="textObjetivo" src="2013.igem.org/Team:Buenos_Aires/blanco"></iframe>--> | <!--<iframe name="textObjetivo" src="2013.igem.org/Team:Buenos_Aires/blanco"></iframe>--> | ||
- | + | ||
</div> | </div> | ||
Line 169: | Line 162: | ||
<script src="https://2013.igem.org/Team:Buenos_Aires/css/jquery.pageslide.js?action=raw&ctype=text/js"></script> | <script src="https://2013.igem.org/Team:Buenos_Aires/css/jquery.pageslide.js?action=raw&ctype=text/js"></script> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
Line 186: | Line 170: | ||
$ac_bgimage = $ac_background.find('.ac_bgimage'), | $ac_bgimage = $ac_background.find('.ac_bgimage'), | ||
$ac_loading = $ac_background.find('.ac_loading'), | $ac_loading = $ac_background.find('.ac_loading'), | ||
+ | $text_loading = $('.text_loading'); | ||
$ac_content = $('#ac_content'), | $ac_content = $('#ac_content'), | ||
Line 219: | Line 204: | ||
5- initializes the menu items events | 5- initializes the menu items events | ||
*/ | */ | ||
+ | linkClickInit(); | ||
$ac_loading.show();//show loading status image | $ac_loading.show();//show loading status image | ||
$.when(loadImages()).done(function(){ | $.when(loadImages()).done(function(){ | ||
Line 232: | Line 218: | ||
}); | }); | ||
}, | }, | ||
+ | //Load external in div | ||
+ | loadDiv = function(link) { | ||
+ | $('#textObj').load($(link).attr('href')+ " #cargado"); // Load its linked page into the div | ||
+ | return false; // And prevent it following the link | ||
+ | |||
+ | }, | ||
+ | //when a link in sub menu is clicked | ||
+ | linkClickInit = function() { | ||
+ | $('.ac_subitem a').click(function(){ | ||
+ | $text_loading.show(); | ||
+ | $.when(loadDiv(this)).done(function(){ | ||
+ | $text_loading.hide(); | ||
+ | }); | ||
+ | }); | ||
+ | }, | ||
+ | |||
+ | |||
+ | |||
showBGImage = function() { | showBGImage = function() { | ||
return $.Deferred( | return $.Deferred( |
Revision as of 04:47, 2 June 2013
Buenos AiresiGem
HOLA