diff --git a/js/mobilecheck.js b/js/mobilecheck.js index 9e0f5da..e63bc41 100644 --- a/js/mobilecheck.js +++ b/js/mobilecheck.js @@ -21,11 +21,16 @@ $(document).ready(function() { }); } + $(".filter-button").on("click", function(event) { + event.preventDefault(); + var url = $(this).data("url"); + window.location.href = url; + }); + $("#mobileCheckbox").on("change", function() { updateVisibility(); updateLinks(); }); - // Initialize visibility and links based on the checkbox state updateVisibility(); });