微件:GGLScratchGame:修订间差异

来自Limbo Wiki Mirror
Gaoice留言 | 贡献
无编辑摘要
标签(旧)WikiEditor
Gaoice留言 | 贡献
无编辑摘要
标签(旧)WikiEditor
第1行: 第1行:
<noinclude>
<noinclude>
== 使用文档 ==
== 刮刮乐重构版 ==
这个Widget用于生成剧情向伪刮刮乐游戏。
调用方式:
 
=== 调用方式 ===
复制以下代码到你的条目或沙盒页面:
<pre>
<pre>
{{#widget:GGLScratchGame
{{#widget:GGLScratchGame
|bg=图片1.png         <!-- 彩票整体大底图 -->
|bg=图片1.png
|cover=覆盖层.png     <!-- 刮之前的涂层图片 -->
|cover=刮开前.png
|revealed=刮开后.png   <!-- 刮开后的格子底图 -->
|revealed=刮开后.png
}}
}}
</pre>
</pre>
*如果没有上传对应的图片,请删除对应的行,系统会使用默认颜色。*
</noinclude>
</noinclude>


<includeonly>
<includeonly>
<style>
<style>
/* 游戏容器 */
/* === 核心容器 === */
.ggl-scratch-game-wrapper {
.ggl-game-root {
    font-family: 'Courier New', Courier, monospace;
     max-width: 400px; /* 限制最大显示宽度,防止在大屏太巨大 */
    background: transparent;
    padding: 20px;
     max-width: 500px;
     margin: 20px auto;
     margin: 20px auto;
    font-family: 'Courier New', monospace;
     user-select: none;
     user-select: none;
    position: relative;
    color: #333;
    text-align: center;
}
}


