Team:TU Delft/test

From 2010.igem.org

(Difference between revisions)
Line 209: Line 209:
}
}
}
}
-
 
-
 
-
nalert = 0;
 
function rewriteLinks(elem) {
function rewriteLinks(elem) {
Line 221: Line 218:
//this.href = this.hash;
//this.href = this.hash;
var anchor = this.hash.substring(1);
var anchor = this.hash.substring(1);
-
 
-
if (nalert++<5)
 
-
alert(anchor.substring(0,5));
 
if (anchor.substring(0,5)!='=page')
if (anchor.substring(0,5)!='=page')
this.href = '#page=' + currentPage + ampersandStr + 'anchor=' + anchor;
this.href = '#page=' + currentPage + ampersandStr + 'anchor=' + anchor;
 +
} else if(txt != "edit")
} else if(txt != "edit")
this.href = this.href.replace("https://2010.igem.org/Team:TU_Delft/", "#page=");
this.href = this.href.replace("https://2010.igem.org/Team:TU_Delft/", "#page=");

Revision as of 20:40, 26 October 2010