utils.jq(() => { $(function () { const els = document.getElementsByClassName('stellar-friends-api'); for (var i = 0; i < els.length; i++) { const el = els[i]; const api = el.getAttribute('api'); if (api == null) { continue; } const default_avatar = def.avatar; // layout utils.request(el, api, function(data) { for (let item of (data.content || data)) { var cell = `
`; cell += ``;; cell += ``; cell += `
`; cell += `${item.title || item.login}`; cell += `
`; cell += `
`; cell += `
`; $(el).find('.grid-box').append(cell); } }); } }); });