- // fenStart initialized in the end, after definition of V,
- // because it triggers a reset on BaseGame component.
- this.$set(this.game, "fenStart", this.gameRef.fen); //TODO: Vue3...
+ this.$set(this.game, "fenStart", this.gameRef.fen);
+ },
+ adjustFenSize: function() {
+ let fenInput = document.getElementById("fen");
+ fenInput.style.width = this.curFen.length + "ch";
+ },
+ gotoFen: function() {
+ this.gameRef.fen = this.curFen;
+ this.loadGame();