Researchers
/* Code from https://element.how/elementor-taxonomy-filter-on-page-load/ */
window.addEventListener('load', function() {
setTimeout(function() {
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
/* check through parameters to find if one starts with 'e-filter' */
for (const [key, value] of urlParams) {
if (key.startsWith('e-filter')) {
const filterElement = document.querySelector(`[data-filter="${value}"]`);
if (filterElement && filterElement.getAttribute('aria-pressed') == 'false') filterElement.click();
break;
}
}
}, 900);
});