)
#turnIndicator(v-if="showTurn") {{ turn }}
#controls
- button(@click="gotoBegin()") <<
- button(@click="undo()") <
- button(v-if="canFlip" @click="flip()") ⇅
- button(@click="play()") >
- button(@click="gotoEnd()") >>
+ button(@click="gotoBegin()")
+ img.inline(src="/images/icons/fast-forward_rev.svg")
+ button(@click="undo()")
+ img.inline(src="/images/icons/play_rev.svg")
+ button(v-if="canFlip" @click="flip()")
+ img.inline(src="/images/icons/flip.svg")
+ button(@click="play()")
+ img.inline(src="/images/icons/play.svg")
+ button(@click="gotoEnd()")
+ img.inline(src="/images/icons/fast-forward.svg")
#belowControls
#downloadDiv(v-if="allowDownloadPGN")
a#download(href="#")
| {{ st.tr["Rules"] }}
#movesList
MoveList(
- v-if="showMoves != 'none'"
:show="showMoves"
:score="game.score"
:message="game.scoreMsg"
this.lastMove = null;
},
analyzePosition: function() {
- const newUrl =
+ let newUrl =
"/analyse/" +
this.game.vname +
"/?fen=" +
this.vr.getFen().replace(/ /g, "_");
+ if (this.game.mycolor)
+ newUrl += "&side=" + this.game.mycolor;
// Open in same tab in live games (against cheating)
if (this.game.type == "live") this.$router.push(newUrl);
else window.open("#" + newUrl);
}
};
const playMove = () => {
- const animate = V.ShowMoves == "all" && received;
+ const animate = V.ShowMoves == "all" && (received || navigate);
if (!Array.isArray(move)) move = [move];
let moveIdx = 0;
let self = this;
#controls
margin: 0 auto
text-align: center
+ display: flex
button
display: inline-block
width: 20%
margin: 0
+ img.inline
+ height: 24px
+ padding-top: 5px
+ @media screen and (max-width: 767px)
+ img.inline
+ height: 18px
#turnIndicator
text-align: center