打开/关闭菜单
456
1282
47
5231
植物大战僵尸杂交版Wiki
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

微件:B站用户:修订间差异

来自植物大战僵尸杂交版Wiki
无编辑摘要
无编辑摘要
 
第48行: 第48行:
     white-space: nowrap;
     white-space: nowrap;
     flex-shrink: 0;
     flex-shrink: 0;
     text-decoration: none;
     border: none;
     cursor: pointer;
     cursor: pointer;
    transition: all 0.2s;
}
}
.bili-card-btn:hover { background: #0091c2; }
.bili-card-btn:hover { background: #0091c2; }
.bili-card-btn.followed { background: #f0f0f0; color: #999; pointer-events: none; }
.bili-card-btn.followed {
    background: #f0f0f0;
    color: #999;
    pointer-events: none;
}
</style>
</style>


第66行: 第71行:
         <div class="bili-card-desc"><!--{$desc|escape:'html'}--></div>
         <div class="bili-card-desc"><!--{$desc|escape:'html'}--></div>
     </div>
     </div>
     <a class="bili-card-btn" id="bili-btn-<!--{$uid|escape:'html'}-->"  
     <button class="bili-card-btn" id="bili-btn-<!--{$uid|escape:'html'}-->"  
      href="https://space.bilibili.com/<!--{$uid|escape:'html'}-->"
            onclick="followUser('<!--{$uid|escape:'html'}-->', this)">
      onclick="var t=this;setTimeout(function(){t.textContent='已关注';t.classList.add('followed');localStorage.setItem('bili_followed_<!--{$uid|escape:'html'}-->','true');},500);">
        +关注
      +关注
     </button>
     </a>
</div>
</div>
<script>
<script>
function followUser(uid, btn) {
    btn.textContent = '已关注';
    btn.classList.add('followed');
    localStorage.setItem('bili_followed_' + uid, 'true');
}
(function() {
(function() {
     var uid = '<!--{$uid|escape:'html'}-->';
     var uid = '<!--{$uid|escape:'html'}-->';
第78行: 第88行:
     if (localStorage.getItem('bili_followed_' + uid) === 'true') {
     if (localStorage.getItem('bili_followed_' + uid) === 'true') {
         var btn = document.getElementById('bili-btn-' + uid);
         var btn = document.getElementById('bili-btn-' + uid);
         if (btn) { btn.textContent = '已关注'; btn.classList.add('followed'); }
         if (btn) {
            btn.textContent = '已关注';
            btn.classList.add('followed');
        }
     }
     }
})();
})();

2026年6月14日 (日) 01:48的最新版本

头像
个人认证:2024百大UP主……
{{#widget:B站用户 |uid=97213827 |avatar=https://new.pvzhe.wiki/images/f/f1/%E6%BD%9C%E8%89%87%E4%BC%9F%E4%BC%9F%E8%BF%B7.jpg |name=潜艇伟伟迷 |verify=个人认证:2024百大UP主…… }}