// Activate Bootstrap tab from URL hash (for employer profile CTA links) window.addEventListener('load', function() { var hash = window.location.hash; if (hash) { var tabLink = document.querySelector('a[data-toggle="tab"][href="' + hash + '"]'); if (tabLink) { if (typeof jQuery !== 'undefined') { jQuery('a[data-toggle="tab"][href="' + hash + '"]').tab('show'); } else { tabLink.click(); } setTimeout(function() { tabLink.scrollIntoView({behavior: 'smooth', block: 'start'}); }, 300); } } });