Support Center
v1.0
Management
Title
Message
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?
Logging Out Readers
AI Tools
Summarize Page
Copy Markdown
Open in ChatGPT
Open in Claude
Connect to Cursor
Connect to VS Code
To log out readers, a logout function can be called on the window object.
For example, if you wish to allow the readers to log out themselves from a secure session, a logout button can be added to the top right corner next to the navigation links. Add the following Custom JS:
HTML
<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>Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated by Zaid Daba'een on Oct 24, 2024
Anything missing? Leave us feedback
Next to read:
CollaborationNeed 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