How to use EMBED tag feature?

Sort:
Pan_troglodites

It just shows the text, but it should work in any HTML page.

<iframe id="8530357" allowtransparency="true" frameborder="0" style="width:100%;border:none;" src="//www.chess.com/emboard?id=8530357"></iframe><script>window.addEventListener("message",e=>{e['data']&&"8530357"===e['data']['id']&&document.getElementById(`${e['data']['id']}`)&&(document.getElementById(`${e['data']['id']}`).style.height=`${e['data']['frameHeight']+30}px`)});</script>

Martin_Stahl
Pan_troglodites wrote:

It just shows the text, but it should work in any HTML page.

<iframe id="8530357" allowtransparency="true" frameborder="0" style="width:100%;border:none;" src="//www.chess.com/emboard?id=8530357"></iframe><script>window.addEventListener("message",e=>{e['data']&&"8530357"===e['data']['id']&&document.getElementById(`${e['data']['id']}`)&&(document.getElementById(`${e['data']['id']}`).style.height=`${e['data']['frameHeight']+30}px`)});</script>

 

I actually think it's broken right now.

 

Though, according to another post, maybe it's working?

https://www.chess.com/forum/view/general/posting-pgn-to-blogger?page=2#last_comment

 

Pan_troglodites

I can make it works in my site, but not in chess.com forum.

Martin_Stahl
Pan_troglodites wrote:

I can make it works in my site, but not in chess.com forum.

 

It's not supposed to work here. There are built in ways to embed games on site.

 

https://support.chess.com/article/316-how-do-i-put-a-game-or-puzzle-in-a-forum-post

Or from the share screen of a game: