More languages
More actions
(Created page with "→All JavaScript here will be loaded for users of the Citizen skin: →All JavaScript here will be loaded for users of the Vector skin: //<nowiki> →* * Recent changes sidebar gadget for the Citizen skin * Originally created by @author JaydenKieran from RunescapeWiki *: 'use strict'; ; (function($, mw) { var $prependTo var $rcContainer var recentChanges var $recentChangesDOM function init() { $prependTo = $('#p-Navigation') v...") |
(removed obsolete code) |
||
(78 intermediate revisions by 2 users 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"; | |||
//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;
} );
//}
} );