View source for MediaWiki:MainMenu.js

From Tycoon Gaming

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in the group: Users.
  • This page provides interface text for the software on this wiki, and is protected to prevent abuse. To add or change translations for all wikis, please use translatewiki.net, the MediaWiki localisation project.
  • You do not have permission to edit this JavaScript page because it may affect all visitors.

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');
הההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
000
1:0

Return to MediaWiki:MainMenu.js.