add checkbox cross off effect to challenges and reword pairwise bonfire

This commit is contained in:
Michael Q Larson
2015-04-13 02:41:42 -04:00
parent 83c14cccc4
commit 11548bfcf9
4 changed files with 22 additions and 5 deletions

View File

@@ -910,6 +910,10 @@ iframe.iphone {
text-decoration: underline;
}
.step-text {
margin-left: -10px;
}
//uncomment this to see the dimensions of all elements outlined in red
//* {
// border-color: red;

View File

@@ -30,6 +30,15 @@ $(document).ready(function() {
.addClass('animated fadeInDown');
});
$('.challenge-list-checkbox').on('change', function() {
if ($(this).is(":checked")) {
$(this).parent().parent().children('.step-text').addClass('strikethrough text-primary');
}
if (!$(this).is(":checked")) {
$(this).parent().parent().children('.step-text').removeClass('strikethrough text-primary');
}
});
function completedBonfire(didCompleteWith, bonfireSolution, thisBonfireHash, bonfireName) {
$('#complete-bonfire-dialog').modal('show');
// Only post to server if there is an authenticated user