v26110280 广场卡片昵称旁加孕周标签(同评论区样式),图上压字卡去掉重复的孕周
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -290,7 +290,11 @@ button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:poin
|
||||
.nc h3{margin:0;font-size:13.5px;font-weight:700;line-height:1.45;color:#2A2220;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
|
||||
.nc .nf{display:flex;align-items:center;gap:5px;margin-top:7px}
|
||||
.nc .nf img{width:18px;height:18px;border-radius:50%;object-fit:cover;flex:none;background:#FFE3D3}
|
||||
.nc .nf .nm{flex:1;min-width:0;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
||||
.nc .nf .nm{flex:0 1 auto;min-width:0;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
|
||||
.nc .nf{gap:4px}
|
||||
.nc .nf .stg{flex:none;font-style:normal;font-size:10px;line-height:16px;padding:0 4px;border-radius:99px;background:#F5EFEC;color:#A08C86;white-space:nowrap}
|
||||
.nc .nf .lk{margin-left:auto;min-width:0;gap:1px}
|
||||
.nc .nf .lk .ic{width:13px;height:13px}
|
||||
.lk{flex:none;display:inline-flex;align-items:center;gap:2px;min-width:44px;justify-content:flex-end;height:22px;font-size:11.5px;color:var(--muted);font-variant-numeric:tabular-nums}
|
||||
.lk .ic{width:15px;height:15px}
|
||||
.lk.on{color:#F0453A}
|
||||
@@ -682,10 +686,10 @@ button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:poin
|
||||
<div id="sheet" role="dialog" aria-modal="true"><i class="sg"></i><div class="sbd" id="sbd"></div></div>
|
||||
<div class="toast" id="toast"></div>
|
||||
|
||||
<script src="topics.js?v=26110279"></script>
|
||||
<script src="data.js?v=26110279"></script>
|
||||
<script src="feed.js?v=26110279"></script>
|
||||
<script src="ceshi/meta.js?v=26110279"></script>
|
||||
<script src="topics.js?v=26110280"></script>
|
||||
<script src="data.js?v=26110280"></script>
|
||||
<script src="feed.js?v=26110280"></script>
|
||||
<script src="ceshi/meta.js?v=26110280"></script>
|
||||
<script>
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -751,7 +755,7 @@ button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:poin
|
||||
var CMD = null, CMERR = false;
|
||||
/* 头像编码:数字 = av/NNNN.webp(旧代码头像);'av:c012' = av/c012.webp(卡通/可爱卡通);'/…' = 站内绝对路径(内置头像库 /_bridge/avatars/);其余 = assets/img/mom/xxx.jpg */
|
||||
var avP = function (a) { return typeof a === 'number' ? 'av/' + ('000' + a).slice(-4) + '.webp' : a.indexOf('av:') === 0 ? 'av/' + a.slice(3) + '.webp' : a.charAt(0) === '/' ? a : '../assets/img/mom/' + a + '.jpg'; };
|
||||
fetch('cm.json?v=26110279').then(function (r) { return r.json(); }).then(function (j) {
|
||||
fetch('cm.json?v=26110280').then(function (r) { return r.json(); }).then(function (j) {
|
||||
CMD = j; if (openId && NBY[openId]) { renderComments(NBY[openId]); syncBar(NBY[openId]); }
|
||||
}).catch(function () { CMERR = true; if (openId && NBY[openId]) renderComments(NBY[openId]); });
|
||||
function commentsOf(n) {
|
||||
@@ -843,12 +847,13 @@ button{font:inherit;color:inherit;border:0;background:none;padding:0;cursor:poin
|
||||
11-02 二改:普通卡(图上没字)也不放话题;图上文字 70% 在底部,30% 放顶部/中间(按帖子 id 哈希固定,刷新不跳) */
|
||||
var ph = 0; for (var q = 0; q < n.id.length; q++) ph = (ph * 31 + n.id.charCodeAt(q)) >>> 0;
|
||||
var pos = ph % 10 < 7 ? '' : ph % 10 < 9 ? ' at-mid' : ' at-top';
|
||||
if (sty === 'ov') { r = Math.max(r, 1.33); ov = '<div class="ovt' + pos + '">' + (n.stage ? '<small>' + esc(n.stage) + '</small>' : '') + '<b>' + esc(n.title) + '</b></div>'; }
|
||||
if (sty === 'ov') { r = Math.max(r, 1.33); ov = '<div class="ovt' + pos + '"><b>' + esc(n.title) + '</b></div>'; }
|
||||
else if (sty === 'tg') { r = Math.max(r, 1.2); ov = '<div class="tgt' + pos + '"><b><span>' + esc(n.title) + '</span></b></div>'; }
|
||||
/* 11-04 用户:卡片底部昵称旁边带上孕周,样式同评论区 .stg;图上压字卡原来顶部那行孕周去掉,免得一张卡出现两次 */
|
||||
return '<button type="button" class="nc' + (sty ? ' s-' + sty : '') + '" data-id="' + n.id + '"><div class="cvw">' +
|
||||
coverHTML(n, 'calc(var(--cw) * ' + r + ')') + ov + '</div>' +
|
||||
'<div class="nb"><h3>' + esc(n.title) + '</h3>' + (t && TAG_NAME[t.cat] ? '<span class="ntg k-' + t.cat + '">#' + TAG_NAME[t.cat] + '</span>' : '') +
|
||||
'<div class="nf"><img src="' + esc(avOf(n)) + '" alt="" loading="lazy"><span class="nm">' + esc(n.author) + '</span>' + likeHTML(n) + '</div></div></button>';
|
||||
'<div class="nf"><img src="' + esc(avOf(n)) + '" alt="" loading="lazy"><span class="nm">' + esc(n.author) + '</span>' + (n.stage ? '<i class="stg">' + esc(n.stage.replace(/\s+/g, '')) + '</i>' : '') + likeHTML(n) + '</div></div></button>';
|
||||
}
|
||||
|
||||
/* ---------- 列表 ---------- */
|
||||
|
||||
Reference in New Issue
Block a user