Team:XMU Software/Outreach/js

From 2013.igem.org

(Difference between revisions)
(Created page with "function movetotop(){ h = window.innerHeight-180; t = $("#xmu_body").scrollTop(); if(t > h){ $('#team_navi6').show(); $('#notebook_navi5').show(); $('#safety_navi3').sho...")
 
(One intermediate revision not shown)
Line 3: Line 3:
t = $("#xmu_body").scrollTop();
t = $("#xmu_body").scrollTop();
if(t > h){
if(t > h){
-
$('#team_navi6').show();
+
-
$('#notebook_navi5').show();
+
$('#outreach_navi6').show();
-
$('#safety_navi3').show();
+
-
$('#project_navi6').show();
+
-
$('#outreach6').show();
+
}else{
}else{
-
$('#team_navi6').hide();
+
 
-
$('#notebook_navi5').hide();
+
$('#outreach_navi6').hide();
-
$('#safety_navi3').hide();
+
-
$('#project_navi6').hide();
+
-
$('#outreach6').hide();
+
}
}
}
}
Line 19: Line 13:
movetotop();
movetotop();
-
$('#outreach6').click(function(){
+
$('#outreach_navi6').click(function(){
$("#xmu_body").scrollTop(0);
$("#xmu_body").scrollTop(0);
})
})
Line 26: Line 20:
function navi1(){
function navi1(){
-
document.getElementById("outreach1").style.background="#ffd200";
+
document.getElementById("outreach_navi1").style.background="#ffd200";
}
}
function navi11(){
function navi11(){
-
document.getElementById("outreach1").style.background="#b3d465";
+
document.getElementById("outreach_navi1").style.background="#b3d465";
}
}
function navi2(){
function navi2(){
-
document.getElementById("outreach2").style.background="#ffd200";
+
document.getElementById("outreach_navi2").style.background="#ffd200";
}
}
function navi21(){
function navi21(){
-
document.getElementById("outreach2").style.background="#b3d465";
+
document.getElementById("outreach_navi2").style.background="#b3d465";
}
}
function navi3(){
function navi3(){
-
document.getElementById("outreach3").style.background="#ffd200";
+
document.getElementById("outreach_navi3").style.background="#ffd200";
}
}
function navi31(){
function navi31(){
-
document.getElementById("outreach3").style.background="#b3d465";
+
document.getElementById("outreach_navi3").style.background="#b3d465";
}
}
function navi4(){
function navi4(){
-
document.getElementById("outreach4").style.background="#ffd200";
+
document.getElementById("outreach_navi4").style.background="#ffd200";
}
}
function navi41(){
function navi41(){
-
document.getElementById("outreach4").style.background="#b3d465";
+
document.getElementById("outreach_navi4").style.background="#b3d465";
}
}
function navi5(){
function navi5(){
-
document.getElementById("outreach5").style.background="#ffd200";
+
document.getElementById("outreach_navi5").style.background="#ffd200";
}
}
function navi51(){
function navi51(){
-
document.getElementById("outreach5").style.background="#b3d465";
+
document.getElementById("outreach_navi5").style.background="#b3d465";
}
}
function navi6(){
function navi6(){
-
document.getElementById("outreach6").style.background="#ffd200";
+
document.getElementById("outreach_navi6").style.background="#ffd200";
}
}
function navi61(){
function navi61(){
-
document.getElementById("outreach6").style.background="#b3d465";
+
document.getElementById("outreach_navi6").style.background="#b3d465";
}
}

Latest revision as of 03:39, 27 October 2013

function movetotop(){ h = window.innerHeight-180; t = $("#xmu_body").scrollTop(); if(t > h){

$('#outreach_navi6').show(); }else{

$('#outreach_navi6').hide(); } } $(document).ready(function(e) {

movetotop(); $('#outreach_navi6').click(function(){ $("#xmu_body").scrollTop(0); })

}); function navi1(){

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

} function navi11(){

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

} function navi2(){

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

} function navi21(){

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

} function navi3(){

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

} function navi31(){

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

} function navi4(){

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

} function navi41(){

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

} function navi5(){

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

} function navi51(){

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

} function navi6(){

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

} function navi61(){

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

}