Higlighted insights
{
const queryString = new URLSearchParams(new FormData($refs.filter)).toString()
const overviewID = 'inzichten-overview';
fetch('?' + queryString)
.then(response => response.text())
.then(data => {
let parser = new DOMParser();
let doc = parser.parseFromString(data, 'text/html')
let content = doc.querySelector('#' + overviewID).innerHTML;
document.querySelector('#' + overviewID).innerHTML = content;
history.replaceState(null, null, '?' + queryString);
})
.catch(error => console.error('Error: ', error))
.finally(() => {
scrollToOverview(overviewID);
})
})">