• 欢迎来到小可 · Wiki,人人可编辑的,多平台聊天机器人“小可”的官方文档资源。
  • 小可很可爱,请给我们打钱
  • 原 MkDocs 已迁入本站。若发现 404 属正常现象,请点击左上角搜索您想要的模块。

MediaWiki:Common.js:修订间差异

MediaWiki系统消息页面
无编辑摘要
无编辑摘要
第9行: 第9行:
        checkbox.dispatchEvent(event);
        checkbox.dispatchEvent(event);
      });
      });
fetch('https://api.github.com/repos/Teahouse-Studios/bot/commits').then(async (res) => {
   const response = await res.json()
   const hash = response[0].sha
   const shortHash = hash.slice(0, 6)
   $('.commit-hash:not(commit-hash-short)').text(hash)
   $('.commit-hash.commit-hash-short').text(shortHash)
}).catch(() => {
$('.commit-hash').text('???')
})

2021年6月6日 (日) 07:45的版本

/* 这里的任何JavaScript将为所有用户在每次页面载入时加载。 */
document.getElementById('skin-citizen-search-trigger').addEventListener('click', function() {
            var event = new Event('input',{
                bubbles: !0,
                composed: !0
            })
              , checkbox = document.getElementById('search-checkbox');
            checkbox.checked = !0;
            checkbox.dispatchEvent(event);
        });

fetch('https://api.github.com/repos/Teahouse-Studios/bot/commits').then(async (res) => {
    const response = await res.json()
    const hash = response[0].sha
    const shortHash = hash.slice(0, 6)
    $('.commit-hash:not(commit-hash-short)').text(hash)
    $('.commit-hash.commit-hash-short').text(shortHash)
}).catch(() => {
	$('.commit-hash').text('???')
})
Cookie帮助我们提供我们的服务。通过使用我们的服务,您同意我们使用cookie。