Page 3 of 10

Re: Html5 Go Board

Posted: Fri Mar 20, 2015 2:51 am
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 17565 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 17565 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 17565 times

Very well done on 1!
Is there any help for 2 and 3?
:bow:

Re: Html5 Go Board

Posted: Fri Mar 20, 2015 3:05 am
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 ?

Re: Html5 Go Board

Posted: Fri Mar 20, 2015 7:33 am
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?

Re: Html5 Go Board

Posted: Fri Mar 20, 2015 7:40 am
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"

Re: Html5 Go Board

Posted: Fri Mar 20, 2015 8:36 am
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.

Re: Html5 Go Board

Posted: Fri Mar 20, 2015 9:00 am
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!

Re: Html5 Go Board

Posted: Fri Mar 20, 2015 9:20 am
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 17519 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 17514 times

Re: Html5 Go Board

Posted: Fri Mar 20, 2015 6:21 pm
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.

Re: Html5 Go Board

Posted: Fri Mar 20, 2015 7:45 pm
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).

Re: Html5 Go Board

Posted: Sat Mar 21, 2015 4:52 am
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:

Re: Html5 Go Board

Posted: Sat Mar 21, 2015 9:49 am
by cyndane
This is wonderful. thank you very much for writing this!

Re: Html5 Go Board

Posted: Sat Mar 21, 2015 3:06 pm
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

Re: Html5 Go Board

Posted: Sat Mar 21, 2015 3:58 pm
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.

Re: Html5 Go Board

Posted: Sun Mar 22, 2015 7:39 am
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.

Re: Html5 Go Board

Posted: Sun Mar 22, 2015 8:50 am
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: