Spaces:
No application file
No application file
Download Core/public/custom_scripts.js from CastroForGeorgia/Mantle: direct link, hf CLI and curl.
- Browser
- Download file 990 Bytes
-
https://huggingface.co/spaces/CastroForGeorgia/Mantle/resolve/main/Core/public/custom_scripts.js
- Command line
-
hf download hf://spaces/CastroForGeorgia/Mantle/Core/public/custom_scripts.js
-
curl -L -o custom_scripts.js https://huggingface.co/spaces/CastroForGeorgia/Mantle/resolve/main/Core/public/custom_scripts.js
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 | |
| }; | |