打开/关闭搜索
搜索
打开/关闭菜单
17
6667
45
1.1万
OGAS数据中枢
导航
首页
最近更改
随机页面
特殊页面
上传文件
少女前线
简介
战术人形
装备图鉴
BGM
任务
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
注册
登录
查看“︁Widget:GFLMail”︁的源代码
来自OGAS数据中枢
更多操作
←
Widget:GFLMail
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
管理员
您没有权限编辑
Widget
命名空间内的页面。
您可以查看和复制此页面的源代码。
<script> (function () { if (window._gflMailInit) return; window._gflMailInit = true; function openDetail(item) { var idx = item.getAttribute('data-gfl-index'); var root = item.closest('.gfl-mail'); if (!root) return; // 先撑开外壳到固定高度,再做过渡 var fixedH = getComputedStyle(root).getPropertyValue('--gfl-height').trim() || '480px'; // 先把当前自然高度设为起点,避免从0跳变 root.style.height = root.offsetHeight + 'px'; // 强制重排后过渡到目标高度 root.offsetHeight; root.style.transition = 'height .3s cubic-bezier(.4,0,.2,1)'; root.style.height = fixedH; root.querySelectorAll('.gfl-detail.is-open').forEach(function (d) { d.classList.remove('is-open'); }); var target = root.querySelector('#gflDetail-' + idx); if (!target) return; root.classList.add('view-detail'); requestAnimationFrame(function () { target.classList.add('is-open'); }); } function closeDetail(btn) { var root = btn.closest('.gfl-mail'); if (!root) return; root.querySelectorAll('.gfl-detail.is-open').forEach(function (d) { d.classList.remove('is-open'); }); root.classList.remove('view-detail'); // 过渡回列表自然高度 var list = root.querySelector('.gfl-list'); // 列表隐藏时 visibility:hidden 但仍占布局,scrollHeight 可读 var listH = list.scrollHeight; root.style.transition = 'height .3s cubic-bezier(.4,0,.2,1)'; root.style.height = listH + 'px'; root.addEventListener('transitionend', function onEnd(e) { if (e.propertyName !== 'height') return; root.removeEventListener('transitionend', onEnd); root.style.height = ''; root.style.transition = ''; }); } document.querySelectorAll('.gfl-item').forEach(function (item) { item.addEventListener('click', function () { openDetail(item); }); item.addEventListener('keydown', function (e) { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); openDetail(item); } }); }); document.querySelectorAll('.gfl-back-btn').forEach(function (btn) { btn.addEventListener('click', function () { closeDetail(btn); }); btn.addEventListener('keydown', function (e) { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); closeDetail(btn); } }); }); })(); </script>
返回
Widget:GFLMail
。
查看“︁Widget:GFLMail”︁的源代码
来自OGAS数据中枢