+ let eogMessage = "Unfinished";
+ switch (this.score)
+ {
+ case "1-0":
+ eogMessage = "White win";
+ break;
+ case "0-1":
+ eogMessage = "Black win";
+ break;
+ case "1/2":
+ eogMessage = "Draw";
+ break;
+ }
+ let elemsOfEog =
+ [
+ h('label',
+ {
+ attrs: { "for": "modal-control" },
+ "class": { "modal-close": true },
+ }
+ ),
+ h('h3',
+ {
+ "class": { "section": true },
+ domProps: { innerHTML: "End of game" },
+ }
+ ),
+ h('p',
+ {
+ "class": { "section": true },
+ domProps: { innerHTML: eogMessage },
+ }
+ )
+ ];
+ if (this.score != "*")
+ {
+ elemsOfEog.push(
+ h('p', //'textarea', //TODO: selectable!
+ {
+ domProps: { innerHTML: this.vr.getPGN(this.mycolor, this.score) },
+ //attrs: { "readonly": true },
+ }
+ )
+ );
+ }