Page 11 of 20
Re: How to post chess games
Posted: Fri Jul 22, 2011 4:55 pm
by Ubaldo Andrea Farina
pgn4web wrote:However, in the current page you got the URL wrong, instead of
Code: Select all
live-compact.html?pgnData=ChironACCA.pgn?refreshMinutes=1?showComments=true
you should have
Code: Select all
live-compact.html?pgnData=ChironACCA.pgn&refreshMinutes=1&showComments=true
With your current URL it should not work at all as expected.
Sure, thanks, I didn't notice that mistype.
Re: How to post chess games
Posted: Sun Aug 28, 2011 6:31 pm
by danielb
Hi! How can I change the green colour of the variations?
Re: How to post chess games
Posted: Sun Aug 28, 2011 6:57 pm
by Jeremy Bernstein
danielb wrote:Hi! How can I change the green colour of the variations?
You can't, since it's hardcoded into the modified source I'm using at the moment. I could be convinced to add a user variable, but what's the goal here?
Jeremy
Re: How to post chess games
Posted: Sun Aug 28, 2011 7:07 pm
by pgn4web
Jeremy Bernstein wrote:danielb wrote:Hi! How can I change the green colour of the variations?
You can't, since it's hardcoded into the modified source I'm using at the moment. I could be convinced to add a user variable, but what's the goal here?
Jeremy
If you want to be consistent with the pgn4web implementation, I chess moves to the css class "move", the current move to the css class "moveOn" and comments to the css class "comment".
It comes natural to assign variations to the class "variation" so that users can define font, color and so on when using pgn4web in their html. From there, it would be straightforward to define a parameter to the board.html file to assign variation colors as well (same as it's done to moves and comments).
Re: How to post chess games
Posted: Sun Aug 28, 2011 7:09 pm
by danielb
I'd like to use it for my homepage.
To specify my question: Where do I have to look for in the source code, if I wish to change that colour?
Re: How to post chess games
Posted: Sun Aug 28, 2011 7:17 pm
by Jeremy Bernstein
danielb wrote:I'd like to use it for my homepage.
To specify my question: Where do I have to look for in the source code, if I wish to change that colour?
The hackery begins at line 3525 in pgn4web.js
Re: How to post chess games
Posted: Mon Sep 19, 2011 2:04 am
by Uly
Feature request:
Currently we have a way to post a PGN starting from the opening position, and a way to have the game starting with the last position. Is there a way to make the PGN start from some arbitrary position?
For instance, by putting something like
[
pgn=54][/
pgn]
Would produce a chess game that goes directly to move 54 of the game. Then maybe something like:
[
pgn=54b][/
pgn]
Would make it start from black's 54th move.
(For
this post I'd have liked the game to appear with 89...g3 auto-selected)
Re: How to post chess games
Posted: Thu Jan 05, 2012 6:03 pm
by kingliveson
Is it possible to have autoplaymode?
Re: How to post chess games
Posted: Thu Jan 05, 2012 6:15 pm
by Jeremy Bernstein
kingliveson wrote:Is it possible to have autoplaymode?
So that it plays without user interaction, as soon as the page loads?
Re: How to post chess games
Posted: Thu Jan 05, 2012 7:29 pm
by kingliveson
Jeremy Bernstein wrote:kingliveson wrote:Is it possible to have autoplaymode?
So that it plays without user interaction, as soon as the page loads?
Yes, if the user specifies.
please see:
https://code.google.com/p/pgn4web/wiki/ ... tes_drupal