New jGoBoard version is out! The API has not changed much, but new version has some nice additions:
- There is a new
autodiv.jswhich enables you to just embed a div with some special attributes and jGoBoard will generate a SGF viewer for you with no additional JavaScript! - I compiled a single minified
all-min.jswith Google’s Closure Compiler so you only need one, fast-loading script tag. Nice!
Basically all you need to do is to head to Download page and grab it, and look at the source of embedding demo and you should have a pretty clear idea how to embed jGoBoard to your blog, website, or whatever. Have fun!
Oh, one final remark: Remote SGF loading uses JSONP service I have created that fetches an SGF file, parses it’s structure and returns it to your script in parsed form. To avoid abuse, I’ve put quotas on the amount that one domain can use the service – 1000 requests a day and max 10 MB data in or out. So if you are expecting to exceed this, either put your SGF files in a place you can reference them locally (i.e. no need for http:// in the URL), cache them that way or contact me to negotiate a bigger quota. :)