Team:TU Delft/test2
From 2010.igem.org
(Difference between revisions)
Line 37: | Line 37: | ||
function splitHash(hash) { | function splitHash(hash) { | ||
- | var kvpairs = hash.split(' | + | var kvpairs = hash.split(';'); |
var i; | var i; | ||
var kvmap = {}; | var kvmap = {}; | ||
Line 51: | Line 51: | ||
var i; | var i; | ||
for(i in kvmap) { | for(i in kvmap) { | ||
- | str += | + | str += ';' + i + '=' + kvmap[i]; |
} | } | ||
location.hash = str; | location.hash = str; |
Revision as of 12:59, 24 July 2010