Download text-generation-webui/css/main.js from mmcw23-p/Project: direct link, hf CLI and curl.
- Browser
- Download file 772 Bytes
-
https://huggingface.co/spaces/mmcw23-p/Project/resolve/main/text-generation-webui/css/main.js
- Command line
-
hf download hf://spaces/mmcw23-p/Project/text-generation-webui/css/main.js
-
curl -L -o main.js https://huggingface.co/spaces/mmcw23-p/Project/resolve/main/text-generation-webui/css/main.js
772 Bytes
| document.getElementById("main").parentNode.childNodes[0].style = "border: none; background-color: #8080802b; margin-bottom: 40px"; | |
| document.getElementById("main").parentNode.style = "padding: 0; margin: 0"; | |
| document.getElementById("main").parentNode.parentNode.parentNode.style = "padding: 0"; | |
| // Get references to the elements | |
| let main = document.getElementById('main'); | |
| let main_parent = main.parentNode; | |
| let extensions = document.getElementById('extensions'); | |
| // Add an event listener to the main element | |
| main_parent.addEventListener('click', function(e) { | |
| // Check if the main element is visible | |
| if (main.offsetHeight > 0 && main.offsetWidth > 0) { | |
| extensions.style.display = 'flex'; | |
| } else { | |
| extensions.style.display = 'none'; | |
| } | |
| }); | |