Template:Team:BGU Israel/javascript.js
From 2014.igem.org
var img_count=0;
function goToByScroll(id) { $('html,body').animate({ scrollTop: $("#" + id).offset().top }, 'slow'); }
function change_pic() { img_count=(img_count+1)%7; var figure1 = document.getElementById("figure1"); switch(img_count) {
case 0:
figure1.src = ""; break; case 1: figure1.src = ""; break;
case 2:
figure1.src = ""; break;
case 3:
figure1.src = ""; break;
case 4:
figure1.src = ""; break;
case 5:
figure1.src = ""; break;
case 6:
figure1.src = ""; break;
} } function change_pic_artificial() { img_count=(img_count+1)%5; var figure1 = document.getElementById("figure1"); switch(img_count) {
case 0:
figure1.src = ""; break; case 1: figure1.src = ""; break;
case 2:
figure1.src = ""; break;
case 3:
figure1.src = ""; break;
case 4:
figure1.src = ""; break;
}
}
function change_pic_hormone() {
img_count=(img_count+1)%4;
var figure1 = document.getElementById("figure1");
switch(img_count) {
case 0:
figure1.src = ""; break; case 1: figure1.src = ""; break;
case 2:
figure1.src = ""; break;
case 3:
figure1.src = ""; break;
}
}
function change_pic_intelligent() {
img_count=(img_count+1)%9;
var figure1 = document.getElementById("figure1");
switch(img_count) {
case 0:
figure1.src = ""; break; case 1: figure1.src = ""; break;
case 2:
figure1.src = ""; break;
case 3:
figure1.src = ""; break;
case 4:
figure1.src = ""; break;
case 5:
figure1.src = ""; break;
case 6:
figure1.src = ""; break;
case 7:
figure1.src = ""; break;
case 8:
figure1.src = ""; break;
} } function test(url){ document.getElementById("pdfObj").setAttribute('data',url); }
var current="april"; function show(idDiv){ $(current).hide(); $(idDiv).show(); current=idDiv; } function menu() {
if($('.left-menu').is(':visible')) { $('.left-menu').hide(); $('.right-menu').hide(); document.getElementById('wiki_menu_button').style.opacity= '0.4'; }else{ $('.left-menu').show(); $('.right-menu').show(); document.getElementById('wiki_menu_button').style.opacity= '1.0'; }}"
}