projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Saving state (unfinished styling on variant page)
[vchess.git]
/
public
/
javascripts
/
variant.js
diff --git
a/public/javascripts/variant.js
b/public/javascripts/variant.js
index
03dbbdd
..
f9fb0c6
100644
(file)
--- a/
public/javascripts/variant.js
+++ b/
public/javascripts/variant.js
@@
-5,12
+5,13
@@
new Vue({
problem: undefined, //current problem in view
},
methods: {
problem: undefined, //current problem in view
},
methods: {
- toggleDisplay: function(elt) {
- this.display = elt; //show
- },
showProblem: function(problemTxt) {
this.problem = JSON.parse(problemTxt);
this.display = "game";
},
showProblem: function(problemTxt) {
this.problem = JSON.parse(problemTxt);
this.display = "game";
},
+ setDisplay: function(elt) {
+ this.display = elt;
+ document.getElementById("drawer-control").checked = false;
+ },
},
});
},
});