v26110270 预览:广场 179 篇标题正文去 AI 味重写;首页倒计时「距离见面」移到天数前;百宝箱下方改便签墙;首页支持 ?go=me / ?go=rec 直达

Co-Authored-By: AI 助手
This commit is contained in:
deploy
2026-11-03 23:18:03 +00:00
parent 25b307e020
commit 575cfe8304
14 changed files with 437 additions and 396 deletions

View File

@@ -9,7 +9,7 @@
if (/[?&]kit=0(?:&|$)/.test(location.search)) return;
var box = document.getElementById('kit'), sec = document.getElementById('kitHome');
if (!box || !sec) return;
var V = '26110269';
var V = '26110270';
var l = document.createElement('link'); l.rel = 'stylesheet'; l.href = 'js/kit.css?v=' + V; document.head.appendChild(l);
document.documentElement.classList.add('has-kit');
@@ -93,14 +93,22 @@
return { r: r, wk: wk };
}
var TAG = { qz: '测试', qa: '百问', js: '计算器' };
var KN_IC = {
qz: '<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M9 3h6M10 3v6l-5 9a2 2 0 001.8 3h10.4a2 2 0 001.8-3l-5-9V3" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>',
qa: '<svg viewBox="0 0 24 24" aria-hidden="true"><path d="M4 5h16v11H9l-5 4z" fill="none" stroke="currentColor" stroke-width="2" stroke-linejoin="round"/><path d="M10 9.5a2 2 0 113 1.7c-.6.4-1 .8-1 1.5M12 14.5h.01" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/></svg>',
js: '<svg viewBox="0 0 24 24" aria-hidden="true"><rect x="5" y="3" width="14" height="18" rx="2.5" fill="none" stroke="currentColor" stroke-width="2"/><path d="M8.5 7h7M8.5 12h.01M12 12h.01M15.5 12h.01M8.5 16h.01M12 16h.01M15.5 16h.01" stroke="currentColor" stroke-width="2.2" stroke-linecap="round"/></svg>'
};
function paint() {
nums();
var d = rows(), L = box.querySelector('.kit-list');
box.querySelector('.kit-wk').textContent = d.wk ? '孕 ' + d.wk + ' 周' : '';
/* 11-03 用户:「这 6 条跟下面孕妈广场那 6 条太像,换个有创意的形式」→ 便签墙:两列六张小便签,按类型配色(测试紫 / 百问绿 / 计算器橙),
顶上一条半透明胶带、左右轻微歪一点,角上类型小章,问题写大、人数放底下。不再用编号列表。 */
L.className = 'kit-list kit-notes';
L.innerHTML = d.r.map(function (x, i) {
return '<a class="ms-it ripple kit-it" href="' + esc(x.href) + '"><i class="ms-no">' + (i + 1) + '</i>' +
'<span class="ms-m"><span class="ms-q">' + esc(x.q) + '</span><span class="ms-h">' + FIRE + '<b>' + wan(x.n) + x.u + '</b></span></span>' +
'<span class="kit-tg t-' + x.c + '">' + TAG[x.c] + '</span><i class="ms-go">›</i></a>';
return '<a class="kn ripple t-' + x.c + '" href="' + esc(x.href) + '" style="--r:' + ([-1.6, 1.2, 1.4, -1.1, -1.3, 1.6][i] || 0) + 'deg">' +
'<i class="kn-tape" aria-hidden="true"></i><span class="kn-tg">' + KN_IC[x.c] + TAG[x.c] + '</span>' +
'<span class="kn-q">' + esc(x.q) + '</span><span class="kn-n">' + FIRE + '<b>' + wan(x.n) + '</b>' + x.u + '</span></a>';
}).join('');
}
fetch('assets/data/qa/hot.json?v=' + V).then(function (r) { return r.ok ? r.json() : []; }).catch(function () { return []; })