More languages
More actions
mNo edit summary |
(removed obsolete code) |
||
(34 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
"use strict"; | "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; | |||
} ); | |||
//} | |||
} ); | |||
} | |||
/ | |||
} | |||
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;
} );
//}
} );