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 'Tycoon_Gaming_Wiki' page or any Language page of the Main Page
if (mw.config.get('wgPageName').includes('Tycoon_Gaming_Wiki') || mw.config.get('wgPageName') === 'User:Donald/Testing' || mw.config.get('wgPageName') === 'F7') {
$('.MenuButton').css('cursor', 'pointer');
var MenuInput = '<input id="job-search-input" type="text" placeholder="Filter Jobs"></input>';
var pagejobElement = document.getElementById('testaddjobsearchbar'); // Replace 'someElementID' with the actual ID
// Insert the search form HTML into the identified element
if (pagejobElement) {
pagejobElement.innerHTML = MenuInput;
}
var searchInput = document.getElementById('job-search-input');
if(searchInput) {
searchInput.addEventListener('input', function() {
var searchTerm = this.value.toLowerCase();
var jobsList = document.getElementById('jobs-list');
var jobs = jobsList.getElementsByClassName('job-item');
000
1:0
Return to MediaWiki:MainMenu.js.