Team:TU Delft/header2

From 2010.igem.org

(Difference between revisions)
Line 88: Line 88:
if(hash.split('=').length == 1) {
if(hash.split('=').length == 1) {
console.log('load hash as page: ' + hash);
console.log('load hash as page: ' + hash);
-
loadPage(hash);
+
// loadPage(hash);
} else {
} else {
    var kvmap = splitHash(hash);
    var kvmap = splitHash(hash);
Line 96: Line 96:
} else if(kvmap.anchor)  {
} else if(kvmap.anchor)  {
console.log('scrolling to anchor: ' + kvmap.anchor);
console.log('scrolling to anchor: ' + kvmap.anchor);
-
window.scrollTo(0, $(kvmap.anchor).position().top);
+
//window.scrollTo(0, $(kvmap.anchor).position().top);
}
}
}
}
Line 112: Line 112:
if(this.hash)
if(this.hash)
-
this.href = '#anchor=' + this.hash.substring(1);
+
this.href = this.hash.substring(1);
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 14:45, 22 July 2010