4 display: getCookie("display-"+variant
,""), //default: do not show anything...
5 problem: undefined, //current problem in view
8 toggleDisplay: function(elt
) {
9 if (this.display
== elt
)
11 this.display
= ""; //hide
12 setCookie("display-"+variant
, "");
16 this.display
= elt
; //show
17 setCookie("display-"+variant
, elt
);
20 showProblem: function(problemTxt
) {
21 this.problem
= JSON
.parse(problemTxt
);
22 this.display
= "game";