मीडियाविकि:Monobook.js

नेपाली विकिपुस्तकबाट, स्वतन्त्र पुस्तकालय

टिप्पणी सङ्ग्रह गरेपछि, परिवर्तन हेर्नको लागि तपाईंले आफ्नो ब्राउजरको क्याच बाईपास गर्नु पर्ने हुनसक्छ।

  • फायरफक्स / सफारीमा: Shift कुञ्जी थिची राखेर Reload क्लिक गर्नुपर्छ, वा Ctrl-F5 वा Ctrl-R दबाउनुहोस् (म्याकमा ⌘-R)
  • गुगल क्रोम: Ctrl-Shift-R कुञ्जी दबाउनुहोस् (म्याकमा ⌘-R)
  • ओपेरा: Tools → Preferences मा गएर क्याश हटाउनुहोस्
  • इन्टरनेट एक्सप्लोरर: Ctrl लाई थिची राखेर Refresh क्लिक गर्नुहोस् वा Ctrl-F5 थिच्नुहोस्
/* Any JavaScript here will be loaded for users using the MonoBook skin */

/**
 * Topbar content fix with sitenotice and CentralNotice
 *
 * Description: This fixes the location of topbar content (e.g., featured
 *              content star) when the sitenotice or CentralNotice is active.
 * Maintainers: [[User:TheDJ]], [[User:MZMcBride]]
 */
// Not in IE6, only when editing/previewing a page
if ( ( navigator.userAgent.indexOf( 'MSIE 6' ) == -1 ) && (mw.config.get( 'wgAction' ) == 'submit' || mw.config.get( 'wgAction' ) == 'view' ) ) {
jQuery( function( $ ) {

	var $cNote = $( '#centralNotice' );
	// If there is no dismissible sitenotice and no expanded centralnotice:
	if ( !$( '#mw-dismissible-notice' ).length && !( $cNote.length && $cNote.hasClass('expanded') ) ) {
		return;
	}
	// Otherwise:
	mw.util.addCSS( '#bodyContent { position: relative; } .topicon { position: absolute; top: -2em !important; } ' +
		'#coordinates { position: absolute; top: 1px !important; }' );

} );
}