精修 WebUI 第十九轮:sticky elevation + toggle switch + 步进按钮

- sectionTitle sticky 真贴顶时(IntersectionObserver + sentinel rootMargin -65px)加 .isStuck 类,浮起 0 6px 12px 阴影
- 关键开关升级为 toggle switch:.check.isToggle 把 input[type=checkbox] 渲染成 32×18 滑块(slider 配 14×14 圆点 + 0.18 阴影);3 个总控开关接入:infinite_loop_enabled / yanghao_enabled / yanghao_enable_actions / yanghao_only
- fmtDuration 改 mono 格式:HH:MM:SS / MM:SS(padStart),适配 tabular-nums
- 自绘 number stepper:所有 .input[type=number] 自动包 .numStepperWrap,hover/focus 时右侧浮现 ▲▼ 微按钮(18×12 双按钮组),调用 stepUp/stepDown + 派发 input/change;inline2 内不加避免连体冲突
- cache-bust v21 → v22
This commit is contained in:
Codex committed 2026-05-21 09:29:38 +08:00
1 parent f16eadbd75
commit cea5f1df45
3 files changed
+190 -9

No files matched your search

+6 -6
View File
@@ -15,7 +15,7 @@
} catch (e) {}
})();
</script>
<link rel="stylesheet" href="styles.css?v=console-20260520-theme-v21" />
<link rel="stylesheet" href="styles.css?v=console-20260520-theme-v22" />
</head>
<body>
<div class="app">
@@ -253,7 +253,7 @@
<label class="label">允许切换直播间(needswitch)</label>
<div class="row">
<label class="label">无限循环模式</label>
<label class="check">
<label class="check isToggle">
<input id="infinite_loop_enabled" type="checkbox" data-key="infinite_loop_enabled" data-type="bool" />
<span>启用后启动时 wait_minutes 按 0 处理</span>
</label>
@@ -693,14 +693,14 @@
<div class="row grid2">
<div>
<label class="label">养号总开关(关闭=不跑推荐页养号)</label>
<label class="check">
<label class="check isToggle">
<input id="yanghao_enabled" type="checkbox" data-key="yanghao_enabled" data-type="bool" checked />
<span>启用</span>
</label>
</div>
<div>
<label class="label">养号动作开关(爱心/收藏/评论)</label>
<label class="check">
<label class="check isToggle">
<input id="yanghao_enable_actions" type="checkbox" data-key="yanghao_enable_actions" data-type="bool" checked />
<span>启用</span>
</label>
@@ -708,7 +708,7 @@
</div>
<div class="row">
<label class="label">只执行推荐页养号流程</label>
<label class="check">
<label class="check isToggle">
<input id="yanghao_only" type="checkbox" data-key="yanghao_only" data-type="bool" />
<span>启动后只养号,不抢福袋</span>
</label>
@@ -1259,6 +1259,6 @@
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m18 15-6-6-6 6"/></svg>
</button>
<script src="app.js?v=console-20260520-theme-v21"></script>
<script src="app.js?v=console-20260520-theme-v22"></script>
</body>
</html>