Team:XMU Software/Project/js

From 2013.igem.org

(Difference between revisions)
 
(4 intermediate revisions not shown)
Line 1: Line 1:
-
function project_promoter(){
+
function project_rbs(){
 +
document.getElementById("project").style.display="inline";
document.getElementById("terminator").style.display="none";
document.getElementById("terminator").style.display="none";
-
document.getElementById("RBS").style.display="none";
+
document.getElementById("RBS").style.display="inline";
-
document.getElementById("promoter").style.display="inline";
+
document.getElementById("promoter").style.display="none";
document.getElementById("protein").style.display="none";
document.getElementById("protein").style.display="none";
-
document.getElementById("brickdemo").style.display="none";
+
document.getElementById("achieve").style.display="none";
document.getElementById("enote").style.display="none";
document.getElementById("enote").style.display="none";
}
}
-
function project_rbs(){
+
function project_promoter(){
 +
document.getElementById("project").style.display="inline";
document.getElementById("terminator").style.display="none";
document.getElementById("terminator").style.display="none";
-
document.getElementById("RBS").style.display="inline";
+
document.getElementById("RBS").style.display="none";
-
document.getElementById("promoter").style.display="none";
+
document.getElementById("promoter").style.display="inline";
document.getElementById("protein").style.display="none";
document.getElementById("protein").style.display="none";
-
document.getElementById("brickdemo").style.display="none";
+
document.getElementById("achieve").style.display="none";
document.getElementById("enote").style.display="none";
document.getElementById("enote").style.display="none";
}
}
function project_terminator(){
function project_terminator(){
 +
document.getElementById("project").style.display="inline";
document.getElementById("terminator").style.display="inline";
document.getElementById("terminator").style.display="inline";
document.getElementById("RBS").style.display="none";
document.getElementById("RBS").style.display="none";
document.getElementById("promoter").style.display="none";
document.getElementById("promoter").style.display="none";
document.getElementById("protein").style.display="none";
document.getElementById("protein").style.display="none";
-
document.getElementById("brickdemo").style.display="none";
+
document.getElementById("achieve").style.display="none";
document.getElementById("enote").style.display="none";
document.getElementById("enote").style.display="none";
}
}
function project_protein(){
function project_protein(){
 +
document.getElementById("project").style.display="inline";
document.getElementById("terminator").style.display="none";
document.getElementById("terminator").style.display="none";
document.getElementById("RBS").style.display="none";
document.getElementById("RBS").style.display="none";
document.getElementById("promoter").style.display="none";
document.getElementById("promoter").style.display="none";
document.getElementById("protein").style.display="inline";
document.getElementById("protein").style.display="inline";
-
document.getElementById("brickdemo").style.display="none";
+
document.getElementById("achieve").style.display="none";
document.getElementById("enote").style.display="none";
document.getElementById("enote").style.display="none";
}
}
-
function project_brickdemo(){
+
function project_achieve(){
 +
document.getElementById("project").style.display="inline";
document.getElementById("terminator").style.display="none";
document.getElementById("terminator").style.display="none";
document.getElementById("RBS").style.display="none";
document.getElementById("RBS").style.display="none";
document.getElementById("promoter").style.display="none";
document.getElementById("promoter").style.display="none";
document.getElementById("protein").style.display="none";
document.getElementById("protein").style.display="none";
-
document.getElementById("brickdemo").style.display="inline";
+
document.getElementById("achieve").style.display="inline";
document.getElementById("enote").style.display="none";
document.getElementById("enote").style.display="none";
}
}
function project_enote(){
function project_enote(){
 +
document.getElementById("project").style.display="inline";
document.getElementById("terminator").style.display="none";
document.getElementById("terminator").style.display="none";
document.getElementById("RBS").style.display="none";
document.getElementById("RBS").style.display="none";
document.getElementById("promoter").style.display="none";
document.getElementById("promoter").style.display="none";
document.getElementById("protein").style.display="none";
document.getElementById("protein").style.display="none";
-
document.getElementById("brickdemo").style.display="none";
+
document.getElementById("achieve").style.display="none";
document.getElementById("enote").style.display="inline";
document.getElementById("enote").style.display="inline";
}
}
Line 51: Line 57:
t = $("#xmu_body").scrollTop();
t = $("#xmu_body").scrollTop();
if(t > h){
if(t > h){
-
$('#team_navi6').show();
+
 
-
$('#notebook_navi5').show();
+
-
$('#safety_navi3').show();
+
$('#project_navi6').show();
$('#project_navi6').show();
-
$('#hp_navi6').show();
+
 
}else{
}else{
-
$('#team_navi6').hide();
+
 
-
$('#notebook_navi5').hide();
+
-
$('#safety_navi3').hide();
+
$('#project_navi6').hide();
$('#project_navi6').hide();
-
$('#hp_navi6').hide();
+
 
}
}
}
}
$(document).ready(function(e) {
$(document).ready(function(e) {
-
movetotop();
 
-
$('#team_navi6').click(function(){
 
-
$("#xmu_body").scrollTop(0);
 
-
})
 
-
movetotop();
 
-
$('#notebook_navi5').click(function(){
 
-
$("#xmu_body").scrollTop(0);
 
-
})
 
-
movetotop();
 
-
$('#hp_navi6').click(function(){
 
-
$("#xmu_body").scrollTop(0);
 
-
})
 
movetotop();
movetotop();
$('#project_navi6').click(function(){
$('#project_navi6').click(function(){
-
$("#xmu_body").scrollTop(0);
 
-
})
 
-
movetotop();
 
-
$('#safety_navi3').click(function(){
 
$("#xmu_body").scrollTop(0);
$("#xmu_body").scrollTop(0);
})
})
});
});
 +
