import _ from './base/AnimeClient.js'; // Wire up mal checkbox _.on('main', 'change', '.big-check', (e) => { const id = e.target.id; _.$('.mal-check').forEach(el => { el.checked = false; }) document.getElementById(`mal_${id}`).checked = true; }); export function renderAnimeSearchResults (data) { const results = []; data.forEach(x => { const item = x.attributes; const titles = item.titles.reduce((prev, current) => { return prev + `${current}
`; }, []); results.push(` `); }); return results.join(''); } export function renderMangaSearchResults (data) { const results = []; data.forEach(x => { const item = x.attributes; const titles = item.titles.reduce((prev, current) => { return prev + `${current}
`; }, []); results.push(` `); }); return results.join(''); }