Skip to content

Commit 63b7432

Browse files
committed
More flexible worksheet counts
1 parent 37c019c commit 63b7432

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: src/index.html

+1-3
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,7 @@ <h3>Select a Category</h3>
200200
<div class="row pb-5">
201201
<div class="col-md-6 pt-3">
202202
<h3>How many worksheets?</h3>
203-
<select id="worksheetCount" class="form-control">
204-
<option>1</option><option>3</option><option selected>6</option><option>9</option><option>12</option><option>15</option>
205-
</select>
203+
<select id="worksheetCount" class="form-control"></select>
206204
</div>
207205
<div class="col-md-6 pt-3">
208206
<label>

Diff for: src/js/hw-gen.js

+1
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ const HwGen = (() => {
213213
data['selectedCat'] = hwSets[hwSetName].category;
214214
data['mode'] = MODE.PRINT_CONFIG;
215215
}
216+
worksheetCountSelect.innerHTML = new Array(29).fill().map((_, i) => `<option>${i + 1}</option>`).join("");
216217
//map sets by Category.
217218
Object.keys(hwSets).map(a => {
218219
const hwSet = hwSets[a];

0 commit comments

Comments
 (0)