[TASK] [NPM] install choices.js (styling copy & paste)

This commit is contained in:
Marie Birner
2023-09-23 19:19:28 +02:00
committed by philipp
parent 90155dbc0f
commit 5e097a95da
6 changed files with 359 additions and 229 deletions

View File

@ -1,3 +1,13 @@
import Choices from "choices.js";
const selects = document.querySelectorAll('select[multiple]');
if(selects) {
Array.prototype.forEach.call(selects, (select: HTMLInputElement) => {
const choices = new Choices(select);
});
}
/*document.addEventListener('DOMContentLoaded', function() {
setDistance('.set-distance-js');
});