[dev] [commit] r1002 - in wwwbase: . js styles
Cătălin Frâncu
cata at francu.com
Sun Sep 22 19:32:04 EEST 2013
Arată bine, cu o observație:
> + // Tags are parsed one by one. One tag information is:
> + // data[0] is x coordinate for tag label and line start (int)
> + // data[1] is y coordinate for tag label and line start (int)
> + // data[2] is x coordinate for line end (int)
> + // data[3] is y coordinate for line end (int)
> + // data[4] is tag label text (string)
> + // data[5] is the lexeme to which to redirect on click (string)
> for(var i = 1; i < tags.length; i++){
> var data = JSON.parse('[' + tags[i].innerHTML + ']');
Poate mai bine trimiți prin JSON direct un vector asociativ? Deci în loc de data[0], data[1]... să ai data.xstart, data.ystart...
Cătălin
More information about the Dev
mailing list