File manager - Edit - /var/www/html/portalHomolog/public/pmar/js/toggle.js
Back
function showHideSecretariaID(secretariaType) { const secretariaDIV = document.getElementById("secretariaDIV"); const structureID = document.getElementById("structureID"); if (this.inArray(secretariaType, ["SECRETARIA_EXECUTIVA", "DIRETORIA", "SUPERINTENDENCIA"])) { secretariaDIV.classList.remove("d-none"); } else { secretariaDIV.classList.add("d-none"); } if (structureID) { structureID.value = ""; structureID.dispatchEvent(new Event('change')); } } function toggleHtmlInfo(value) { const htmlTypes = ['HTML', 'HTML_NOTICIAS']; const newsTypes = ['NOTICIAS', 'HTML_NOTICIAS']; const infoCreate = document.getElementById('htmlInfoCreate'); const infoEdit = document.getElementById('htmlInfoEdit'); const newsStructureDiv = document.getElementById('newsStructureDiv'); const orderDiv = document.getElementById('pageContentOrderDiv'); if (infoCreate) { htmlTypes.includes(value) ? infoCreate.classList.remove('d-none') : infoCreate.classList.add('d-none'); } if (infoEdit) { htmlTypes.includes(value) ? infoEdit.classList.remove('d-none') : infoEdit.classList.add('d-none'); } if (newsStructureDiv) { newsTypes.includes(value) ? newsStructureDiv.classList.remove('d-none') : newsStructureDiv.classList.add('d-none'); } if (orderDiv) { value === 'HTML_NOTICIAS' ? orderDiv.classList.remove('d-none') : orderDiv.classList.add('d-none'); } } function toggleSearchForm() { const searchForm = document.getElementById("searchForm"); if (searchForm) { searchForm.classList.toggle("d-none"); } } function toggleNumero(obj) { const divNumero = document.getElementById('div-numero'); if (obj.value === "INFORMATIVOS_DO_RH") { divNumero.classList.add("d-none"); } else { divNumero.classList.remove("d-none"); } } function toggleEmbarcacaoAndBoats(obj) { const tiposEmbarcacaoAndBoats = document.getElementById("tiposEmbarcacaoAndBoats"); const enumBoats = document.getElementById("enumBoats"); const enumEmbarcacoes = document.getElementById("enumEmbarcacoes"); if (obj.value == "TAXI_BOATS") { tiposEmbarcacaoAndBoats.innerHTML = enumBoats ? enumBoats.innerHTML : ''; } else { tiposEmbarcacaoAndBoats.innerHTML = enumEmbarcacoes ? enumEmbarcacoes.innerHTML : ''; } } function isPessoaFisicaOuPessoaJuridica(valor) { const pessoaFisica = document.getElementById("pessoaFisica"); const pessoaJuridica = document.getElementById("pessoaJuridica"); const cpf = document.getElementById("cpf"); const cnpj = document.getElementById("cnpj"); if (valor === '1') { pessoaFisica.classList.remove("d-none"); pessoaJuridica.classList.add("d-none"); if (cnpj) cnpj.value = ""; } else { pessoaJuridica.classList.remove("d-none"); pessoaFisica.classList.add("d-none"); if (cpf) cpf.value = ""; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings