Scheduled Server Maintenance:
Bharatpedia is currently undergoing server maintenance. During this period, logged-in users may experience temporary service disruptions, session interruptions, or login issues. We kindly request your patience and understanding while the maintenance work is in progress.
All services are expected to resume normally once maintenance is complete. This notice will be removed as soon as the maintenance is finished. Thank you for your cooperation.
All services are expected to resume normally once maintenance is complete. This notice will be removed as soon as the maintenance is finished. Thank you for your cooperation.
Temporary diagnostic probe Tag: Reverted |
Update diagnostic probe Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* BM probe - temporary */ | /* BM probe 2 - temporary */ | ||
$( function () { | $( function () { | ||
var box = document.createElement( 'div' ); | var box = document.createElement( 'div' ); | ||
box.id = 'bm-probe'; | box.id = 'bm-probe'; | ||
box.setAttribute( 'style', 'position:fixed;top:0;left:0;z-index:99999;background:#fff;color:#000;border:2px solid red;padding:6px;font-size:12px;max-width: | box.setAttribute( 'style', 'position:fixed;top:0;left:0;z-index:99999;background:#fff;color:#000;border:2px solid red;padding:6px;font-size:12px;max-width:95%;' ); | ||
box.textContent = ' | box.textContent = 'probe2 chalu...'; | ||
document.body.appendChild( box ); | document.body.appendChild( box ); | ||
function st( m ) { try { return mw.loader.getState( m ); } catch ( e ) { return 'err'; } } | |||
var before = 'twinkle=' + st( 'ext.gadget.Twinkle' ) + ' | userstats=' + st( 'ext.gadget.UserStats' ) + ' | bm=' + st( 'ext.gadget.BharatMitra' ) + ' | bmobj=' + ( typeof window.BharatMitra ); | |||
box.textContent = before + ' | load koshish...'; | |||
mw.loader.using( [ 'ext.gadget.BharatMitra' ] ).then( function () { | |||
setTimeout( function () { | |||
box.textContent = before + ' | LOAD SAFAL | bmobj=' + ( typeof window.BharatMitra ) + ' | item=' + !!document.getElementById( 'ca-bharatmitra' ); | |||
}, 1500 ); | |||
}, function ( e ) { | |||
box.textContent = before + ' | LOAD FAIL: ' + ( e && e.message ? e.message : e ); | |||
} ); | |||
box.textContent = | |||
} | |||
} ); | } ); | ||
Revision as of 10:50, 1 November 2026
/* BM probe 2 - temporary */
$( function () {
var box = document.createElement( 'div' );
box.id = 'bm-probe';
box.setAttribute( 'style', 'position:fixed;top:0;left:0;z-index:99999;background:#fff;color:#000;border:2px solid red;padding:6px;font-size:12px;max-width:95%;' );
box.textContent = 'probe2 chalu...';
document.body.appendChild( box );
function st( m ) { try { return mw.loader.getState( m ); } catch ( e ) { return 'err'; } }
var before = 'twinkle=' + st( 'ext.gadget.Twinkle' ) + ' | userstats=' + st( 'ext.gadget.UserStats' ) + ' | bm=' + st( 'ext.gadget.BharatMitra' ) + ' | bmobj=' + ( typeof window.BharatMitra );
box.textContent = before + ' | load koshish...';
mw.loader.using( [ 'ext.gadget.BharatMitra' ] ).then( function () {
setTimeout( function () {
box.textContent = before + ' | LOAD SAFAL | bmobj=' + ( typeof window.BharatMitra ) + ' | item=' + !!document.getElementById( 'ca-bharatmitra' );
}, 1500 );
}, function ( e ) {
box.textContent = before + ' | LOAD FAIL: ' + ( e && e.message ? e.message : e );
} );
} );