MediaWiki:Vector-2022.js: Difference between revisions

no edit summary
m (Ondo moved page User:Ondo/vector-2022.js to MediaWiki:Vector-2022.js without leaving a redirect)
No edit summary
Line 42: Line 42:
document.getElementsByClassName("mw-logo-icon")[0].src=picArr[key];
document.getElementsByClassName("mw-logo-icon")[0].src=picArr[key];


if (noarticle.includes(key)) {
if (!noarticle.includes(key)){
div.innerHTML += '<span class="nbweek-banner"><span class="nbweek-flag">Currently showing the ' + key + ' flag.</span></span>';
document.getElementsByClassName("mw-logo")[0].href="https://nonbinary.wiki/wiki/" + key;
} else {
div.innerHTML += '<span class="nbweek-banner"><span class="nbweek-flag">Currently showing the <a href="https://nonbinary.wiki/wiki/' + key + '">' + key + '</a> flag.</span></span>';
}
}