MediaWiki:Common.js:修订间差异
跳转到导航
跳转到搜索
无编辑摘要 |
无编辑摘要 |
||
第1行: | 第1行: | ||
$(function () { | $(function () { | ||
if (mw.config.get("wgNamespaceNumber") === 0) { | if (mw.config.get("wgNamespaceNumber") === 0) { | ||
const btn = $( | const btn = $('<a href="/index.php/首页" id="return-home-button">🏠 返回首页</a>').css({ | ||
position: 'fixed', | position: 'fixed', | ||
bottom: '20px', | bottom: '20px', | ||
第19行: | 第19行: | ||
} | } | ||
}); | }); | ||
2025年5月11日 (日) 11:33的版本
$(function () {
if (mw.config.get("wgNamespaceNumber") === 0) {
const btn = $('<a href="/index.php/首页" id="return-home-button">🏠 返回首页</a>').css({
position: 'fixed',
bottom: '20px',
right: '20px',
padding: '10px 14px',
background: '#ffffffdd',
color: '#333',
fontSize: '14px',
fontWeight: 'bold',
border: '1px solid #ccc',
borderRadius: '8px',
textDecoration: 'none',
boxShadow: '0 2px 6px rgba(0,0,0,0.2)',
zIndex: 9999
});
$('body').append(btn);
}
});
👥 当前在线人数:66