Fix '3 knights' bug + tiny advance on problems tab
[vchess.git] / public / javascripts / variant.js
1 new 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
7 methods: {
8 toggleDisplay: function(elt) {
9 if (this.display == elt)
10 this.display = ""; //hide
11 else
12 this.display = elt; //show
13 },
14 },
15 });