utils.jq(() => { $(function () { const els = document.getElementsByClassName('ds-giscus'); 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 limit = el.getAttribute('limit'); data.forEach((item, i) => { if (limit && i >= limit) { return; } comment = item.body.length > 50 ? item.body.substring(0, 50) + '...' : item.body; var cell = '