Skip to content

Commit 8e434e5

Browse files
committed
updated so challenges appear by default
1 parent 5df2fca commit 8e434e5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

assets/js/lesson.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ $("table").addClass("table table-striped");
33

44

55
// Handle foldable challenges and solutions (on click and at start).
6-
$(".challenge,.discussion,.solution").click(function(event) {
6+
$(".solution").click(function(event) {
77
var trigger = $(event.target).has(".fold-unfold").size() > 0
88
|| $(event.target).filter(".fold-unfold").size() > 0;
99
if (trigger) {
@@ -12,7 +12,7 @@ $(".challenge,.discussion,.solution").click(function(event) {
1212
event.stopPropagation();
1313
}
1414
});
15-
$(".challenge,.discussion,.solution").each(function() {
15+
$(".solution").each(function() {
1616
$(">*:not(h2)", this).toggle();
1717
var h2 = $("h2:first", this);
1818
h2.append("<span class='fold-unfold glyphicon glyphicon-collapse-down'></span>");

0 commit comments

Comments
 (0)