Teste de filtros de projetos
Deploy / Deploy (push) Successful in 1m22s Details

This commit is contained in:
JotaChina 2025-12-13 21:37:07 -03:00
parent 6f50de815f
commit 01137c967c
1 changed files with 8 additions and 0 deletions

View File

@ -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;