Commit 6951d40b authored by Raniere Silva's avatar Raniere Silva Committed by GitHub
Browse files

Merge pull request #148 from rgaiacs/show-challenges

Make challenges and discussion visibles
parents e4e394bb 6f6cba4d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@ $("table").addClass("table table-striped");


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