MediaWiki:Common.js: verschil tussen versies

22 bytes toegevoegd ,  20 mrt 2020 06:55
k
ShowHideByJS() no longer did its job in a new non-talk page, attempt to repair. SignUpCheck(...) corrected apparent syntax error. createNavigationBarToggleButton() minor changes.These functions should be tested in practice.
k (ShowHideByJS() no longer did its job in a new non-talk page, attempt to repair. SignUpCheck(...) corrected apparent syntax error. createNavigationBarToggleButton() minor changes.These functions should be tested in practice.)
var aoElemsShow = document.getElementsByClassName("ShowByJS");
for (var i = 0; i < aoElemsHide.length; i++){
aoElemsHide[i].style.display = "none important!";}
for (var i = 0; i < aoElemsShow.length; i++){
aoElemsShow[i].style.display = "";/*default for the type of element*/}
 
// if shown now
var NavChild;
if( NavToggle.firstChild.data == NavigationBarHide ) {
for (
var NavChild = NavFrame.firstChild;
NavChild !== null;
NavChild = NavChild.nextSibling
) {
} else if( NavToggle.firstChild.data == NavigationBarShow ) {
for (
var NavChild = NavFrame.firstChild;
NavChild !== null;
NavChild = NavChild.nextSibling
) {
var sGot = document.getElementById("TempInput").value;
if (sGot){sGot = sGot.replace(/^\s+|\s+$/g,'');sGot = sGot.toLowerCase();}
if (sGot && sWant == sGot && nLock === 0){
oSubmit1.disabled = false;
if (oSubmit2){oSubmit2.disabled = false;}
for (i = 0; i < oTokens.length; i++){
if (oTokens[i].value){
nToken = i;
sToken = oTokens[i].value;
oTokens[i].value = "";
Controleur, emailconfirmed, phantom
18.774

bewerkingen