打开/关闭搜索
搜索
打开/关闭菜单
17
6667
45
1.1万
OGAS数据中枢
导航
首页
最近更改
随机页面
特殊页面
上传文件
少女前线
简介
战术人形
装备图鉴
BGM
任务
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
注册
登录
查看“︁Widget:GFLMail”︁的源代码
来自OGAS数据中枢
更多操作
←
Widget:GFLMail
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
管理员
您没有权限编辑
Widget
命名空间内的页面。
您可以查看和复制此页面的源代码。
<script>document.querySelectorAll('.gfl-item').forEach(item => { item.addEventListener('click', () => { const idx = item.getAttribute('data-gfl-index'); const root = item.closest('.gfl-mail'); if (!root) return; root.querySelectorAll('.gfl-detail').forEach(d => d.classList.remove('is-open')); const targetDetail = root.querySelector(`#gflDetail-${idx}`); if (!targetDetail) return; targetDetail.style.visibility = 'hidden'; targetDetail.style.opacity = '0'; targetDetail.style.transform = 'translateX(30px)'; targetDetail.classList.add('is-open'); targetDetail.offsetHeight; const bodyEl = targetDetail.querySelector('.gfl-detail-body'); const contentHeight = bodyEl ? bodyEl.scrollHeight : targetDetail.scrollHeight; const headerHeight = targetDetail.querySelector('.gfl-detail-header').offsetHeight; const totalHeight = contentHeight + headerHeight + 40; // 40px 是 padding 等 const minHeight = 400; const finalHeight = Math.max(totalHeight, minHeight); root.style.height = finalHeight + 'px'; targetDetail.style.visibility = ''; targetDetail.style.opacity = ''; targetDetail.style.transform = ''; root.classList.add('view-detail'); }); }); document.querySelectorAll('.gfl-back-btn').forEach(btn => { btn.addEventListener('click', () => { const root = btn.closest('.gfl-mail'); if (!root) return; root.classList.remove('view-detail'); root.querySelectorAll('.gfl-detail').forEach(d => d.classList.remove('is-open')); root.style.height = ''; }); }); </script>
返回
Widget:GFLMail
。
查看“︁Widget:GFLMail”︁的源代码
来自OGAS数据中枢