This commit is contained in:
Campbell Alden 2022-09-02 19:33:04 +09:00
parent 858c725bac
commit ade4dfd1d2
8 changed files with 56 additions and 34 deletions

View file

@ -1,8 +1,12 @@
const searchInput = document.getElementById('movie-search');
const datalist = document.getElementById('movies');
const dataitems = new Map();
const dataSummaries = new Map();
Array.from(datalist.children).forEach(function (ch) {
dataitems.set(ch.value, ch.getAttribute('data-value'));
if (navigator.userAgent.match(/firefox/i)) {
ch.innerHTML = ch.value;
}
});
searchInput.addEventListener('change', function(e) {