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) { const results = []; data.forEach(item => { const titles = item.titles.join('
'); results.push(` `); }); return results.join(''); } export function renderMangaSearchResults (data) { const results = []; data.forEach(item => { const titles = item.titles.join('
'); results.push(` `); }); return results.join(''); }