Difference between revisions of "Template:Example2"

Line 34: Line 34:
 
function highlight_current_page() {
 
function highlight_current_page() {
  
wgPageName = wgPageName.replace(/\//g,"-"); // remove dashes from page name and turn them into "-"
+
wgPageName = "2017.igem.org/" + wgPageName;
  
 
console.log(wgPageName);
 
console.log(wgPageName);

Revision as of 21:35, 8 March 2017