"topindicator": true,
"indic-right": true,
"settings-btn": true,
+ "small": smallScreen,
},
},
[h('i', { 'class': { "material-icons": true } }, "settings")]
})
);
// Create board element (+ reserves if needed by variant or mode)
+ const lm = this.vr.lastMove;
+ const showLight = this.hints &&
+ (this.mode!="idle" || this.cursor==this.vr.moves.length);
let gameDiv = h('div',
{
'class': { 'game': true },
)
);
}
- const lm = this.vr.lastMove;
- const showLight = this.hints &&
- (this.mode!="idle" || this.cursor==this.vr.moves.length);
return h(
'div',
{
h('label',
{
attrs: { for: "selectSound" },
- domProps: { innerHTML: "Sound level" },
+ domProps: { innerHTML: "Play sounds?" },
},
),
h("select",
{
domProps: {
"value": "0",
- innerHTML: "No sound"
+ innerHTML: "None"
},
}
),
{
domProps: {
"value": "1",
- innerHTML: "Newgame sound"
+ innerHTML: "Newgame"
},
}
),
{
domProps: {
"value": "2",
- innerHTML: "All sounds"
+ innerHTML: "All"
},
}
),
setCookie("color", this.color);
},
setSound: function(e) {
- this.sound = e.target.options[e.target.selectedIndex].value;
+ this.sound = parseInt(e.target.options[e.target.selectedIndex].value);
setCookie("sound", this.sound);
},
clickGameSeek: function(e) {