hints: (getCookie("hints") === "1" ? true : false),
color: getCookie("color", "lichess"), //lichess, chesscom or chesstempo
// sound level: 0 = no sound, 1 = sound only on newgame, 2 = always
- sound: getCookie("sound", "2"),
+ sound: parseInt(getCookie("sound", "2")),
};
},
render(h) {
"value": "0",
innerHTML: "None"
},
+ attrs: { "selected": this.sound==0 },
}
),
h("option",
"value": "1",
innerHTML: "Newgame"
},
+ attrs: { "selected": this.sound==1 },
}
),
h("option",
"value": "2",
innerHTML: "All"
},
+ attrs: { "selected": this.sound==2 },
}
),
],
{
elementArray.push(
h('div',
- { attrs: { id: "pgn-div" } },
+ {
+ attrs: { id: "pgn-div" },
+ "class": { "section-content": true },
+ },
[
h('a',
{
h('p',
{
attrs: { id: "pgn-game" },
- on: { click: this.download },
domProps: { innerHTML: this.pgnTxt }
}
- )
+ ),
+ h('button',
+ {
+ attrs: { "id": "downloadBtn" },
+ on: { click: this.download },
+ domProps: { innerHTML: "Download game" },
+ }
+ ),
]
)
);
// Show current FEN
elementArray.push(
h('div',
- { attrs: { id: "fen-div" } },
+ {
+ attrs: { id: "fen-div" },
+ "class": { "section-content": true },
+ },
[
h('p',
{