MediaWiki:Common.js: Difference between revisions
From Emmy The Robot Fandom Wiki
Content added Content deleted
No edit summary |
No edit summary |
||
Line 13:
searchInput.setAttribute('type', 'text');
searchInput.setAttribute('id', 'mediawiki-text-parser-input');
searchInput.setAttribute('placeholder', 'Type to
document.getElementById('mw-content-text').insertBefore(searchInput, document.getElementById('mw-content-text').firstChild);
Line 60:
// Call the initializeTextParser function when the DOM is ready
function initializeTextParserOnLoad() {
var pageTitle = document.title;
if (pageTitle === "List of fan Nandroids" || pageTitle === "List of fan stories") {
initializeTextParser();
}
}
|