1 2$(document).ready(function () { 3 $('#toggleButton').click(function () { 4 $('#formContainer').toggle(); 5 }); 6}); 7document.addEventListener("DOMContentLoaded", () => { 8 const headers = document.querySelectorAll(".head_a"); 9 headers.forEach((header) => { 10 header.addEventListener("click", () => { 11 const headerId = header.getAttribute("id"); 12 const relatedBody = header.nextElementSibling; 13 if (relatedBody && relatedBody.classList.contains("body_a")) { 14 const isVisible = getComputedStyle(relatedBody).display === "block"; 15 relatedBody.style.display = isVisible ? "none" : "block"; 16 } 17 }); 18 }); 19}); 20fullscreen_custom_page(); 21function fullscreen_custom_page() { 22 var iframeElement = document.querySelector(".fullscreen_custom_page"); 23 if (iframeElement) { 24 var parentElement = iframeElement.closest(".offset-md-1.col-md-10.offset-lg-2.col-lg-8"); 25 var parentElement2 = iframeElement.closest(".container.main__content"); 26 var parentElement3 = iframeElement.closest(".row"); 27 if (parentElement) { 28 parentElement.classList.remove("offset-md-1", "col-md-10", "offset-lg-2", "col-lg-8"); 29 parentElement2.classList.remove("container", "main__content"); 30 parentElement.classList.add("col-11"); 31 parentElement2.classList.add("container-fluid", "main__content"); 32 parentElement3.classList.add("justify-content-center"); 33 } 34 } 35} 36const panelMapping = { 37 'editorial1': 'editorial', 38 'editorial2': 'editorial-secondary', 39 'editorial3': 'editorial-other' 40}; 41for (let headingId in panelMapping) { 42 const contentId = panelMapping[headingId]; 43 const heading = document.getElementById(headingId); 44 const content = document.getElementById(contentId); 45 if (heading) { 46 heading.addEventListener('click', () => { 47 if (content) { 48 content.style.display = content.style.display === 'none' || content.style.display === '' 49 ? 'block' 50 : 'none'; 51 } 52 }); 53 } 54} 55var togglePasswordButton = document.getElementById('togglePassword'); 56if (togglePasswordButton) { 57 togglePasswordButton.addEventListener('click', function () { 58 var passwordField = document.getElementById('password'); 59 var type = passwordField.getAttribute('type') === 'password' ? 'text' : 'password'; 60 passwordField.setAttribute('type', type); 61 var icon = this.querySelector('i'); 62 if (type === 'password') { 63 icon.classList.remove('fi-rr-eye-crossed'); 64 icon.classList.add('fi-rr-eye'); 65 } else { 66 icon.classList.remove('fi-rr-eye'); 67 icon.classList.add('fi-rr-eye-crossed'); 68 } 69 }); 70} 71document.addEventListener("DOMContentLoaded", function () { 72 var bloqueCitas = document.querySelector('.pkp_block.citations_plugin'); 73 var contenedorLateral = document.querySelector('.left-article-block.col-xl-4.mt-0'); 74 var referenciaCita = contenedorLateral ? contenedorLateral.querySelector('.item.citation') : null; 75 if (bloqueCitas && contenedorLateral && referenciaCita) { 76 referenciaCita.parentNode.insertBefore(bloqueCitas, referenciaCita); 77 } else { 78 console.warn("No se encontraron uno o más elementos para mover el bloque de citas."); 79 } 80}); 81 82//Función para mostrar y ocultar el formulario de inicio de sesión 83fullscreen_custom_page(); 84 85$(document).ready(function () { 86 $('#toggleButton').click(function () { 87 $('#formContainer').toggle(); 88 }); 89});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.