关注前3条加回6~8个小头像、百宝箱同时滚动1~2条、测试封面改真实风景照+分组柔光遮罩(v26110412)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
deploy
2026-11-04 07:48:30 +00:00
parent 1aece8ee65
commit 6860c73b9b
54 changed files with 107 additions and 66 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 = '26110411';
var V = '26110412';
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');
@@ -198,7 +198,7 @@
function lvShuffle() {
var rs = [].slice.call(box.querySelectorAll('.kit-rows .kr')).filter(function (r) { return r.querySelector('.kr-lv'); });
if (!rs.length) return;
var n = Math.min(rs.length, Math.random() < .5 ? 2 : 3), nx, t = 0;
var n = Math.min(rs.length, Math.random() < .5 ? 1 : 2), nx, t = 0; /* 11-04 用户:同时滚动 2~3 条 → 1~2 条,不超过 2 */
do { /* 随机挑 n 条;和上一轮完全一样就重挑,保证每次都有变化 */
nx = rs.map(function (r, i) { return i; }).sort(function () { return Math.random() - .5; }).slice(0, n).sort();
} while (nx.join() === LV_ON.join() && ++t < 9);