MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary Tag: Reverted |
||
| Line 8: | Line 8: | ||
title.id = 'p2p-site-title'; | title.id = 'p2p-site-title'; | ||
title.textContent = 'P2P Master AI | title.textContent = 'P2P Master AI - OSRS Bot Wiki'; | ||
title.style.cssText = | title.style.cssText = | ||
'position:absolute; top:12px; left:15px; z-index:5;' + | 'position:absolute; top:12px; left:15px; z-index:5;' + | ||
Revision as of 23:16, 24 October 2026
/* Any JavaScript here will be loaded for all users on every page load. */
$(function () {
var header = document.getElementById('mw-head');
if (!header) return;
var title = document.getElementById('p2p-site-title') ||
document.createElement('div');
title.id = 'p2p-site-title';
title.textContent = 'P2P Master AI - OSRS Bot Wiki';
title.style.cssText =
'position:absolute; top:12px; left:15px; z-index:5;' +
'font-size:14px; font-weight:bold; line-height:1.4;' +
'white-space:nowrap;';
title.style.color = getComputedStyle(
document.getElementById('content')
).borderLeftColor;
header.appendChild(title);
});