function navi0(){
 +
 +
document.getElementById("project_navi0").style.background="#ffd200";
 +
 +
}
 +
function navi01(){
 +
 +
document.getElementById("project_navi0").style.background="#b3d465";
 +
 +
}
function navi1(){
function navi1(){
-
document.getElementById("team_navi1").style.background="#ffd200";
+
 
-
document.getElementById("notebook_navi1").style.background="#ffd200";
+
-
document.getElementById("hp_navi1").style.background="#ffd200";
+
document.getElementById("project_navi1").style.background="#ffd200";
document.getElementById("project_navi1").style.background="#ffd200";
-
document.getElementById("safety_navi1").style.background="#ffd200";
+
 
}
}
function navi11(){
function navi11(){
-
document.getElementById("team_navi1").style.background="#b3d465";
+
 
-
document.getElementById("notebook_navi1").style.background="#b3d465";
+
-
document.getElementById("hp_navi1").style.background="#b3d465";
+
document.getElementById("project_navi1").style.background="#b3d465";
document.getElementById("project_navi1").style.background="#b3d465";
-
document.getElementById("safety_navi1").style.background="#b3d465";
+
 
}
}
function navi2(){
function navi2(){
-
document.getElementById("team_navi2").style.background="#ffd200";
+
 
-
document.getElementById("notebook_navi2").style.background="#ffd200";
+
-
document.getElementById("hp_navi2").style.background="#ffd200";
+
document.getElementById("project_navi2").style.background="#ffd200";
document.getElementById("project_navi2").style.background="#ffd200";
-
document.getElementById("safety_navi2").style.background="#ffd200";
+
 
}
}
function navi21(){
function navi21(){
-
document.getElementById("team_navi2").style.background="#b3d465";
+
 
-
document.getElementById("notebook_navi2").style.background="#b3d465";
+
-
document.getElementById("hp_navi2").style.background="#b3d465";
+
document.getElementById("project_navi2").style.background="#b3d465";
document.getElementById("project_navi2").style.background="#b3d465";
-
document.getElementById("safety_navi2").style.background="#b3d465";
+
 
}
}
function navi3(){
function navi3(){
-
document.getElementById("team_navi3").style.background="#ffd200";
+
 
-
document.getElementById("notebook_navi3").style.background="#ffd200";
+
-
document.getElementById("hp_navi3").style.background="#ffd200";
+
document.getElementById("project_navi3").style.background="#ffd200";
document.getElementById("project_navi3").style.background="#ffd200";
-
document.getElementById("safety_navi3").style.background="#ffd200";
+
 
}
}
function navi31(){
function navi31(){
-
document.getElementById("team_navi3").style.background="#b3d465";
+
 
-
document.getElementById("notebook_navi3").style.background="#b3d465";
+
-
document.getElementById("hp_navi3").style.background="#b3d465";
+
document.getElementById("project_navi3").style.background="#b3d465";
document.getElementById("project_navi3").style.background="#b3d465";
-
document.getElementById("safety_navi3").style.background="#b3d465";
+
 
}
}
function navi4(){
function navi4(){
-
document.getElementById("team_navi4").style.background="#ffd200";
+
 
-
document.getElementById("hp_navi4").style.background="#ffd200";
+
document.getElementById("project_navi4").style.background="#ffd200";
document.getElementById("project_navi4").style.background="#ffd200";
-
document.getElementById("notebook_navi4").style.background="#ffd200";
+
 
}
}
function navi41(){
function navi41(){
-
document.getElementById("team_navi4").style.background="#b3d465";
+
 
-
document.getElementById("hp_navi4").style.background="#b3d465";
+
document.getElementById("project_navi4").style.background="#b3d465";
document.getElementById("project_navi4").style.background="#b3d465";
-
document.getElementById("notebook_navi4").style.background="#b3d465";
+
 
}
}
function navi5(){
function navi5(){
-
document.getElementById("team_navi5").style.background="#ffd200";
+
 
-
document.getElementById("hp_navi5").style.background="#ffd200";
+
document.getElementById("project_navi5").style.background="#ffd200";
document.getElementById("project_navi5").style.background="#ffd200";
-
document.getElementById("notebook_navi5").style.background="#ffd200";
+
 
}
}
function navi51(){
function navi51(){
-
document.getElementById("team_navi5").style.background="#b3d465";
+
 
-
document.getElementById("hp_navi5").style.background="#b3d465";
+
document.getElementById("project_navi5").style.background="#b3d465";
document.getElementById("project_navi5").style.background="#b3d465";
-
document.getElementById("notebook_navi5").style.background="#b3d465";
+
 
}
}
function navi6(){
function navi6(){
document.getElementById("project_navi6").style.background="#ffd200";
document.getElementById("project_navi6").style.background="#ffd200";
-
document.getElementById("hp_navi6").style.background="#ffd200";
+
-
document.getElementById("team_navi6").style.background="#ffd200";
+
}
}
function navi61(){
function navi61(){
document.getElementById("project_navi6").style.background="#b3d465";
document.getElementById("project_navi6").style.background="#b3d465";
-
document.getElementById("hp_navi6").style.background="#b3d465";
+
 
-
document.getElementById("team_navi6").style.background="#b3d465";
+
}
}

