- for (let i=0; i<V.RESERVE_PIECES.length; i++)
- {
- myReservePiecesArray.push(h('div',
- {
- 'class': {'board':true, ['board'+sizeY]:true},
- attrs: { id: getSquareId({x:sizeX+shiftIdx,y:i}) }
- },
- [
- h('img',
- {
- 'class': {"piece":true, "reserve":true},
- attrs: {
- "src": "/images/pieces/" +
- this.vr.getReservePpath(playingColor,i) + ".svg",
- }
- }),
- h('sup',
- {"class": { "reserve-count": true } },
- [ this.vr.reserve[playingColor][V.RESERVE_PIECES[i]] ]
+ for (let i = 0; i < V.RESERVE_PIECES.length; i++) {
+ myReservePiecesArray.push(
+ h(
+ "div",
+ {
+ class: { board: true, ["board" + sizeY]: true },
+ attrs: { id: getSquareId({ x: sizeX + shiftIdx, y: i }) }
+ },
+ [
+ h("img", {
+ class: { piece: true, reserve: true },
+ attrs: {
+ src:
+ "/images/pieces/" +
+ this.vr.getReservePpath(playingColor, i) +
+ ".svg"
+ }
+ }),
+ h("sup", { class: { "reserve-count": true } }, [
+ this.vr.reserve[playingColor][V.RESERVE_PIECES[i]]
+ ])
+ ]