Display title | MediaWiki:Citizen.js |
Default sort key | Citizen.js |
Page length (in bytes) | 506 |
Namespace ID | 8 |
Namespace | MediaWiki |
Page ID | 1411 |
Page content language | en - English |
Page content model | JavaScript |
Indexing by robots | Allowed |
Number of redirects to this page | 0 |
Number of subpages of this page | 0 (0 redirects; 0 non-redirects) |
Edit | Allow only users with "editsitejs" permission (infinite) |
Move | Allow only users with "editsitejs" permission (infinite) |
Page creator | Drolerina (talk | contribs) |
Date of page creation | 17:12, 1 February 2024 |
Latest editor | Drolerina (talk | contribs) |
Date of latest edit | 15:45, 28 July 2024 |
Total number of edits | 4 |
Total number of distinct authors | 1 |
Recent number of edits (within past 90 days) | 1 |
Recent number of distinct authors | 1 |
Description | Content |
Article description: (description ) This attribute controls the content of the description and og:description elements. | /* All JavaScript here will be loaded for users of the Citizen skin */
// Source: https://starcitizen.tools/MediaWiki:Citizen.js
mw.loader.using( [ 'mediawiki.util' ] ).done( function() {
/* Trigger search box when click on the fake search button on main page */
if ( mw.config.get( 'wgIsMainPage' ) ) {
document.getElementById( 'citizen-search-trigger' ).addEventListener( 'click', function() {
var search = document.getElementById( 'citizen-search-details' );
search.open = true;
} );
}
} ); |