- commit
- 8357848490604921bd3e1674b8a8faf02afa82e3
- parent
- 1435d539b0c2b9c9a2f0f08822c409242bbc4c1e
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2019-10-26 15:48
include turncounter in board-controls
Diffstat
| M | src/template.js | 4 | ++++ |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/template.js b/src/template.js
@@ -20,6 +20,8 @@ const renderBoard = function(state) {
20 20 const renderControls = function(state) {
21 21 if (state.game.sandbox) {
22 22 return h('div', {'class': 'board-controls'}, [
-1 23 state.game.turnCounter,
-1 24 ' ',
23 25 h('input', {type: 'range', value: 50, name: 'speed'}),
24 26 ' ',
25 27 h('input', {type: 'number', value: 1, name: 'steps'}),
@@ -36,6 +38,8 @@ const renderControls = function(state) {
36 38 ]);
37 39 } else {
38 40 return h('div', {'class': 'board-controls'}, [
-1 41 state.game.turnCounter,
-1 42 ' ',
39 43 h('input', {type: 'range', value: 50, name: 'speed'}),
40 44 ' ',
41 45 h('input', {type: 'hidden', value: 50, name: 'speed'}),