Hello,
The site indicates that it is possible to modify the theme and bg parameters of the checkerboard
Can you tell me how to apply this in an <iframe>?
<iframe src="lidraughts.org/embed/zi9czKdO?theme=auto&bg=auto"
width=600 height=397 frameborder=0></iframe>
Thank you for your advice
Alain
Change the color in an< iframe>
The parameters you can use for each type of iframe are explained here: lidraughts.org/developers
In the url you will find the parameters "theme=auto&bg=auto" for the theme and background, set to "auto" by default. You can change this from "auto" to any of the supported values:
theme: blue, blue2, blue3, canvas, wood, wood2, wood3, maple, green, marble, brown, brown2, leather, match, grey, metal, olive, purple
bg: light, dark
Hello RoepStoep
Before asking my question, I had visited the link. So I replaced theme = auto & bg = auto "with theme = green & bg = dark.
However, no change occurs while I am well connected to lidraughts
http://damiermanceau.blogspot.com/
Do you have an explanation ?
Thank you for your interest in my question.
Alain-Bonnamy
Hi Alain-Bonnamy,
There is an error in the url of your iframe: "/embed/UNoMQdyk#0?theme=green&bg=dark"
The hash for the movenumber "#0" should be at the end (or leave it out for first move):
So use "/embed/UNoMQdyk?theme=green&bg=dark#0"
Or just "/embed/UNoMQdyk?theme=green&bg=dark"
Hi RoepStoep,
This time I achieved the result by changing only theme = auto by theme = green
http://damiermanceau.blogspot.com/?m=0
Thank you for your help !
Hi Roepstoep,
The iframe is very interesting, It allows
- To reproduce a fraction of a game
- To start a full game after a certain number of moves have been played.
http://lnjd.forum.free.fr/viewtopic.php?t=1140
But, in these two cases, I cannot change the theme.
Is it possible?
Thank you for your answers
Alain
You can always change the theme. Looking at the iframes in your link there is the same problem with incorrect url.
Anchors like "#20" (for movenumber/ply) belong at the end of the url, after the parameters "?theme=auto&bg=auto":
So use "/embed/UNoMQdyk?theme=auto&bg=auto#20"
Instead of "/embed/UNoMQdyk#20?theme=auto&bg=auto"
Thank you, RoepStoep for your advice which allowed me to correct my mistake.
Everything is working perfectly now!
Here is what troubled me:
When a part fragment appears, it is necessary to modify the code generated to transfer it to the end of the code. Otherwise the diagram does not open at the beginning.
Example of generated code:
[code]<iframe src="lidraughts.org/embed/RenrBHBB#7?theme=auto&bg=auto"
width=600 height=397 frameborder=0></iframe>[/code]
Ah yes, I see what you mean. The autogenerated code from the analysis board puts them in the wrong order!
I have fixed it right away, so if you try again, it should give the correct url.
This time the code is carried over to the end, but it always leads to the end of the execution. To postpone it to the beginning, replace # 7 by # 0