fix a jquery exercise regression and make jquery exercises run in firefox

This commit is contained in:
Michael Q Larson
2015-01-23 00:30:34 -08:00
parent ff05c9fbca
commit 1f6cb10a32
3 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@ var _ = require('lodash'),
* Bonfire controller
*/
var highestBonfireNumber = 10;
var highestBonfireNumber = 1;
exports.index = function(req, res) {
res.render('bonfire/bonfire.jade', {

View File

@ -556,7 +556,7 @@ div.CodeMirror-scroll {
font-size: 15px;
}
.well {
.jquery-exercises-well {
text-align: left;
height: 200px;
}

View File

@ -56,12 +56,12 @@ block content
$('#hint').text(hint[currentExercise]);
handleExerciseTransition();
}
$('#exercise-directory').on('click', 'li', event, function () {
$('#exercise-directory').on('click', 'li', function (event) {
currentExercise = $(this).index();
event.preventDefault();
refreshEverything(event);
});
$('#next-exercise').on('click', event, function () {
$('#next-exercise').on('click', function (event) {
++currentExercise;
event.preventDefault();
refreshEverything(event);
@ -105,8 +105,8 @@ block content
.col-xs-6 #location1
.col-xs-6 #location2
.row
#location1.col-xs-6.well
#location2.col-xs-6.well
#location1.col-xs-6.well.jquery-exercises-well
#location2.col-xs-6.well.jquery-exercises-well
#next-exercise.btn.btn-primary.btn-lg.btn-block
| #next-exercise
br