Add a simple code lines counter
[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 7 methods: {
c794dbb8
BA
8 showProblem: function(problemTxt) {
9 this.problem = JSON.parse(problemTxt);
10 this.display = "game";
11 },
e6dcb115
BA
12 setDisplay: function(elt) {
13 this.display = elt;
14 document.getElementById("drawer-control").checked = false;
15 },
4ecf423b 16 },
f5d3e4f5 17});