匿名
未登录
中文(中国大陆)
登录
Limbo Wiki Mirror
搜索
查看“︁微件:GGLScratchGame”︁的源代码
来自Limbo Wiki Mirror
命名空间
微件
讨论
更多
更多
页面操作
阅读
查看源代码
历史
←
微件:GGLScratchGame
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您没有权限编辑
微件
命名空间内的页面。
您可以查看和复制此页面的源代码。
<noinclude> 完整彩票刮刮乐 Widget </noinclude> <includeonly> <div class="ggl-root"> <div class="ggl-ticket"> <!-- 刮奖区域 --> <div class="ggl-scratch-area"></div> </div> <!-- 底部 UI --> <div class="ggl-footer"> <div class="ggl-mascot">(`・ω・´) 扫描中…</div> <button class="ggl-scan">扫描结果</button> </div> </div> <style> /* ===== 根容器 ===== */ .ggl-root { max-width: 420px; margin: 30px auto; font-family: sans-serif; } /* ===== 彩票主体 ===== */ .ggl-ticket { position: relative; width: 100%; aspect-ratio: 1075 / 1911; background-image: url("https://wm.gaoice.run/images/thumb/b/b6/%E5%9B%BE%E7%89%871.png/1075px-%E5%9B%BE%E7%89%871.png"); background-size: cover; background-position: center; } /* ===== 刮奖黄色区域 ===== */ .ggl-scratch-area { position: absolute; /* 原始比例定位(基于 1075×1911) */ left: 10.6%; top: 23.5%; width: 78.7%; height: 53.4%; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(6, 1fr); } /* ===== 单个刮奖格 ===== */ .ggl-cell { position: relative; overflow: hidden; } /* 刮开后 */ .ggl-reveal { position: absolute; inset: 0; background-image: url("https://wm.gaoice.run/images/thumb/4/4a/%E5%88%AE%E5%BC%80%E5%90%8E.jpg/559px-%E5%88%AE%E5%BC%80%E5%90%8E.jpg"); background-size: cover; background-position: center; } /* 刮开前 */ .ggl-cover { position: absolute; inset: 0; background-image: url("https://wm.gaoice.run/images/thumb/5/5a/%E5%88%AE%E5%BC%80%E5%89%8D.png/559px-%E5%88%AE%E5%BC%80%E5%89%8D.png"); background-size: cover; background-position: center; cursor: pointer; } .ggl-cell.scratched .ggl-cover { display: none; } /* ===== 底部 UI ===== */ .ggl-footer { display: flex; margin-top: 10px; } .ggl-mascot { flex: 1; padding: 6px; background: #111; color: #0f0; font-size: 12px; } .ggl-scan { flex: 1; background: #222; color: #fff; border: none; } </style> <script> (function () { var root = document.currentScript.parentNode; var area = root.querySelector('.ggl-scratch-area'); if (!area) return; for (var i = 0; i < 30; i++) { var cell = document.createElement('div'); cell.className = 'ggl-cell'; var reveal = document.createElement('div'); reveal.className = 'ggl-reveal'; var cover = document.createElement('div'); cover.className = 'ggl-cover'; cover.onclick = function () { this.parentNode.classList.add('scratched'); }; cell.appendChild(reveal); cell.appendChild(cover); area.appendChild(cell); } })(); </script> </includeonly>
返回
微件:GGLScratchGame
。
导航
导航
首页
最近更改
随机页面
操作申请
帮助
入门指南
编辑指南
写作指南
随机
官方
碎数研
谜题保管所
wiki工具
wiki工具
特殊页面
页面工具
页面工具
用户页面工具
更多
链入页面
相关更改
页面信息
页面日志