Spaces:
Sleeping
Sleeping
Download script.js from arcshukla/career_agent: direct link, hf CLI and curl.
- Browser
- Download file 476 Bytes
-
https://huggingface.co/spaces/arcshukla/career_agent/resolve/main/script.js
- Command line
-
hf download hf://spaces/arcshukla/career_agent/script.js
-
curl -L -o script.js https://huggingface.co/spaces/arcshukla/career_agent/resolve/main/script.js
476 Bytes
| function scrollChat() { | |
| const chat = document.querySelector('#chatbot .wrap'); | |
| if (!chat) return; | |
| chat.scrollTop = chat.scrollHeight; | |
| } | |
| document.addEventListener("DOMContentLoaded", () => { | |
| const target = document.querySelector('#chatbot'); | |
| if (!target) return; | |
| const observer = new MutationObserver(() => { | |
| scrollChat(); | |
| }); | |
| observer.observe(target, { | |
| childList: true, | |
| subtree: true | |
| }); | |
| }); |