X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fgame.js;h=1e8d9fd204410a4d98cc6ee0ef4a99bc62c38974;hb=85be503d5592d8f4d082fb8364b0882447ca7fa1;hp=72b5da9009252f03fa7a15842888827fa87c2519;hpb=fce32e8fa848172f257b339d9c9660b565c1b247;p=vchess.git diff --git a/public/javascripts/components/game.js b/public/javascripts/components/game.js index 72b5da90..1e8d9fd2 100644 --- a/public/javascripts/components/game.js +++ b/public/javascripts/components/game.js @@ -413,9 +413,24 @@ Vue.component('my-game', { { attrs: { id: "pgn-game" }, on: { click: this.download }, - domProps: { - innerHTML: this.pgnTxt - } + domProps: { innerHTML: this.pgnTxt } + } + ) + ] + ) + ); + } + else if (this.mode != "idle") + { + // Show current FEN (at least for debug) + elementArray.push( + h('div', + { attrs: { id: "fen-div" } }, + [ + h('p', + { + attrs: { id: "fen-string" }, + domProps: { innerHTML: this.vr.getBaseFen() } } ) ]