Spaces:
Build error
Build error
Download app/css/js.js from nmtan2001/Demo_Chatbot: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/spaces/nmtan2001/Demo_Chatbot/resolve/main/app/css/js.js
- Command line
-
hf download hf://spaces/nmtan2001/Demo_Chatbot/app/css/js.js
-
curl -L -o js.js https://huggingface.co/spaces/nmtan2001/Demo_Chatbot/resolve/main/app/css/js.js
1.03 kB
| function createGradioAnimation() { | |
| var container = document.createElement('div'); | |
| container.id = 'gradio-animation'; | |
| container.style.fontSize = '2em'; | |
| container.style.fontWeight = 'bold'; | |
| container.style.textAlign = 'center'; | |
| container.style.marginBottom = '20px'; | |
| var text = "Vietnam's Enterprise Laws chatbot"; | |
| for (var i = 0; i < text.length; i++) { | |
| (function(i){ | |
| setTimeout(function(){ | |
| var letter = document.createElement('span'); | |
| letter.style.opacity = '0'; | |
| letter.style.transition = 'opacity 0.5s'; | |
| letter.innerText = text[i]; | |
| container.appendChild(letter); | |
| setTimeout(function() { | |
| letter.style.opacity = '1'; | |
| }, 50); | |
| }, i * 250); | |
| })(i); | |
| } | |
| var gradioContainer = document.querySelector('.description'); | |
| gradioContainer.insertBefore(container, gradioContainer.firstChild); | |
| return 'Animation created'; | |
| } |