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.
Mobile view link is now site-wide, personal test no longer needed |
Temporary diagnostic probe Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* | /* BM probe - 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:90%;' ); | |||
box.textContent = 'probe...'; | |||
document.body.appendChild( box ); | |||
var firstMenu = null, n = 0; | |||
var t = setInterval( function () { | |||
n++; | |||
var menu = document.querySelector( '.bpneo-title-actions .bpneo-action-menu' ); | |||
if ( menu && !firstMenu ) { firstMenu = menu; } | |||
var lines = []; | |||
lines.push( 'skin=' + mw.config.get( 'wgSkin' ) ); | |||
lines.push( 'BMobj=' + ( typeof window.BharatMitra ) ); | |||
try { lines.push( 'state=' + mw.loader.getState( 'ext.gadget.BharatMitra' ) ); } catch ( e ) { lines.push( 'state=?' ); } | |||
lines.push( 'menu=' + !!menu ); | |||
lines.push( 'menuStable=' + ( menu ? ( menu === firstMenu ) : 'n/a' ) ); | |||
lines.push( 'item=' + !!document.getElementById( 'ca-bharatmitra' ) ); | |||
lines.push( 'tick=' + n ); | |||
box.textContent = lines.join( ' | ' ); | |||
if ( n >= 20 ) { clearInterval( t ); } | |||
}, 500 ); | |||
} ); | |||
Revision as of 10:47, 1 November 2026
/* BM probe - 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:90%;' );
box.textContent = 'probe...';
document.body.appendChild( box );
var firstMenu = null, n = 0;
var t = setInterval( function () {
n++;
var menu = document.querySelector( '.bpneo-title-actions .bpneo-action-menu' );
if ( menu && !firstMenu ) { firstMenu = menu; }
var lines = [];
lines.push( 'skin=' + mw.config.get( 'wgSkin' ) );
lines.push( 'BMobj=' + ( typeof window.BharatMitra ) );
try { lines.push( 'state=' + mw.loader.getState( 'ext.gadget.BharatMitra' ) ); } catch ( e ) { lines.push( 'state=?' ); }
lines.push( 'menu=' + !!menu );
lines.push( 'menuStable=' + ( menu ? ( menu === firstMenu ) : 'n/a' ) );
lines.push( 'item=' + !!document.getElementById( 'ca-bharatmitra' ) );
lines.push( 'tick=' + n );
box.textContent = lines.join( ' | ' );
if ( n >= 20 ) { clearInterval( t ); }
}, 500 );
} );