- attrs: { type: "checkbox", id: "drawer-control" },
- "class": { "drawer": true, "persistent": true },
- }
- ),
- h('div',
- { },
- [
- h('label',
- {
- attrs: { for: "drawer-control" },
- "class": { "drawer-close": true }
- }
- ),
- h('a',
- {
- attrs: { "href": "#" },
- domProps: { innerHTML: "Home" },
- }
- ),
- h('a',
- {
- attrs: { "href": "#" },
- domProps: { innerHTML: "....." },
- }
- ),
- ]
- )
- ]);
- elementArray.push(menuElt);
-
- // TODO: chat available only in "chat" mode...
- // on: {
-// "click": () => { document.getElementById("modal-chat").checked = true; },
-
+ on: { click: this.clearComputerGame },
+ attrs: {
+ "aria-label": 'Clear computer game',
+ "id": "clearBtn",
+ },
+ 'class': {
+ "tooltip": true,
+ "topindicator": true,
+ "indic-left": true,
+ "settings-btn": !smallScreen,
+ "settings-btn-small": smallScreen,
+ },
+ },
+ [h('i', { 'class': { "material-icons": true } }, "clear")]
+ );
+ elementArray.push(clearButton);
+ }