Team:TU Delft/header2
From 2010.igem.org
(Difference between revisions)
Line 70: | Line 70: | ||
} | } | ||
- | function pageload(hash) { | + | function pageload(hash) { |
- | + | ||
- | + | ||
// hash doesn't contain the first # character. | // hash doesn't contain the first # character. | ||
if(hash) { | if(hash) { | ||
- | var url = wgServer + "/Team:TU_Delft/" + | + | var kvmap = splitHash(hash); |
- | + | ||
- | + | if (kvmap.url) { | |
- | + | var url = wgServer + "/Team:TU_Delft/" +kvmap.page+ "?action=render"; | |
- | + | $("#load").fadeOut(200); | |
- | + | $.get(url, function(data) { | |
+ | $("#load").html(data).fadeIn(200); | ||
+ | rewriteLinks($("#load")); | ||
+ | }); | ||
+ | } else { | ||
+ | |||
+ | } | ||
} else { | } else { | ||
// start page | // start page |
Revision as of 10:56, 22 July 2010