Mobile view link is now site-wide, personal test no longer needed
Temporary diagnostic probe
Tag: Reverted
Line 1: Line 1:
/* Mobile view link is now site-wide in MediaWiki:Bharatpedianeo.js; personal test no longer needed. */
/* 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 );
} );
Explore
Main page Explore Bharatpedia Random article Discover something new Categories Browse topics and subjects Recent changes See what's changing
Useful
Preferences
Language
Appearance
Font size
Accessibility
Help
Not logged in

You are not logged in. Edits from this browser are recorded under your IP address.

Log in or create an account to get credit for future edits and access more features.

Not logged in
Please sign up or log in to edit Bharatpedia.
Create account