Team:TU Delft/header

From 2010.igem.org

(Difference between revisions)
Line 46: Line 46:
function () { $(this).removeClass("hover"); }
function () { $(this).removeClass("hover"); }
);
);
-
 
-
if (console === undefined) {
 
-
console = {log:function(a){}};
 
-
}
 
});
});
Line 77: Line 73:
function historyCallback() {
function historyCallback() {
var hash = location.hash;
var hash = location.hash;
-
//console.log('historyCallback: ' + hash);
 
if(hash) {
if(hash) {
hash = hash.substring(1);
hash = hash.substring(1);
if(hash.split('=').length == 1) {
if(hash.split('=').length == 1) {
-
//console.log('load hash as page: ' + hash);
 
// loadPage(hash);
// loadPage(hash);
} else {
} else {
    var kvmap = splitHash(hash);
    var kvmap = splitHash(hash);
if (kvmap.page) {
if (kvmap.page) {
-
//console.log('load hashmap.page: ' + kvmap.page);
 
loadPage(kvmap.page);
loadPage(kvmap.page);
}
}

Revision as of 18:24, 22 July 2010