"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) {
clear: both
padding-top: 5px
+.highlight
+ background-color: #00cc66 !important
+
+.incheck
+ background-color: #cc3300 !important
+
.light-square.lichess
background-color: #f0d9b5;
.dark-square.lichess
.dark-square.chesstempo
background-color: #88a0a8;
-.highlight
- background-color: #00cc66
-
-.incheck
- background-color: #cc3300
-
.light-square-diag
background-color: #e5e5ca
.dark-square-diag