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