Html5 Go Board

For discussing go computing, software announcements, etc.
User avatar
ez4u
Oza
Posts: 2414
Joined: Wed Feb 23, 2011 10:15 pm
Rank: Jp 6 dan
GD Posts: 0
KGS: ez4u
Location: Tokyo, Japan
Has thanked: 2351 times
Been thanked: 1332 times

Re: Html5 Go Board

Post by ez4u »

OK, I grabbed the Firefox extension (36.0.1 on Windows 7):
1. I clicked on an sgf link on Go News. I got a full-window setup with a beautiful board and all controls. :tmbup:
Sgf on Go News.jpg
Sgf on Go News.jpg (87.46 KiB) Viewed 17562 times

2. I clicked on the "download sgf" button in eidogo on an L19 post with an embedded sgf (Is that the right term? I mean a post with the sgf text pasted into the post.). I got a setup apparently defined by the size of the previous eidogo widget with the controls taking up most of the space and a nasty (sorry!) little Go board that was difficult to see. :scratch:
Sgf embedded on L19.jpg
Sgf embedded on L19.jpg (72.72 KiB) Viewed 17562 times

3. I clicked on either the "download sgf" button in eidogo or the "attachment" link at the bottom of a post with an sgf file attached. I got the standard "open file" dialog from Firefox and no way that I could find to get the Web Go Board to open it. :scratch:
Sgf attachment L19.jpg
Sgf attachment L19.jpg (55.75 KiB) Viewed 17562 times

Very well done on 1!
Is there any help for 2 and 3?
:bow:
Dave Sigaty
"Short-lived are both the praiser and the praised, and rememberer and the remembered..."
- Marcus Aurelius; Meditations, VIII 21
KOCMOHABT
Lives with ko
Posts: 160
Joined: Sun Dec 21, 2014 4:06 am
Rank: 4d
GD Posts: 0
KGS: KOCMOHABT
Has thanked: 127 times
Been thanked: 175 times

Re: Html5 Go Board

Post by KOCMOHABT »

3. I clicked on either the "download sgf" button in eidogo or the "attachment" link at the bottom of a post with an sgf file attached. I got the standard "open file" dialog from Firefox and no way that I could find to get the Web Go Board to open it.


U can download that file and drag-n-drop it in new tab.

2. I clicked on the "download sgf" button in eidogo on an L19 post with an embedded sgf (Is that the right term? I mean a post with the sgf text pasted into the post.). I got a setup apparently defined by the size of the previous eidogo widget with the controls taking up most of the space and a nasty (sorry!) little Go board that was difficult to see.

The problem is that the board is too small, or is that all my plug-in starts ?
GoAcademy
Beginner
Posts: 12
Joined: Sat Jan 31, 2015 7:05 am
GD Posts: 0
KGS: Oel
Been thanked: 5 times

Re: Html5 Go Board

Post by GoAcademy »

Would be very cool if I could use this for my website http://www.go-academy.org but I does not work with the sgf file links that I show on the game review pages. Probably it's an issue on my site. If I click a link I still get the sgf code. Does anybody see how to fix it?
KOCMOHABT
Lives with ko
Posts: 160
Joined: Sun Dec 21, 2014 4:06 am
Rank: 4d
GD Posts: 0
KGS: KOCMOHABT
Has thanked: 127 times
Been thanked: 175 times

Re: Html5 Go Board

Post by KOCMOHABT »

GoAcademy wrote:Would be very cool if I could use this for my website http://www.go-academy.org but I does not work with the sgf file links that I show on the game review pages. Probably it's an issue on my site. If I click a link I still get the sgf code. Does anybody see how to fix it?

Http request with sgf link must have header Content-type "application/x-go-sgf"
User avatar
ez4u
Oza
Posts: 2414
Joined: Wed Feb 23, 2011 10:15 pm
Rank: Jp 6 dan
GD Posts: 0
KGS: ez4u
Location: Tokyo, Japan
Has thanked: 2351 times
Been thanked: 1332 times

Re: Html5 Go Board

Post by ez4u »

KOCMOHABT wrote:
3. I clicked on either the "download sgf" button in eidogo or the "attachment" link at the bottom of a post with an sgf file attached. I got the standard "open file" dialog from Firefox and no way that I could find to get the Web Go Board to open it.


U can download that file and drag-n-drop it in new tab.

2. I clicked on the "download sgf" button in eidogo on an L19 post with an embedded sgf (Is that the right term? I mean a post with the sgf text pasted into the post.). I got a setup apparently defined by the size of the previous eidogo widget with the controls taking up most of the space and a nasty (sorry!) little Go board that was difficult to see.

