feature: Initial commit

This commit is contained in:
Keith Solomon
2025-01-30 15:00:34 -06:00
commit 851a40c1c0
4 changed files with 159 additions and 0 deletions

17
assets/script.js Normal file
View File

@@ -0,0 +1,17 @@
jQuery(document).ready(function ($) {
$('#resource-filter').on('submit', function (e) {
e.preventDefault();
let formData = {
action: 'filter_resources',
nonce: resourceFilterAjax.nonce,
search: $('#search').val(),
resource_type: $('#resource_type').val(),
resource_subject: $('#resource_subject').val(),
};
$.post(resourceFilterAjax.ajaxurl, formData, function (response) {
$('#resource-results').html(response);
});
});
});

13
assets/style.css Normal file
View File

@@ -0,0 +1,13 @@
#resource-filter {
display: flex;
gap: 10px;
margin-bottom: 20px;
}
#resource-filter input,
#resource-filter select,
#resource-filter button {
border: 1px solid #ccc;
font-size: 16px;
padding: 8px;
}