View source for MediaWiki:MainMenu.js
From Tycoon Gaming
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
$( document ).ready(function() {
// Check if we're on the 'User:Donald/MainMenuTest' page
if (mw.config.get('wgPageName') === 'User:Donald/MainMenuTest') {
// Create the search form HTML
var searchFormHTML = '<form action="/wiki/index.php" method="get">' +
'<input type="hidden" name="title" value="Special:Search">' +
'<input type="text" name="search" placeholder="Search the wiki" />' +
'<input type="submit" value="Go" />' +
'</form>';
// Identify the element where you want to add the search form
var pageElement = document.getElementById('testaddsearchbar'); // Replace 'someElementID' with the actual ID
// Insert the search form HTML into the identified element
if (pageElement) {
pageElement.innerHTML = searchFormHTML;
}
var MenuInput = '<input id="job-search-input" type="text" placeholder="Filter Jobs"></input>';
var pagejobElement = document.getElementById('testaddjobsearchbar'); // Replace 'someElementID' with the actual ID
000
1:0
Return to MediaWiki:MainMenu.js.