Sure, thanks, I didn't notice that mistype.pgn4web wrote:However, in the current page you got the URL wrong, instead ofyou should haveCode: Select all
live-compact.html?pgnData=ChironACCA.pgn?refreshMinutes=1?showComments=true
With your current URL it should not work at all as expected.Code: Select all
live-compact.html?pgnData=ChironACCA.pgn&refreshMinutes=1&showComments=true
How to post chess games
- Ubaldo Andrea Farina
- Posts: 6
- Joined: Sun Jul 03, 2011 5:53 pm
- Real Name: Ubaldo Andrea Farina
Re: How to post chess games
Re: How to post chess games
Hi! How can I change the green colour of the variations?
-
- Site Admin
- Posts: 1226
- Joined: Wed Jun 09, 2010 7:49 am
- Real Name: Jeremy Bernstein
- Location: Berlin, Germany
- Contact:
Re: How to post chess games
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?danielb wrote:Hi! How can I change the green colour of the variations?
Jeremy
Re: How to post chess games
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".Jeremy Bernstein wrote: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?danielb wrote:Hi! How can I change the green colour of the variations?
Jeremy
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
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?
To specify my question: Where do I have to look for in the source code, if I wish to change that colour?
-
- Site Admin
- Posts: 1226
- Joined: Wed Jun 09, 2010 7:49 am
- Real Name: Jeremy Bernstein
- Location: Berlin, Germany
- Contact:
Re: How to post chess games
The hackery begins at line 3525 in pgn4web.jsdanielb 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?
Re: How to post chess games
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)
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)
- kingliveson
- Posts: 1388
- Joined: Thu Jun 10, 2010 1:22 am
- Real Name: Franklin Titus
- Location: 28°32'1"N 81°22'33"W
Re: How to post chess games
Is it possible to have autoplaymode?
PAWN : Knight >> Bishop >> Rook >>Queen
-
- Site Admin
- Posts: 1226
- Joined: Wed Jun 09, 2010 7:49 am
- Real Name: Jeremy Bernstein
- Location: Berlin, Germany
- Contact:
Re: How to post chess games
So that it plays without user interaction, as soon as the page loads?kingliveson wrote:Is it possible to have autoplaymode?
- kingliveson
- Posts: 1388
- Joined: Thu Jun 10, 2010 1:22 am
- Real Name: Franklin Titus
- Location: 28°32'1"N 81°22'33"W
Re: How to post chess games
Yes, if the user specifies.Jeremy Bernstein wrote:So that it plays without user interaction, as soon as the page loads?kingliveson wrote:Is it possible to have autoplaymode?
... chess games in PGN format ...
please see: https://code.google.com/p/pgn4web/wiki/ ... tes_drupal
PAWN : Knight >> Bishop >> Rook >>Queen