More languages
More actions
No edit summary |
(removed obsolete code) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
/* All JavaScript here will be loaded for users of the Citizen skin */ | /* All JavaScript here will be loaded for users of the Citizen skin */ | ||
"use strict"; | "use strict"; | ||
//New homepage search bar | //New homepage search bar |
Latest revision as of 15:20, 1 November 2024
/* All JavaScript here will be loaded for users of the Citizen skin */
"use strict";
//New homepage search bar
mw.loader.using( [ 'mediawiki.util' ] ).done( function() {
console.log("loaded utils");
/* Trigger search box when click on the fake search button on main page */
//if ( mw.config.get( 'wgIsMainPage' ) === true ) {
document.getElementById( 'homepage-search' ).addEventListener( 'click', function() {
var search = document.getElementById( 'citizen-search-details' );
search.open = true;
} );
//}
} );