补齐侧栏/右栏图标与徽章、鉴权种子、StaticFeedList,并修正嵌套 a 与标题徽章对齐。 Co-authored-by: Cursor <cursoragent@cursor.com>
49 lines
1.9 KiB
HTML
49 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="zh-CN">
|
||
<head>
|
||
<meta charset="UTF-8" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||
<meta name="description" content="拾三一隅,自在交流" />
|
||
<title>姜十三论坛 - 拾三一隅,自在交流</title>
|
||
<!-- 样式由 Vite 构建注入外链 CSS,不在此内联 style -->
|
||
<script>
|
||
(function () {
|
||
var theme = localStorage.getItem('j13-theme') || 'light';
|
||
document.documentElement.classList.toggle('dark', theme === 'dark');
|
||
document.documentElement.style.colorScheme = theme;
|
||
})();
|
||
</script>
|
||
<script>
|
||
/* 锁死手机/平板双指与手势缩放;头像裁剪 / 图片灯箱放行 pinch */
|
||
(function () {
|
||
function inZoomAllowArea(target) {
|
||
return !!(
|
||
target &&
|
||
target.closest &&
|
||
target.closest('.avatar-crop-stage, .image-lightbox')
|
||
);
|
||
}
|
||
function blockGesture(e) {
|
||
if (inZoomAllowArea(e.target)) return;
|
||
if (e.cancelable) e.preventDefault();
|
||
}
|
||
function blockMultiTouch(e) {
|
||
if (e.touches && e.touches.length > 1) {
|
||
if (inZoomAllowArea(e.target)) return;
|
||
if (e.cancelable) e.preventDefault();
|
||
}
|
||
}
|
||
document.addEventListener('gesturestart', blockGesture, { passive: false });
|
||
document.addEventListener('gesturechange', blockGesture, { passive: false });
|
||
document.addEventListener('gestureend', blockGesture, { passive: false });
|
||
document.addEventListener('touchstart', blockMultiTouch, { passive: false });
|
||
document.addEventListener('touchmove', blockMultiTouch, { passive: false });
|
||
})();
|
||
</script>
|
||
</head>
|
||
<body>
|
||
<div id="root"></div>
|
||
<script type="module" src="/src/main.tsx"></script>
|
||
</body>
|
||
</html>
|