Sha256: afcfcb01054917e34fb36f333ebe09d16c0fd56e38032e6738379e1b2d85aad9
Contents?: true
Size: 505 Bytes
Versions: 13
Compression:
Stored size: 505 Bytes
Contents
const toggleInfo = (val) => { document.querySelectorAll(".help-text").forEach((toBeHidden) => { if (val === toBeHidden.id && toBeHidden.classList.value.includes("hide")) { toBeHidden.classList.remove("hide") } else { toBeHidden.classList.add("hide") } }); }; export default () => { const item = document.querySelector("#result_import_projects_origin_component_id"); item.addEventListener(("change"), (event) => { toggleInfo(`component_${event.target.value}`); }); };
Version data entries
13 entries across 13 versions & 1 rubygems