Progression in styles + initiate translation process
[vchess.git] / public / javascripts / variant.js
1 new Vue({
2 el: "#variantPage",
3 data: {
4 display: "game", //default: play!
5 problem: undefined, //current problem in view
6 },
7 methods: {
8 toggleDisplay: function(elt) {
9 this.display = elt; //show
10 },
11 showProblem: function(problemTxt) {
12 this.problem = JSON.parse(problemTxt);
13 this.display = "game";
14 },
15 },
16 });