Team:Freiburg/Templates/header

From 2011.igem.org

(Difference between revisions)
Line 10: Line 10:
  if (url.search('/') >= 0){
  if (url.search('/') >= 0){
   alert('submenu!');
   alert('submenu!');
 +
  splitted = url.split('/');
 +
  if(splitted.length > 1){
 +
      var id = 'sub-'+ splitted[0];
 +
      hideSubmenu(id);
 +
  }
  }
  }
  else { // we are on a main menu item
  else { // we are on a main menu item
Line 18: Line 23:
function hideSubmenu( elem ){
function hideSubmenu( elem ){
-
  var submenus= ['sub-team','sub-project'];
+
  var submenus= ['sub-team','sub-project', 'sub-home', 'sub-gallery', 'sub-sponsors'];
  for( var i=0; i<submenus.length; i++){
  for( var i=0; i<submenus.length; i++){
   if (elem == 'none'){
   if (elem == 'none'){

Revision as of 15:50, 3 July 2011


This is the wiki page
of the Freiburger student
team competing for iGEM 2011.
Thank you for your interest!