Difference between revisions of "Template:ETH Zurich"

m
m
Line 29: Line 29:
 
count = count - 1;
 
count = count - 1;
 
}
 
}
 
+
var itemtext = items[i].textContent.replace(/\W/g,'_');
items[i].id=items[i].textContent;
+
items[i].id=itemtext;
 
cur = next;
 
cur = next;
 
menuText = menuText.concat("<li>");
 
menuText = menuText.concat("<li>");
 
menuText = menuText.concat("<a href=\"#");
 
menuText = menuText.concat("<a href=\"#");
menuText = menuText.concat(items[i].textContent);
+
menuText = menuText.concat(itemtext);
 
menuText = menuText.concat("\">");
 
menuText = menuText.concat("\">");
 
menuText = menuText.concat(items[i].textContent);
 
menuText = menuText.concat(items[i].textContent);

Revision as of 15:09, 18 August 2015

We would like to thank our sponsors