Centro de soporte
v1.0
Español
Cierre de sesión de los lectores
Herramientas de IA
Summarize Page
Copy Markdown
Open in ChatGPT
Open in Claude
Connect to Cursor
Connect to VS Code
Para cerrar la sesión de los lectores, se puede llamar a una función logout en el objeto window.
Por ejemplo, si desea permitir que los lectores cierren sesión por sí mismos desde una sesión segura, se puede añadir un botón de cierre de sesión en la esquina superior derecha, junto a los enlaces de navegación. Añada el siguiente Custom JS:
<script>
document.addEventListener('onprojectloaded', function () {
var logoutBtn = document.createElement('DIV');
logoutBtn.innerHTML = 'Logout';
logoutBtn.classList.add('logout'); // Style as needed
logoutBtn.onclick = function() {
window.logout();
window.location.href = '/'; // Change this to a useful link
};
document.querySelector('.links-container').appendChild(logoutBtn);
});
</script>
Última actualización por Zaid Daba'een el Oct 24, 2024
Anything missing? Leave us feedback
Need help? Visit our community forums or contact us.
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message
Primeros pasos
Publicación y alojamiento
Integraciones y sincronización
Búsqueda y analíticas
Page
Code Steps
Category
Label
Link
Separator
Title
Message
Page icon
No icon. This page keeps the plain index row.
orSVG or PNG, square, at least 32×32.
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?