Sha256: 805104d834a5ac7a63a626eb50b91bb86bd5b8026d332a829270a431fc7fb963
Contents?: true
Size: 516 Bytes
Versions: 22
Compression:
Stored size: 516 Bytes
Contents
/* eslint-disable no-invalid-this */ /* eslint-disable require-jsdoc */ export default function initLanguageChangeSelect(elements) { elements.forEach((select) => { select.addEventListener("change", () => { let targetTabPaneSelector = select.value; let tabsContent = select.parentElement.parentElement.nextElementSibling; tabsContent.querySelector(".is-active").classList.remove("is-active"); tabsContent.querySelector(targetTabPaneSelector).classList.add("is-active"); }) }); }
Version data entries
22 entries across 22 versions & 1 rubygems