import _ from './anime-client.js'; // Click on hidden MAL checkbox so // that MAL id is passed _.on('main', 'change', '.big-check', (e) => { const id = e.target.id; document.getElementById(`mal_${id}`).checked = true; }); export function renderAnimeSearchResults (data) { return data.map(item => { const titles = item.titles.join('
'); return ` `; }).join(''); } export function renderMangaSearchResults (data) { return data.map(item => { const titles = item.titles.join('
'); return ` `; }).join(''); }