feat(首页): 婴儿房空隙换成婴儿房导出的无 UI 高清渲染(日/夜两版,夜间底色 #5A5890)(v26100113)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-01 08:43:59 +00:00
parent a90f348061
commit 3de3bbdccc
6 changed files with 15 additions and 13 deletions

View File

@@ -3,7 +3,7 @@
(function () {
'use strict';
/* 页面版本号(YYMMDD+序号):显示在「关于兜爸心选」页底部;bump 时同步 head 注释与 ?v= */
var VER = '26100112';
var VER = '26100113';
const $ = (s, c) => (c || document).querySelector(s);
const $$ = (s, c) => Array.from((c || document).querySelectorAll(s));
@@ -3140,7 +3140,10 @@
place();
const tick = () => {
const h = new Date(Date.now() + 8 * 3600e3).getUTCHours(); // 北京时间
sec.classList.toggle('is-night', h >= 19 || h < 6);
const night = h >= 19 || h < 6;
sec.classList.toggle('is-night', night);
const img = $('#nypImg'), src = 'assets/img/nursery-' + (night ? 'night' : 'day') + '.jpg';
if (img.getAttribute('src') !== src) img.setAttribute('src', src);
};
tick(); setInterval(tick, 600e3);
nurseryRender();