diff --git a/pages/projetos.md b/pages/projetos.md index ff7d8ee4..024407af 100755 --- a/pages/projetos.md +++ b/pages/projetos.md @@ -268,6 +268,14 @@ document.addEventListener('DOMContentLoaded', () => { const fullEditBtn = document.getElementById('full-edit-btn'); const closeButtons = document.querySelectorAll('.modal-background, .modal-card-head .delete, #close-modal-btn'); + function normalizarChaveJS(str) { + if (!str) return ""; + return str.toString() + .toLowerCase() + .normalize("NFD").replace(/[\u0300-\u036f]/g, "") + .replace(/[^a-z0-9]/g, ""); + } + function openModal(url, title, btnText, btnLink) { if(!modal) return; modalTitle.textContent = title;