KOCMOHABT wrote:Perhaps this is not what you need, i can add an option for loading empty board/last board state/preloaded sgf and same option for coordinates.
I've been meddling with the code since I posted my questions.
So, for coordinates I played with the local storage :
Code: Select all
if (undefined !== window.localStorage) {
localStorage.setItem("HTMLGoBoardRulers", "1");
}
I wanted to preload a SGF from a link on another page. So, I put the way to the SGF file as a substring in the URL, then used AJAX to load it in the go board.
Code: Select all
var SGF = encodeURI(window.location.search.substring(1));
if (SGF) {
var xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", SGF, true);
xmlhttp.onreadystatechange = function() {
if(xmlhttp.readyState==4) {
GoBoardApi.Load_Sgf(oGameTree, xmlhttp.responseText);
}
}
xmlhttp.send(null);
}
KOCMOHABT wrote:You can try to use localization files from GoUniverse.
I didn't think about it. How do you load them ?
I'm afraid I changed everything directly in the code to have it in french
KOCMOHABT wrote:You can simply delete any node, but not cut and copy. I'll take a look how cgoban perform this action.
Cgoban can cut and paste. It's very useful when composing a SGF for a lecture.
Indeed, sometimes a node and all the branch behind are misplaced, you don't want to delete and compose them again elsewhere.