Skip to content

Commit

Permalink
tone game ui improved
Browse files Browse the repository at this point in the history
- better bars choosing
  • Loading branch information
und3f committed Feb 28, 2017
1 parent c71ee54 commit b347f64
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tone-game.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,19 @@
<span id="game-controls">
<span class="controls">
<label for="cells">Bars:</label>
<input type="number" id="cells" type="number" value="9" />
<select id="cells">
<script>
var bars = document.getElementById('cells');
for (var i = 3; i <= 64; i++) {
var option = document.createElement("option");
option.text = i;
option.value = i;
if (i == 9)
option.selected = true;
bars.add(option);
}
</script>
</select>
</span>

<span class="controls">
Expand Down

0 comments on commit b347f64

Please sign in to comment.