Skip to content

Commit

Permalink
Good
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidS12321 committed Feb 3, 2024
1 parent 21d2ed3 commit 8e10800
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ document.addEventListener('DOMContentLoaded', function () {

// Add event listener to each checkbox
checkboxes.forEach(function (checkbox) {
checkbox.addEventListener('change', applyFilters);
checkbox.addEventListener('change', function (event) {
applyFilters();
event.preventDefault();
return false;
});
});

// Initial display of all places
Expand Down
2 changes: 1 addition & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ nav a:hover {
.place-container {
display: flex;
flex-wrap: wrap; /* Allow wrapping to the next line when there's not enough space */
justify-content: right; /* Center the boxes horizontally */
margin-left: 350px;
margin-top: -400px;
}

Expand Down

0 comments on commit 8e10800

Please sign in to comment.