加载中...
function esc(s){return String(s==null?'':s).replace(/[&<>\"]/g,function(c){return {'&':'&','<':'<','>':'>','\"':'"'}[c]})} function gameLogo(g){if(g.icon)return '';return ''} function selectGameFilter(value,button){gameFilter.value=value||'';document.querySelectorAll('#gamePillRow .game-pill').forEach(function(btn){btn.classList.remove('active')});if(button)button.classList.add('active');filter()} function renderGamePills(items){var row=document.getElementById('gamePillRow'),html='';(items||[]).filter(function(g){return Number(g.id||0)>0}).slice(0,12).forEach(function(g){html+=''});row.innerHTML=html}