File manager - Edit - /var/www/html/portal/public/pmar/js/utilitarios.js
Back
function inArray(needle, haystack) { return haystack.includes(needle); } function capitalizeFirstLetter(string) { return string.charAt(0).toUpperCase() + string.slice(1); } function formatHour(hour) { const newHour = hour.split(":"); return `${newHour[0]}:${newHour[1]}`; } function showAlert(message, type = 'info', duration = 3000) { const alertClass = `alert-${type}`; const alertDiv = document.createElement('div'); alertDiv.className = `alert ${alertClass} alert-dismissible fade show position-fixed`; alertDiv.style.cssText = 'top: 20px; right: 20px; z-index: 9999; min-width: 300px;'; alertDiv.innerHTML = ` ${message} <button type="button" class="btn-close" data-bs-dismiss="alert"></button> `; document.body.appendChild(alertDiv); setTimeout(() => { if (alertDiv.parentElement) { alertDiv.remove(); } }, duration); } function abrirJanelaCentralizada(url) { const largura = window.innerWidth * 0.6; const altura = window.innerHeight * 0.8; const left = window.screenX + (window.innerWidth - largura) / 2; const top = window.screenY + (window.innerHeight - altura) / 2; const novaJanela = window.open( url, "_blank", `toolbar=no, scrollbars=yes, resizable=yes, width=${largura}, height=${altura}, top=${top}, left=${left}` ); if (novaJanela) { novaJanela.focus(); const timer = setInterval(function () { if (novaJanela.closed) { clearInterval(timer); window.location.reload(); } }, 500); } else { alert("O navegador bloqueou a janela popup. Permita popups para este site."); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings