Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

selectOption.js 452B

123456789101112
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. function selectOption(html, elem) {
  4. elem.selected = true;
  5. let parent = elem.parentElement;
  6. while (parent && parent.tagName.toLowerCase() !== 'select') {
  7. parent = parent.parentElement;
  8. }
  9. parent.dispatchEvent(new Event('input', { bubbles: true }));
  10. parent.dispatchEvent(new Event('change', { bubbles: true }));
  11. }
  12. exports.default = selectOption;