Fix '3 knights' bug + tiny advance on problems tab
[vchess.git] / public / javascripts / variant.js
CommitLineData
f5d3e4f5
BA
1new Vue({
2 el: "#variantPage",
3 data: { display: "" }, //do not show anything...
4 // TODO: listen event "show problem", avec le probleme stringifié en arg
5 // Alors: display=game, mode=friend, newGame(fen, turn, ...),
6 // et set Instructions+Soluce
4ecf423b
BA
7 methods: {
8 toggleDisplay: function(elt) {
9 if (this.display == elt)
10 this.display = ""; //hide
11 else
12 this.display = elt; //show
13 },
14 },
f5d3e4f5 15});