${ includeHTML('/projects/' + this.data.params.project + '/project-name/') .then((html) => { // Highlight momentarily the item corresponding to location hash setTimeout(() => { if (!location.hash) { return; } const target = element.querySelector(location.hash); if (!target) { return; } if (target.parentNode.matches('slide-show')) { return; } target.scrollIntoView({ behavior: 'smooth', block: 'center' }); target.classList.add('target'); setTimeout(() => target.classList.remove('target'), 12000); }, 800); return html; }) } Close