Mantle / Core /public /custom_scripts.js
andrescastro-us's picture
more styles
b0387d4
Raw History Blame Contribute Delete
990 Bytes
window.onload = function () {
setTimeout(() => {
// Select all anchor tags with href containing the specified URL
const links = document.querySelectorAll("a[href*='https://github.com/Chainlit/chainlit']");
links.forEach(link => {
// Update the content of the link
link.textContent = "CastroForGeorgia chats aren't used to train our models. CastroForGeorgia can make mistakes. ALWAYS double-check resources.";
// Update the href to point to the new terms of service
link.href = 'https://andrescastro.us/project/help/terms-of-service';
// Apply CSS to center align the text
link.style.display = 'block'; // Ensure the link behaves like a block element
link.style.textAlign = 'center'; // Align the text to the center
link.style.visibility = 'visible'; // Ensure visibility if necessary
});
}, 2000); // 5-second delay
};