The problem is that the board is too small, or is that all my plug-in starts ?

3. Unfortunately dragging and dropping onto an empty tab (both from FF's download list and from file manager) causes FF to stop responding. :sad:

2. The problem is that the board is too small and can't be adjusted. It would be nice if it would open in a new tab as does 1. in my original post.
Dave Sigaty
"Short-lived are both the praiser and the praised, and rememberer and the remembered..."
- Marcus Aurelius; Meditations, VIII 21
DinoKino
Dies in gote
Posts: 26
Joined: Sun Mar 01, 2015 9:35 am
GD Posts: 0
Has thanked: 8 times
Been thanked: 6 times

Re: Html5 Go Board

Post by DinoKino »

ez4u wrote:3. Unfortunately dragging and dropping onto an empty tab (both from FF's download list and from file manager) causes FF to stop responding. :sad:


Me too (same FF version and Win7) - drag and drop would be great!
User avatar
ez4u
Oza
Posts: 2414
Joined: Wed Feb 23, 2011 10:15 pm
Rank: Jp 6 dan
GD Posts: 0
KGS: ez4u
Location: Tokyo, Japan
Has thanked: 2351 times
Been thanked: 1332 times

Re: Html5 Go Board

Post by ez4u »

So I thought what the heck it's only 1 AM...

I fired up Chrome, grabbed the addin and tried the same three pages as before:
1. Go News gave me the same result as FF. :tmbup: again. BTW though, sound does not work in either browser although 'sound' is checked in settings on both.

2. The 'embedded' sgf results in the same space-constrained version. However, note that the game does not actually load under chrome. The info and game tree are empty.
Sgf embedded on L19 - chrome.jpg
Sgf embedded on L19 - chrome.jpg (68.16 KiB) Viewed 17516 times


3. The attachment automatically downloads (my settings are different than FF). Dragging and dropping the attachment does not crash Chrome. However, it also does not open Web Go Board. Again this is true whether I drag and drop from the Chrome download bar or from Windows File Manager. The file is attached.
Sgf attachment L19 - chrome.jpg
Sgf attachment L19 - chrome.jpg (30.04 KiB) Viewed 17511 times
Attachments
Cho-DolBaram (1).sgf
(1.84 KiB) Downloaded 763 times
Dave Sigaty
"Short-lived are both the praiser and the praised, and rememberer and the remembered..."
- Marcus Aurelius; Meditations, VIII 21
KOCMOHABT
Lives with ko
Posts: 160
Joined: Sun Dec 21, 2014 4:06 am
Rank: 4d
GD Posts: 0
KGS: KOCMOHABT
Has thanked: 127 times
Been thanked: 175 times

Re: Html5 Go Board

Post by KOCMOHABT »

ez4u wrote:3. The attachment automatically downloads (my settings are different than FF). Dragging and dropping the attachment does not crash Chrome. However, it also does not open Web Go Board. Again this is true whether I drag and drop from the Chrome download bar or from Windows File Manager. The file is attached.

About Chrome and drag-n-drop. Go to chrome://extensions/ in Chrome, find Web Go Board, u need to TurnOn "Allow open files by url"(or something like that) check box. Dunno how to make this checkbox to be On after installation :sad:.

Bugs with FF-extenstion will be fixed soon.
User avatar
Bonobo
Oza
Posts: 2223
Joined: Fri Dec 23, 2011 6:39 pm
Rank: OGS 9k
GD Posts: 0
OGS: trohde
Universal go server handle: trohde
Location: Germany
Has thanked: 8262 times
Been thanked: 924 times
Contact:

Re: Html5 Go Board

Post by Bonobo »

KOCMOHABT wrote:About Chrome and drag-n-drop. Go to chrome://extensions/ in Chrome, find Web Go Board, u need to TurnOn "Allow open files by url"(or something like that) check box. [..]

The text for that checkbox is “Allow access to file URLs” (at least on my Chrome for OS X).
“The only difference between me and a madman is that I’m not mad.” — Salvador Dali ★ Play a slooooow correspondence game with me on OGS? :)
User avatar
ez4u
Oza
Posts: 2414
Joined: Wed Feb 23, 2011 10:15 pm
Rank: Jp 6 dan
GD Posts: 0
KGS: ez4u
Location: Tokyo, Japan
Has thanked: 2351 times
Been thanked: 1332 times

Re: Html5 Go Board

Post by ez4u »

Bonobo wrote:
KOCMOHABT wrote:About Chrome and drag-n-drop. Go to chrome://extensions/ in Chrome, find Web Go Board, u need to TurnOn "Allow open files by url"(or something like that) check box. [..]

The text for that checkbox is “Allow access to file URLs” (at least on my Chrome for OS X).

Done! Works well in Chrome now. Thanks.
Unfortunately we need to solve this embedded thing since so many people post games here that way. I am already a Web Go Board convert so now it is time to be a demanding fan/user. Sorry in advance! :mrgreen:
Dave Sigaty
"Short-lived are both the praiser and the praised, and rememberer and the remembered..."
- Marcus Aurelius; Meditations, VIII 21
cyndane
Dies in gote
Posts: 65
Joined: Mon Jan 14, 2013 12:02 pm
Rank: 1k KGS
GD Posts: 0
Has thanked: 10 times
Been thanked: 16 times

Re: Html5 Go Board

Post by cyndane »

This is wonderful. thank you very much for writing this!
YeGO
Dies with sente
Posts: 82
Joined: Mon Feb 23, 2015 8:41 pm
GD Posts: 0
Has thanked: 19 times
Been thanked: 46 times

Re: Html5 Go Board

Post by YeGO »

Really awesome work, KOCMOHABT!

By the way, there is a new website that is trying to form a community for reviewing games:
go-academy.org

Currently, the website uses wgo.js to display games/reviews, but they are missing the feature of being able to create reviews directly online (relying instead on players using an external SGF editor for creating the reviews).

Perhaps, they could integrate your editor into their site in order to enable online review creation. I already made such a suggestion on their "Ideas for Improvements" page:
http://go-academy.org/content/ideas-improvement
KOCMOHABT
Lives with ko
Posts: 160
Joined: Sun Dec 21, 2014 4:06 am
Rank: 4d
GD Posts: 0
KGS: KOCMOHABT
Has thanked: 127 times
Been thanked: 175 times

Re: Html5 Go Board

Post by KOCMOHABT »

YeGO wrote:Perhaps, they could integrate your editor into their site in order to enable online review creation. I already made such a suggestion on their "Ideas for Improvements" page:
http://go-academy.org/content/ideas-improvement


From my point of view, all what they need for online review - it's functionallity for Load and Save sgf files from code but not from board interface... And they already can do it :D. There is API for working with board from code. There are functions for load and save files in sgf format, so they can do it easily.
KOCMOHABT
Lives with ko
Posts: 160
Joined: Sun Dec 21, 2014 4:06 am
Rank: 4d
GD Posts: 0
KGS: KOCMOHABT
Has thanked: 127 times
Been thanked: 175 times

Re: Html5 Go Board

Post by KOCMOHABT »

Update 0.9.47 - common version for script and both Chrome and FF extensions. Chrome extension must be updated automatically (but u can do it right now manually from chrome://extensions page). For updating FF-extension u need to download it again (because FF-extension still doesn't checked by FF-team, position 144 from 161).

Chrome-extension and FF-extension: If request comes from iframe now will be opened new tab with WGB (fixed bug with that link http://www.lifein19x19.com/forum/viewtopic.php?p=184759#p184759). Added match title to title of html-page.
FF Extension: Fixed bug with cached requests (some link didn't opened WGB on second click). Reworked opening of local files, now file opening is asynchronous (hope this helps with fixing crashing FF after drag-n-drop files in browser).
WGB changes: Now target is hinding from board after any keydown. Changed hotkeys for Adding/removing rules now hotkey is Ctrl+R and for change variant-view mode now hotkey is Ctrl+V (old hotkeys work differently on different browsers). Added mimeType for downloading SGF's from editor.
User avatar
ez4u
Oza
Posts: 2414
Joined: Wed Feb 23, 2011 10:15 pm
Rank: Jp 6 dan
GD Posts: 0
KGS: ez4u
Location: Tokyo, Japan
Has thanked: 2351 times
Been thanked: 1332 times

Re: Html5 Go Board

Post by ez4u »

The FF extension seems to be gone from the link previously posted. Since the page is in Russian, I might be missing something. However, it was simple last time. Now even the search box does not find it.

Chrome works as advertised. One hint for others though. I had to go to the extension page and click off and then click on again the "allow access to file URL's" checkbox for everything to work correctly. (Chrome bug?) :scratch:
Dave Sigaty
"Short-lived are both the praiser and the praised, and rememberer and the remembered..."
- Marcus Aurelius; Meditations, VIII 21
Post Reply