fix a jquery exercise regression and make jquery exercises run in firefox
This commit is contained in:
@ -6,7 +6,7 @@ var _ = require('lodash'),
|
|||||||
* Bonfire controller
|
* Bonfire controller
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var highestBonfireNumber = 10;
|
var highestBonfireNumber = 1;
|
||||||
|
|
||||||
exports.index = function(req, res) {
|
exports.index = function(req, res) {
|
||||||
res.render('bonfire/bonfire.jade', {
|
res.render('bonfire/bonfire.jade', {
|
||||||
|
@ -556,7 +556,7 @@ div.CodeMirror-scroll {
|
|||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.well {
|
.jquery-exercises-well {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
height: 200px;
|
height: 200px;
|
||||||
}
|
}
|
||||||
|
@ -56,12 +56,12 @@ block content
|
|||||||
$('#hint').text(hint[currentExercise]);
|
$('#hint').text(hint[currentExercise]);
|
||||||
handleExerciseTransition();
|
handleExerciseTransition();
|
||||||
}
|
}
|
||||||
$('#exercise-directory').on('click', 'li', event, function () {
|
$('#exercise-directory').on('click', 'li', function (event) {
|
||||||
currentExercise = $(this).index();
|
currentExercise = $(this).index();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
refreshEverything(event);
|
refreshEverything(event);
|
||||||
});
|
});
|
||||||
$('#next-exercise').on('click', event, function () {
|
$('#next-exercise').on('click', function (event) {
|
||||||
++currentExercise;
|
++currentExercise;
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
refreshEverything(event);
|
refreshEverything(event);
|
||||||
@ -105,8 +105,8 @@ block content
|
|||||||
.col-xs-6 #location1
|
.col-xs-6 #location1
|
||||||
.col-xs-6 #location2
|
.col-xs-6 #location2
|
||||||
.row
|
.row
|
||||||
#location1.col-xs-6.well
|
#location1.col-xs-6.well.jquery-exercises-well
|
||||||
#location2.col-xs-6.well
|
#location2.col-xs-6.well.jquery-exercises-well
|
||||||
#next-exercise.btn.btn-primary.btn-lg.btn-block
|
#next-exercise.btn.btn-primary.btn-lg.btn-block
|
||||||
| #next-exercise
|
| #next-exercise
|
||||||
br
|
br
|
||||||
|
Reference in New Issue
Block a user