Skip to content

Commit

Permalink
Finished Checklist Page Structure
Browse files Browse the repository at this point in the history
  • Loading branch information
theLadEli committed Apr 26, 2024
1 parent 2ddad9f commit c980477
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -394,11 +394,30 @@ $(document).ready(function () {
$chevronIcon.toggleClass('flipped');
});

// Prevent accordion toggle when clicking on custom-checkbox
$('.custom-checkbox').click(function (event) {
event.stopPropagation(); // Stop event propagation to parent elements
});

// Checkbox div design functionality
$('.custom-checkbox').click(function () {
$(this).toggleClass('checked');
});


if ($("#cc_5").find(".accordion-item").length > 0) {

console.log("Exterior does contain tasks.")

} else {

console.log("Exterior does not contain tasks.")
$("#cc_5").hide();
$("a.ct_item[href='#cc_5']").hide();

}


// Load sidebar stats
sidebarStats()

Expand Down

0 comments on commit c980477

Please sign in to comment.