Test pgn viewer PgnViewerJS


I have tried getting a pgn viewer to work in these forum posts with no success yet. I have even asked how to do this in one post but no reply and some forum members seem to get this to work, so I am doing my own tests!

Let me try & see here: This is some example code from PgnViewerJS online documentation

var pgn = "1. f4 e6 2. g4 Qh4#";
var board = pgnView('board', {pgn: pgn});
<div id="board" style="width: 400px"></div>
I am not hopeful this will work, but if I do not try I will never know!
If it doesn't work can someone here explain how to post pgn with the pgn viewer please? Many thanks!

GM_Avetik Grigoryan

GM_Avetik Grigoryan 1 year ago

Hey Richard! 
You just click "add new file" and add a pgn file.  
Richard Dickinson

Richard Dickinson 1 year ago


Thank you for that! So simple even I might do it! Let me try with one of my favourite chess games of all time (one of my son's game wins as a junior chess player),


GM_Avetik Grigoryan

GM_Avetik Grigoryan 1 year ago