Latest revision as of 03:08, 27 October 2013

function project_rbs(){ document.getElementById("project").style.display="inline"; document.getElementById("terminator").style.display="none"; document.getElementById("RBS").style.display="inline"; document.getElementById("promoter").style.display="none"; document.getElementById("protein").style.display="none"; document.getElementById("achieve").style.display="none"; document.getElementById("enote").style.display="none"; } function project_promoter(){ document.getElementById("project").style.display="inline"; document.getElementById("terminator").style.display="none"; document.getElementById("RBS").style.display="none"; document.getElementById("promoter").style.display="inline"; document.getElementById("protein").style.display="none"; document.getElementById("achieve").style.display="none"; document.getElementById("enote").style.display="none"; } function project_terminator(){ document.getElementById("project").style.display="inline"; document.getElementById("terminator").style.display="inline"; document.getElementById("RBS").style.display="none"; document.getElementById("promoter").style.display="none"; document.getElementById("protein").style.display="none"; document.getElementById("achieve").style.display="none"; document.getElementById("enote").style.display="none"; } function project_protein(){ document.getElementById("project").style.display="inline"; document.getElementById("terminator").style.display="none"; document.getElementById("RBS").style.display="none"; document.getElementById("promoter").style.display="none"; document.getElementById("protein").style.display="inline"; document.getElementById("achieve").style.display="none"; document.getElementById("enote").style.display="none"; } function project_achieve(){ document.getElementById("project").style.display="inline"; document.getElementById("terminator").style.display="none"; document.getElementById("RBS").style.display="none"; document.getElementById("promoter").style.display="none"; document.getElementById("protein").style.display="none"; document.getElementById("achieve").style.display="inline"; document.getElementById("enote").style.display="none"; } function project_enote(){ document.getElementById("project").style.display="inline"; document.getElementById("terminator").style.display="none"; document.getElementById("RBS").style.display="none"; document.getElementById("promoter").style.display="none"; document.getElementById("protein").style.display="none"; document.getElementById("achieve").style.display="none"; document.getElementById("enote").style.display="inline"; } function movetotop(){ h = window.innerHeight-180; t = $("#xmu_body").scrollTop(); if(t > h){

$('#project_navi6').show();

}else{

$('#project_navi6').hide();

} } $(document).ready(function(e) { movetotop(); $('#project_navi6').click(function(){ $("#xmu_body").scrollTop(0); }) }); function navi0(){

document.getElementById("project_navi0").style.background="#ffd200";

} function navi01(){

document.getElementById("project_navi0").style.background="#b3d465";

} function navi1(){

document.getElementById("project_navi1").style.background="#ffd200";

} function navi11(){

document.getElementById("project_navi1").style.background="#b3d465";

} function navi2(){

document.getElementById("project_navi2").style.background="#ffd200";

} function navi21(){

document.getElementById("project_navi2").style.background="#b3d465";

} function navi3(){

document.getElementById("project_navi3").style.background="#ffd200";

} function navi31(){

document.getElementById("project_navi3").style.background="#b3d465";

} function navi4(){

document.getElementById("project_navi4").style.background="#ffd200";

} function navi41(){

document.getElementById("project_navi4").style.background="#b3d465";

} function navi5(){

document.getElementById("project_navi5").style.background="#ffd200";

} function navi51(){

document.getElementById("project_navi5").style.background="#b3d465";

} function navi6(){ document.getElementById("project_navi6").style.background="#ffd200";

} function navi61(){ document.getElementById("project_navi6").style.background="#b3d465";

}