Team:TU Delft/header2

From 2010.igem.org

(Difference between revisions)
Line 70: Line 70:
}
}
-
function pageload(hash) {
+
function pageload(hash) {
-
var kvmap = splitHash(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/" +hash+ "?action=render";
+
    var kvmap = splitHash(hash);
-
$("#load").fadeOut(200);
+
 
-
$.get(url, function(data) {
+
if (kvmap.url) {
-
$("#load").html(data).fadeIn(200);
+
var url = wgServer + "/Team:TU_Delft/" +kvmap.page+ "?action=render";
-
rewriteLinks($("#load"));
+
$("#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