MediaWiki:Common.js: Difference between revisions

28.10.2025 Prusac | 18.11.2025

No edit summary
No edit summary
Line 13: Line 13:
});
});
}
}
document.getElementById('footer').innerHTML += '<span>sasa test</span>';

Revision as of 14:40, 5 November 2025

/* Any JavaScript here will be loaded for all users on every page load. */

document.getElementById('searchInput').focus();
document.getElementById('searchInput').setAttribute("placeholder","");
/*document.getElementsByClassName('cdx-text-input__input')[0].setAttribute("autocomplete","off");*/
/*document.getElementsByClassName('mw-inputbox-createbox')[0].setAttribute("autocomplete","off");*/

if (document.title === 'Kreiranje novog članka - MelanyWiki') {
	document.getElementsByClassName('mw-inputbox-createbox')[0].setAttribute("autocomplete","off");
	/*klik iz abstracta za focus inputa 'novi clanak'*/
	document.getElementById("precica").addEventListener("click", function(e) {
		document.getElementsByClassName('mw-inputbox-createbox')[0].focus();
	});
}

document.getElementById('footer').innerHTML += '<span>sasa test</span>';