utils.jq(() => { $(function () { const els = document.getElementsByClassName('ds-fcircle'); 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) { const arr = data.article_data || []; const limit = el.getAttribute('limit'); arr.forEach((item, i) => { if (limit && i >= limit) { return; } var cell = '