测一测:列表、信息流卡、测试开始页显示「N万人测过」模拟人数(AGENTS.md 12b 登记例外,2026-12-31 前复核);v26110224

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
deploy
2026-11-02 12:18:01 +00:00
parent e9ed707c44
commit 1d3eb9de93
8 changed files with 44 additions and 19 deletions

View File

@@ -225,6 +225,7 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
</head>
<body>
<svg class="hide" aria-hidden="true" xmlns="http://www.w3.org/2000/svg">
<symbol id="i-user" viewBox="0 0 24 24"><path d="M16 19v-1a4 4 0 00-4-4H8a4 4 0 00-4 4v1M10 10a3 3 0 100-6 3 3 0 000 6zM20 19v-1a4 4 0 00-3-3.9M15 4.1a3 3 0 010 5.8"/></symbol>
<symbol id="i-back" viewBox="0 0 24 24"><path d="M15 5l-7 7 7 7"/></symbol>
<symbol id="i-arrow" viewBox="0 0 24 24"><path d="M5 12h13M13 6.5l5.5 5.5-5.5 5.5"/></symbol>
<symbol id="i-check" viewBox="0 0 24 24"><path d="M5 12.5l4.5 4.5L19 7.5"/></symbol>
@@ -254,6 +255,7 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
<div class="meta">
<span><svg class="ic"><use href="#i-list"/></svg><b class="num" id="sN"></b>题 · 约<b class="num" id="sMin"></b>分钟</span>
<span id="sKind"></span>
<span id="sCnt"><svg class="ic"><use href="#i-user"/></svg><b class="num" id="sCntN"></b></span>
</div>
<img class="pic" id="sPic" src="" alt="">
</section>
@@ -323,7 +325,8 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
</div>
<div class="toast" id="toast"></div>
<script src="tests.js?v=26110223"></script>
<script src="meta.js?v=26110224"></script>
<script src="tests.js?v=26110224"></script>
<script>
(function () {
'use strict';
@@ -394,6 +397,7 @@ mark{background:linear-gradient(transparent 62%,var(--c20) 0);color:inherit;padd
$('#sKind').innerHTML = '<svg class="ic"><use href="#' + (isQuiz ? 'i-bulb' : 'i-heart') + '"/></svg>' + (isQuiz ? '答完当场看解析' : '没有对错之分');
$('#sPic').src = IMG(0); $('#sPic').alt = t.title;
$('#sLead').textContent = t.intro;
if (window.gcTestedText) $('#sCntN').textContent = gcTestedText(t.id); else $('#sCnt').hidden = true;
$('#sTyEn').textContent = R.length + (isType ? ' TYPES' : ' LEVELS');
$('#sTyT').textContent = isType ? R.length + ' 种结果,你是哪一种?' : isQuiz ? R.length + ' 个称号,你能拿到哪个?' : R.length + ' 种状态,看看你在哪一档';
$('#tgrid').innerHTML = R.map(function (r) { return '<div class="tcard"><img src="' + rImg(r) + '" alt="" loading="lazy"><span><b>' + esc(r.title) + '</b><small>' + esc(r.tag) + '</small></span></div>'; }).join('');