.game-header {
.game-header {
    text-align: center;
    color: #555;
     margin-bottom: 10px;
     margin-bottom: 10px;
     font-weight: bold;
     font-weight: bold;
    font-size: 16px;
    color: #555;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}
}


/* --- 彩票主体 (接受 bg 参数) --- */
/* === 彩票视觉部分 === */
.ticket-container {
.ticket-wrapper {
     width: 100%;  
     position: relative;
     max-width: 350px;
     width: 100%;
    margin: 0 auto;
     /* 核心:保持 1075:1911 的宽高比 */
     background-color: #fff; /* 默认白色背景 */
     padding-bottom: 177.76%;  
   
    /* 这里使用了 Smarty 语法来判断是否传入了 bg 参数 */
     <!--{if $bg}-->
    background-image: url('{{filepath:<!--{$bg}-->}}');
    <!--{/if}-->
   
     background-size: 100% 100%;
     background-size: 100% 100%;
     background-repeat: no-repeat;
     background-repeat: no-repeat;
   
     box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border: 2px dashed #999;
     border-radius: 8px;
    padding: 15px;
     box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
     border-radius: 5px;
    transition: transform 0.3s;
}
}


.ticket-header {
/* === 刮奖区定位 (关键) === */
     background: #d32f2f;
.scratch-grid-overlay {
     color: white;
     position: absolute;
     padding: 8px 10px;
     /* 以下百分比是根据 1075x1911 图和 846x1020 区域计算得出 */
     display: flex;
     width: 78.7%;   /* 846 / 1075 */
     justify-content: space-between;
     height: 53.4%; /* 1020 / 1911 */
    font-weight: bold;
     left: 10.65%;   /* (100% - 78.7%) / 2 */
    border-radius: 4px;
     top: 34%;       /* 估算黄色区域距离顶部的距离,可根据实际效果微调 */
     margin-bottom: 10px;
      
}
 
.scratch-grid-area {
    /* 设为透明,以便显示大底图 */
     background: transparent;
    padding: 8px;
     display: grid;
     display: grid;
     grid-template-columns: repeat(5, 1fr);
     grid-template-columns: repeat(5, 1fr);
     grid-template-rows: repeat(6, 1fr);
     grid-template-rows: repeat(6, 1fr);
     gap: 4px;
     /* 消除格子间隙,因为你的图是连续的 */
    /* border: 2px solid #f9a825; */ /* 如果底图自带边框,可以注释掉这行 */
     gap: 0;  
     margin-bottom: 15px;
}
}


/* --- 格子 (接受 cover 参数) --- */
/* === 格子样式 === */
.grid-cell {
.grid-cell {
     width: 100%;
     width: 100%;
     aspect-ratio: 1;
     height: 100%;
     background-color: #222; /* 默认黑色涂层 */
     background-size: 100% 100%; /* 强制图片拉伸填满格子 */
   
     background-repeat: no-repeat;
    <!--{if $cover}-->
     background-image: url('{{filepath:<!--{$cover}-->}}');
    <!--{/if}-->
      
      
    background-size: cover;
    background-position: center;
   
    color: transparent;
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
     justify-content: center;
     justify-content: center;
     cursor: pointer;
     cursor: pointer;
     font-size: 12px;
   
     overflow: hidden;
    /* 初始文字透明 (刮开前看不到字) */
     position: relative;
    color: transparent;
     font-weight: bold;
     font-size: 14px;
     /* 文字描边,防止在复杂背景看不清 */
    text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff;  
}
}


.grid-cell:hover {
/* 刮开后的状态 */
    opacity: 0.9;
}
 
/* --- 刮开后 (接受 revealed 参数) --- */
.grid-cell.revealed {
.grid-cell.revealed {
    background-color: #eee; /* 默认灰色底 */
   
    <!--{if $revealed}-->
    background-image: url('{{filepath:<!--{$revealed}-->}}');
    <!--{/if}-->
   
    background-size: cover;
   
    color: #000;
     cursor: default;
     cursor: default;
     font-weight: bold;
     color: #d32f2f; /* 刮开后文字颜色 */
}
}


/* 底部控制区 */
/* === 底部控制区 (重写布局) === */
.ticket-controls-area {
.controls-area {
    margin-top: 15px;
     display: flex;
     display: flex;
     justify-content: space-between;  
     justify-content: space-between; /* 左右分布 */
     align-items: flex-end;
     align-items: flex-end;
    margin-top: 10px;
    min-height: 60px;  
}
}


.mascot-section {
/* 左侧:气泡+颜文字 */
     display: flex;
.mascot-box {
     flex-direction: column;
     flex: 1;
    align-items: flex-start;
     text-align: left;
    flex: 1;  
     margin-right: 10px;
     margin-right: 10px;
    text-align: left;
}
}
.speech-bubble {
.speech-bubble {
     background: #fff;
     background: #fff;
第154行: 第103行:
     font-size: 12px;
     font-size: 12px;
     margin-bottom: 5px;
     margin-bottom: 5px;
     box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
     box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
    position: relative;
     min-height: 20px;
     min-height: 20px;
     line-height: 1.3;
     line-height: 1.3;
    width: 100%;
}
}
.mascot-face {
.mascot-face {
第167行: 第114行:
}
}


.main-btn {
/* 右侧:按钮 */
     padding: 8px 15px;
.action-btn {
     padding: 0 20px;
    height: 40px;
     font-size: 14px;
     font-size: 14px;
     background: #2196F3;
     background: #2196F3;
第175行: 第124行:
     border-radius: 5px;
     border-radius: 5px;
     cursor: pointer;
     cursor: pointer;
    white-space: nowrap;
    height: 36px;
     box-shadow: 2px 2px 0 #000;
     box-shadow: 2px 2px 0 #000;
     transition: all 0.1s;
     white-space: nowrap;
}
}
.main-btn:active {
.action-btn:active {
     transform: translate(2px, 2px);
     transform: translate(2px, 2px);
     box-shadow: none;
     box-shadow: none;
}
}
.main-btn:disabled {
.action-btn:disabled {
     background: #ccc;
     background: #ccc;
     box-shadow: none;
     box-shadow: none;
    cursor: not-allowed;
}
.main-btn.next-mode {
    background: #4CAF50;
}
.main-btn.danger-mode {
    background: #000;
    color: red;
    border: 1px solid red;
}
}
.action-btn.next { background: #4CAF50; }
.action-btn.danger { background: #000; color: red; border: 1px solid red; }


/* 特效 */
/* 结局特效 */
.invert-filter {
.invert-filter { filter: invert(100%); background: black !important; }
    filter: invert(100%);
    background: black !important;
}
.crash-screen {
.crash-screen {
     position: fixed;
     position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    top: 0; left: 0; width: 100%; height: 100%;
     background: black; color: red; z-index: 99999;
     background: black;
     display: flex; align-items: center; justify-content: center;
    color: red;
    z-index: 99999;
     display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
     font-size: 30px;
     font-size: 30px;
    font-family: monospace;
    text-align: center;
}
}
</style>
</style>


<div class="ggl-scratch-game-wrapper" id="ggl-game-root">
<!-- HTML 结构 -->
<div class="ggl-game-root" id="ggl-root">
     <div class="game-header">
     <div class="game-header">
         <span>GGL-LOTTERY</span>
         GGL-LOTTERY | 剩余: <span id="count-val">3</span>
        <span>剩余: <span id="count-val">3</span> 张</span>
     </div>
     </div>


     <div class="ticket-container" id="ticket-container">
    <!-- 1. 彩票底图层 -->
         <div class="ticket-header">
    <!-- 直接用 style 写入背景图,确保路径正确解析 -->
            <div class="ticket-logo">SCRATCH-OFF</div>
     <div class="ticket-wrapper" style="background-image: url('{{filepath:<!--{$bg|default:'图片1.png'}-->}}');">
            <div class="ticket-id">NO. <span id="ticket-id-display">001</span></div>
       
         <!-- 2. 刮奖区覆盖层 (绝对定位) -->
        <div class="scratch-grid-overlay" id="scratch-grid">
            <!-- JS 生成格子 -->
         </div>
         </div>
       
        <div class="scratch-grid-area" id="scratch-grid"></div>


         <div class="ticket-controls-area">
        <!-- ID 显示 (可选,定位在右上角或哪里,这里为了简洁先隐藏或微调) -->
            <div class="mascot-section">
         <div style="position: absolute; top: 2%; right: 5%; color: white; font-weight: bold; font-size: 12px;">
                <div class="speech-bubble" id="mascot-text">请刮开覆盖层...</div>
            NO.<span id="ticket-id">001</span>
                <div class="mascot-face" id="mascot-face">(・ω・)</div>
        </div>
            </div>
    </div>
            <button id="action-btn" class="main-btn">扫描结果</button>
 
    <!-- 3. 底部控制 -->
    <div class="controls-area">
        <div class="mascot-box">
            <div class="speech-bubble" id="mascot-text">请刮开所有区域...</div>
            <div class="mascot-face" id="mascot-face">(・ω・)</div>
         </div>
         </div>
        <button id="main-btn" class="action-btn">扫描结果</button>
     </div>
     </div>
</div>
</div>


<div id="fake-wiki-entry" style="display:none; padding:20px; background:#fff; border:1px solid #ccc; max-width:800px; margin:0 auto;">
<!-- 伪词条 -->
<div id="fake-wiki-entry" style="display:none; padding:20px; background:#fff; border:1px solid #ccc; max-width:800px; margin:20px auto;">
     <h1 style="border-bottom: 1px solid #aaa;">六世恶言</h1>
     <h1 style="border-bottom: 1px solid #aaa;">六世恶言</h1>
     <div class="wiki-content">
     <div style="margin-top:10px;">
        <div style="float:right; border:1px solid #333; padding:10px; background:#f9f9f9; width: 250px; margin-left:15px; margin-bottom:10px;">
         <p><b>描述:</b>“六世恶言”是一种具有高度认知危害的网络异常...</p>
            <b>档案编号:</b> ERROR-666<br>
            <b>风险等级:</b> 极高<br>
            <b>来源:</b> 网页劫持
        </div>
         <p><b>描述:</b>“六世恶言”是一种具有高度认知危害的网络异常,常伪装成互动式网页组件(如抽奖、刮刮乐)诱导用户点击。</p>
         <hr>
         <hr>
        <h3>调查记录</h3>
        <p><b>收藏品1:</b> [短信记录] “你好,我查到了这个域名的注册人,但是那个地址...是个废弃的火葬场。”</p>
        <p><b>收藏品2:</b> [短信记录] “网站代码被篡改过,不仅仅是我们,我已经把警告短信向所有访问过该IP的人都发了一遍。”</p>
         <p><b>收藏品3:</b> [回复] <b>“它是我藏在赛博刮刮乐内的,是被惩罚的人。”</b></p>
         <p><b>收藏品3:</b> [回复] <b>“它是我藏在赛博刮刮乐内的,是被惩罚的人。”</b></p>
     </div>
     </div>
第262行: 第191行:
<script>
<script>
(function() {
(function() {
     var root = document.getElementById('ggl-game-root');
     var root = document.getElementById('ggl-root');
     if (!root) return;
     if (!root) return;


    // 获取图片路径,用于JS赋值
    var imgCover = '{{filepath:<!--{$cover|default:'图片2.png'}-->}}';
    var imgRevealed = '{{filepath:<!--{$revealed|default:'图片3.png'}-->}}';
    // 游戏状态
     var TOTAL_CARDS = 11;
     var TOTAL_CARDS = 11;
     var currentCardIndex = 0;
     var currentIdx = 0;
     var remainingTickets = 3;
     var remain = 3;
     var isScanned = false;
     var isScanned = false;
     var revealedCount = 0;
     var revealedCount = 0;


    // DOM
     var elCount = root.querySelector('#count-val');
     var elCount = root.querySelector('#count-val');
     var elGrid = root.querySelector('#scratch-grid');
     var elGrid = root.querySelector('#scratch-grid');
     var elBtn = root.querySelector('#action-btn');
     var elBtn = root.querySelector('#main-btn');
     var elMascotText = root.querySelector('#mascot-text');  
     var elBubble = root.querySelector('#mascot-text');
     var elMascotFace = root.querySelector('#mascot-face');  
     var elFace = root.querySelector('#mascot-face');
     var elTicketId = root.querySelector('#ticket-id-display');
     var elId = root.querySelector('#ticket-id');
     var elFakeEntry = document.getElementById('fake-wiki-entry');
     var elFakeEntry = document.getElementById('fake-wiki-entry');


     var cardsData = [
    // 数据
         { type: 'normal', mascot: '', broadcast: '结果:谢谢惠顾。' },
     var cards = [
         { type: 'normal', mascot: '(・ω・)', broadcast: '检测到异常字符。' },
         { type: 'n', face: '', text: '结果:谢谢惠顾。' },
         { type: 'bonus', mascot: '(^▽^)', broadcast: '恭喜!触发连击,奖励+2张!' },
         { type: 'n', face: '(・ω・)', text: '检测到异常字符。' },
         { type: 'normal', mascot: 'o(*≧▽≦)ツ', broadcast: '结果:1 Data 2。好耶!' },
         { type: 'b', face: '(^▽^)', text: '恭喜!触发连击,奖励+2张!' },
         { type: 'cheat', mascot: '( ・_・)', broadcast: '结果:中奖...?数据好像变了。' },
         { type: 'n', face: 'o(*≧▽≦)ツ', text: '结果:1 Data 2。好耶!' },
         { type: 'narrative_bubble', mascot: '', broadcast: '对象已消失。', override: 'Data' },
         { type: 'c', face: '( ・_・)', text: '结果:中奖...?数据好像变了。' },
         { type: 'glitch', mascot: '...', broadcast: 'ERR_#0x00 数据损坏', override: '???' },
         { type: 'x', face: '', text: '对象已消失。', val: 'Data' },
         { type: 'pain', mascot: '', broadcast: '声音检测:"好痛!"', override: 'Pain' },
         { type: 'g', face: '...', text: 'ERR_#0x00 数据损坏', val: '???' },
         { type: 'talk', mascot: '', broadcast: '收到文本:"你是谁?"', override: 'Info' },
         { type: 'p', face: '', text: '声音检测:"好痛!"', val: 'Pain' },
         { type: 'stop', mascot: '', broadcast: '警告:立即停止操作。', override: '停下' },
         { type: 't', face: '', text: '收到文本:"你是谁?"', val: 'Info' },
         { type: 'final', mascot: 'ERROR', broadcast: '你知道的太多了。', override: '平安喜乐' }
         { type: 's', face: '', text: '警告:立即停止操作。', val: '停下' },
         { type: 'f', face: 'ERROR', text: '你知道的太多了。', val: '平安喜乐' }
     ];
     ];


     function updateMascot(text, face) {
     function setMascot(txt, face) {
         if(text) elMascotText.innerText = text;
         if(txt) elBubble.innerText = txt;
         if(face !== undefined) elMascotFace.innerText = face;
         if(face !== undefined) elFace.innerText = face;
     }
     }


     function generateRandomContent() {
     function randVal() {
         var opts = ['10mb', '50Gb', '5Kb', '1Tb', '福', '寿', '乐', '奖', '空'];
         var arr = ['10mb', '50Gb', '5Kb', '1Tb', '福', '寿', '乐', '奖', '空'];
         return opts[Math.floor(Math.random() * opts.length)];
         return arr[Math.floor(Math.random() * arr.length)];
     }
     }


     function loadCard(index) {
     function initCard(idx) {
         isScanned = false;
         isScanned = false;
         revealedCount = 0;
         revealedCount = 0;
       
         elBtn.innerText = "扫描结果";
         elBtn.innerText = "扫描结果";
         elBtn.className = "main-btn";  
         elBtn.className = "action-btn";
         elBtn.disabled = false;
         elBtn.disabled = false;
         elBtn.style = "";
         elBtn.style = "";
       
        elTicketId.innerText = (index + 1).toString().padStart(3, '0');
        elCount.innerText = remainingTickets;


         var data = cardsData[index];
        elId.innerText = (idx+1).toString().padStart(3,'0');
        elCount.innerText = remain;
 
         var d = cards[idx];
         elGrid.innerHTML = '';
         elGrid.innerHTML = '';
         updateMascot("请刮开覆盖层...", data.mascot);
         setMascot("请刮开所有区域...", d.face);
       
 
         if (data.type === 'stop') {
         if(d.type === 's') { // Stop
            elBtn.style.border = "2px solid red";
            elBtn.style.border = "2px solid red";
            elBtn.style.color = "red";
            elBtn.style.color = "red";
         }
         }


         for (var i = 0; i < 30; i++) {
         for(var i=0; i<30; i++) {
             var cell = document.createElement('div');
             var cell = document.createElement('div');
             cell.className = 'grid-cell';
             cell.className = 'grid-cell';
              
              
             var content = data.override ? data.override : generateRandomContent();
            // 1. 设置刮开前的图 (覆盖层)
           
            cell.style.backgroundImage = "url('" + imgCover + "')";
             if(index === 2 && (i === 10 || i === 11)) content = "大奖";  
 
             if(index === 8) content = "你是谁";
            // 决定内容
             var val = d.val ? d.val : randVal();
             if(idx === 2 && (i===10 || i===11)) val = "大奖";
             if(idx === 8) val = "你是谁";


             cell.dataset.content = content;
             cell.dataset.val = val;
            cell.dataset.idx = i;


             (function(c, cIdx, d){
            // 点击事件
             (function(c, cIdx, cVal, idxI){
                 c.addEventListener('click', function() {
                 c.addEventListener('click', function() {
                     if (c.classList.contains('revealed') || isScanned) return;
                     if(c.classList.contains('revealed') || isScanned) return;
                      
                      
                    // 2. 切换为刮开后的图
                     c.classList.add('revealed');
                     c.classList.add('revealed');
                    c.style.backgroundImage = "url('" + imgRevealed + "')";
                    c.innerText = cVal; // 显示文字
                   
                     revealedCount++;
                     revealedCount++;
                    c.innerText = c.dataset.content;


                     if(cIdx === 5) {
                    // 剧情触发
                         var msg = ["别点了", "我在看你", "停下"][Math.floor(Math.random()*3)];
                     if(cIdx === 5) { // 消失
                        updateMascot(msg, "");  
                         setMascot(["别点了","我在看你"][Math.floor(Math.random()*2)], "");
                         c.innerText = "";  
                         c.innerText = "";  
                     }
                     }
                     if(cIdx === 7) {
                     if(cIdx === 7) { // 痛
                        c.innerText = ["痛!", "别!", "啊!"][Math.floor(Math.random()*3)];
                        c.innerText = ["痛!","别!"][Math.floor(Math.random()*2)];
                        c.style.color = "red";
                        c.style.color = "red";
                        updateMascot("别挠我!", ">_<");
                        setMascot("别挠我!", ">_<");
                     }
                     }
                     if(cIdx === 4 && revealedCount === 15) {
                     if(cIdx === 4 && revealedCount === 15) { // 改字
                        updateMascot("诶...?", "(;゚д゚)");
                        setMascot("诶...?", "(;゚д゚)");
                         var cells = elGrid.querySelectorAll('.grid-cell');
                         if(elGrid.children[29]) {
                        if(cells[29]) cells[29].dataset.content = "中奖";
                            elGrid.children[29].dataset.val = "中奖";
                        }
                     }
                     }
                 });
                 });
             })(cell, index, data);
             })(cell, idx, val, i);


             elGrid.appendChild(cell);
             elGrid.appendChild(cell);
第367行: 第309行:


     elBtn.addEventListener('click', function() {
     elBtn.addEventListener('click', function() {
         if (isScanned) {
         if(isScanned) {
             currentCardIndex++;
             // Next
             if (currentCardIndex < TOTAL_CARDS) {
            currentIdx++;
                loadCard(currentCardIndex);
             if(currentIdx < TOTAL_CARDS) initCard(currentIdx);
            }
         } else {
         } else {
             if (revealedCount < 30 && currentCardIndex < 9) {
            // Scan
             if(revealedCount < 30 && currentIdx < 9) {
                 if(!confirm("还没刮完,确定扫描吗?")) return;
                 if(!confirm("还没刮完,确定扫描吗?")) return;
             }
             }
 
           
             var data = cardsData[currentCardIndex];
             var d = cards[currentIdx];
             isScanned = true;
             isScanned = true;
             elBtn.innerText = "扫描中...";
             elBtn.innerText = "扫描中...";
              
              
             setTimeout(function(){
             setTimeout(function(){
                 updateMascot(data.broadcast);
                 setMascot(d.text);
                 if (data.type === 'bonus') {
               
                    remainingTickets += 2;
                 if(d.type === 'b') { remain += 2; elCount.innerText = remain; }
                    elCount.innerText = remainingTickets;
                 if(d.type === 'f') { doEnd(); return; }
                 }
                 if(d.type === 's') {
                 if (data.type === 'stop') {
                     setTimeout(function(){
                     setTimeout(function(){
                        updateMascot("严重错误。排出异物...");
                        setMascot("严重错误。排出异物...");
                        elBtn.innerText = "取出未知票据";
                        elBtn.innerText = "取出未知票据";
                        elBtn.className = "main-btn danger-mode";
                        elBtn.className = "action-btn danger";
                     }, 800);
                     }, 800);
                     return;
                     return;
                 }
                 }
                if (data.type === 'final') {
 
                    triggerEnding();
                 remain--;
                    return;
                 elCount.innerText = remain;
                }
                 if(remain < 0) {
                 remainingTickets--;
                     setMascot("票据耗尽。");
                 elCount.innerText = remainingTickets;
                 if (remainingTickets < 0) {
                     updateMascot("票据耗尽。");
                     elBtn.disabled = true;
                     elBtn.disabled = true;
                     return;
                     return;
                 }
                 }
                 elBtn.innerText = "再来一张";
                 elBtn.innerText = "再来一张";
                 elBtn.classList.add('next-mode');
                 elBtn.classList.add('next');
             }, 400);  
             }, 500);
         }
         }
     });
     });


     function triggerEnding() {
     function doEnd() {
         document.body.classList.add('invert-filter');
         document.body.classList.add('invert-filter');
         setTimeout(function(){
         setTimeout(function(){
             var crash = document.createElement('div');
             var div = document.createElement('div');
             crash.className = 'crash-screen';
             div.className = 'crash-screen';
             crash.innerHTML = "<div>FATAL ERROR</div>";
             div.innerText = "FATAL ERROR";
             document.body.appendChild(crash);
             document.body.appendChild(div);
           
             setTimeout(function(){
             setTimeout(function(){
                 crash.remove();
                 div.remove();
                 document.body.classList.remove('invert-filter');
                 document.body.classList.remove('invert-filter');
                 root.style.display = 'none';
                 root.style.display = 'none';
                 if(elFakeEntry) elFakeEntry.style.display = 'block';
                 if(elFakeEntry) elFakeEntry.style.display = 'block';
                 window.scrollTo(0,0);
                 window.scrollTo(0,0);
                 alert("【系统提示】您收到了一条新短信。");
                 alert("【系统提示】收到新短信。");
             }, 3000);
             }, 3000);
         }, 1500);
         }, 1500);
     }
     }
     loadCard(0);
 
     initCard(0);
})();
})();
</script>
</script>
</includeonly>
</includeonly>

2026年2月1日 (日) 13:02的版本

刮刮乐重构版

调用方式:

{{#widget:GGLScratchGame
|bg=图片1.png
|cover=刮开前.png
|revealed=刮开后.png
}}