MediaWiki:Common.js: Difference between revisions

From EVERYWHERE wiki
Jump to navigation Jump to search
Created page with "→‎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'); } });"
 
No edit summary
 
(One intermediate revision by the same user not shown)
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');
    }
});

Latest revision as of 15:00, 5 June 2024

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