Fixed total check, batch period and regenerated puzzle.
This commit is contained in:
4
app.js
4
app.js
@@ -254,7 +254,7 @@ App.PuzzleView = Backbone.View.extend({
|
|||||||
intervalID: null,
|
intervalID: null,
|
||||||
guessing: false,
|
guessing: false,
|
||||||
count: 0,
|
count: 0,
|
||||||
total: 7,
|
total: 0,
|
||||||
puzNum: 0,
|
puzNum: 0,
|
||||||
data: null,
|
data: null,
|
||||||
|
|
||||||
@@ -307,6 +307,8 @@ App.PuzzleView = Backbone.View.extend({
|
|||||||
|
|
||||||
this.data = puzzles[puzNum];
|
this.data = puzzles[puzNum];
|
||||||
|
|
||||||
|
this.total = puzzles[puzNum]['clues'].length;
|
||||||
|
|
||||||
var tpl = $('.puzzleTemplate').text();
|
var tpl = $('.puzzleTemplate').text();
|
||||||
var html = _.template(tpl, this.data);
|
var html = _.template(tpl, this.data);
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -56,7 +56,7 @@ for (var i = 0; i < lines.length; i++) {
|
|||||||
}
|
}
|
||||||
words[s].push({
|
words[s].push({
|
||||||
word: ln[0],
|
word: ln[0],
|
||||||
def : ln[1].charAt(0).toUpperCase() + ln[1].substr(1) + '.'
|
def : ln[1]
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user