Estrutura de Cargos

const breadcrumbDiv = document.getElementById("breadcrumb"); const urlParts = window.location.href.split("/"); let breadcrumbHTML = ''; let currentURL = ''; for (let i = 3; i < urlParts.length - 2; i++) { if (urlParts[i] !== '') { currentURL += '/' + urlParts[i]; const part = decodeURIComponent(urlParts[i]).replace(/-/g, ' '); const capitalizedPart = part.charAt(0).toUpperCase() + part.slice(1); if (breadcrumbHTML) { breadcrumbHTML += `» ${capitalizedPart}`.replace(capitalizedPart, 'Início'); } else { breadcrumbHTML += `${capitalizedPart}`.replace(capitalizedPart, 'Início'); } } } const pageTitleElement = document.querySelector(".ast-advanced-headers-title"); const pageTitle = pageTitleElement ? pageTitleElement.textContent : ""; if (pageTitle) { breadcrumbHTML += ` » ${pageTitle}`; } breadcrumbDiv.innerHTML = breadcrumbHTML;
Última atualização em terça-feira, 05 nov 2024 – 16:05 hrs
Pesquisar
Pular para o conteúdo