Spaces:
Build error
Build error
Download tecnicas/static/js/panel-basic-cata.js from chartManD/cata_system: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/spaces/chartManD/cata_system/resolve/main/tecnicas/static/js/panel-basic-cata.js
- Command line
-
hf download hf://spaces/chartManD/cata_system/tecnicas/static/js/panel-basic-cata.js
-
curl -L -o panel-basic-cata.js https://huggingface.co/spaces/chartManD/cata_system/resolve/main/tecnicas/static/js/panel-basic-cata.js
1.03 kB
| const descriptons = { | |
| atributos: | |
| "Con el estilo atributos elijes las palabras para evaluar los productos", | |
| vocabulario: | |
| "Los vocabularios son un conjunto de palabras específicas para evaluar aspectos de un producto", | |
| }; | |
| const helpStyleWords = document.querySelector(".cts-help-style-words"); | |
| let radiosStyleWords; | |
| function initRadiosStyleWords() { | |
| radiosStyleWords = document.getElementsByName("estilo_palabras"); | |
| console.log(radiosStyleWords); | |
| for (let index = 0; index < radiosStyleWords.length; index++) { | |
| const radio = radiosStyleWords[index]; | |
| if (radio.checked) { | |
| const radioOption = radio.parentElement.textContent.trim(); | |
| const textHelp = descriptons[radioOption]; | |
| helpStyleWords.textContent = textHelp; | |
| } | |
| radio.parentElement.addEventListener("click", (e) => { | |
| const radioOption = radio.parentElement.textContent.trim(); | |
| const textHelp = descriptons[radioOption]; | |
| helpStyleWords.textContent = textHelp; | |
| }); | |
| } | |
| } | |
| initRadiosStyleWords(); | |