case '/Team:TU_Eindhoven/Collaborations/CloningGuide':
case '/Team:TU_Eindhoven/Collaborations/CloningGuide':
−
submenu = 5;
+
submenu = 7;
break;
break;
case '/Team:TU_Eindhoven/Collaborations/AmoyNewsletter':
case '/Team:TU_Eindhoven/Collaborations/AmoyNewsletter':
−
submenu = 5;
+
submenu = 7;
break;
break;
case '/Team:TU_Eindhoven/Team/Sponsors':
case '/Team:TU_Eindhoven/Team/Sponsors':
−
submenu = 6;
+
submenu = 8;
break;
break;
}; // "submenu" contains the number of the submenu to be shown by default (or 0 for none).
}; // "submenu" contains the number of the submenu to be shown by default (or 0 for none).
Revision as of 13:29, 28 August 2015
$(document).ready(function() {
//uitklap zooi van hans JW is een BITCH HANS is CRACKIE
$('.spoilerbutton').click(function() {
var id = "spoiler" + $(this).attr("id").match(/\d+/);
if ($(this).attr("src").indexOf("Uitgeklapt") != -1) {
$(this).attr("src","https://static.igem.org/mediawiki/2015/8/87/TU_Eindhoven_Ingeklapt.png");
$('#' + id).slideToggle();
} else {
$(this).attr("src","https://static.igem.org/mediawiki/2015/6/65/TU_Eindhoven_Uitgeklapt.png");
$('#' + id).slideToggle();
};
var element = $(this);
element.css("pointer-events","none");
setTimeout(function(){element.css("pointer-events","auto")},400);
});
//scroll zooi van hans
jQuery(window).on("hashchange", function () {
window.scrollTo(window.scrollX, window.scrollY - 100);
});
// Get current Page
locus=$(location).attr('pathname'); submenu = 0;
switch (locus) {
case '/Team:TU_Eindhoven':
submenu = 1;
break;
case '/Team:TU_Eindhoven/Team':
submenu = 2;
break;
case '/Team:TU_Eindhoven/Team/Members':
submenu = 2;
break;
case '/Team:TU_Eindhoven/Team/Supervisors':
submenu = 2;
break;
case '/Team:TU_Eindhoven/Attributions':
submenu = 2;
break;
case '/Team:TU_Eindhoven/Description':
submenu = 3;
break;
case '/Team:TU_Eindhoven/Project/Design':
submenu = 3;
break;
case '/Team:TU_Eindhoven/Project/Experimental_Approach':
submenu = 3;
break;
case '/Team:TU_Eindhoven/Notebook':
submenu = 3;
break;
case '/Team:TU_Eindhoven/Project/Interlab':
submenu = 3;
break;
case '/Team:TU_Eindhoven/Results':
submenu = 4;
break;
case '/Team:TU_Eindhoven/Project/Modelling':
submenu = 5;
break;
case '/Team:TU_Eindhoven/Practices':
submenu = 6;
break;
case '/Team:TU_Eindhoven/Policy_Practices/Timeline':
submenu = 6;
break;
case '/Team:TU_Eindhoven/Policy_Practices/Educational_outreach':
submenu = 6;
break;
case '/Team:TU_Eindhoven/Policy_Practices/Application_scenarios':
submenu = 6;
break;
case '/Team:TU_Eindhoven/Collaborations':
submenu = 7;
break;
case '/Team:TU_Eindhoven/Collaborations/CloningGuide':
submenu = 7;
break;
case '/Team:TU_Eindhoven/Collaborations/AmoyNewsletter':
submenu = 7;
break;
case '/Team:TU_Eindhoven/Team/Sponsors':
submenu = 8;
break;
}; // "submenu" contains the number of the submenu to be shown by default (or 0 for none).
// icon
var link = document.createElement('link');
link.type = 'image/x-icon';
link.rel = 'shortcut icon';
link.href = 'https://static.igem.org/mediawiki/2015/4/4a/Logo_Eindhoven_small.png';
document.getElementsByTagName('head')[0].appendChild(link);
//background
$("