匿名
未登录
中文(中国大陆)
登录
Limbo Wiki Mirror
搜索
查看“︁微件:GGLScratchGame”︁的源代码
来自Limbo Wiki Mirror
命名空间
微件
讨论
更多
更多
页面操作
阅读
查看源代码
历史
←
微件:GGLScratchGame
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您没有权限编辑
微件
命名空间内的页面。
您可以查看和复制此页面的源代码。
<noinclude> Cyber Scratch Lottery Widget </noinclude> <includeonly> <style> .ggl-wrapper { max-width: 360px; margin: 30px auto; font-family: sans-serif; } .ggl-ticket { position: relative; width: 360px; height: 360px; background-image: url("https://wm.gaoice.run/images/thumb/b/b6/%E5%9B%BE%E7%89%871.png/180px-%E5%9B%BE%E7%89%871.png"); background-size: cover; border-radius: 16px; 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/180px-%E5%88%AE%E5%BC%80%E5%90%8E.jpg"); background-size: cover; } /* 刮刮乐网格 */ .ggl-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(5, 1fr); } /* 每一个刮块 */ .ggl-cell { position: relative; background-image: url("https://wm.gaoice.run/images/thumb/5/5a/%E5%88%AE%E5%BC%80%E5%89%8D.png/180px-%E5%88%AE%E5%BC%80%E5%89%8D.png"); background-size: cover; cursor: pointer; } .ggl-cell.scratched { background: transparent; } /* 气泡 */ .ggl-bubble { position: absolute; bottom: 110%; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.85); color: #0f0; font-size: 12px; padding: 4px 6px; border-radius: 6px; white-space: nowrap; display: none; z-index: 5; } .ggl-cell.scratched .ggl-bubble { display: block; } </style> <div class="ggl-wrapper"> <div class="ggl-ticket"> <div class="ggl-reveal"></div> <div class="ggl-grid" id="gglGrid"></div> </div> </div> <script> (function () { const texts = { 1: '', 2: '(`・ω・´)📡', 3: '(≧▽≦)ノ', 4: '(・_・?)', 5: '(;゚Д゚)', 6: '你点的是哪里?', 7: '… … …', 8: '嘿、哈、别挠', 9: '你是谁?', 10: '停下来', 11: '平安喜乐' }; let state = 1; const grid = document.getElementById('gglGrid'); for (let i = 0; i < 30; i++) { const cell = document.createElement('div'); cell.className = 'ggl-cell'; const bubble = document.createElement('div'); bubble.className = 'ggl-bubble'; bubble.textContent = texts[state]; cell.appendChild(bubble); cell.onclick = () => { if (cell.classList.contains('scratched')) return; cell.classList.add('scratched'); bubble.textContent = texts[state]; if (state < 11) state++; }; grid.appendChild(cell); } })(); </script> </includeonly>
返回
微件:GGLScratchGame
。
导航
导航
首页
最近更改
随机页面
操作申请
帮助
入门指南
编辑指南
写作指南
随机
官方
碎数研
谜题保管所
wiki工具
wiki工具
特殊页面
页面工具
页面工具
用户页面工具
更多
链入页面
相关更改
页面信息
页面日志