MediaWiki:Common.js: Difference between revisions

From EVERYWHERE wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */
// Custom script to change the placeholder text of the search bar
document.addEventListener('DOMContentLoaded', function() {
    var searchInput = document.getElementById('searchInput');
    if (searchInput) {
        searchInput.setAttribute('placeholder', 'Search EVERYWHERE wiki');
    }
});
    // Change the placeholder text for Vector Legacy skin search input
    if (vectorLegacySearchInput) {
        vectorLegacySearchInput.setAttribute('placeholder', 'Enter your search query');
    }
});

Latest revision as of 15:00, 5 June 2024

/* Any JavaScript here will be loaded for all users on every page load. */