MediaWiki:Common.js: Difference between revisions
Appearance
![]() Cdjensen94 (talk | contribs) |
![]() Cdjensen94 (talk | contribs) |
||
Line 19: | Line 19: | ||
.then(data => { | .then(data => { | ||
const current = data.query.statistics.articles; | const current = data.query.statistics.articles; | ||
const goal = | const goal = 500; | ||
const left = goal - current; | const left = goal - current; | ||
const el = document.getElementById("article-countdown"); | const el = document.getElementById("article-countdown"); | ||
Line 25: | Line 25: | ||
el.innerHTML = left > 0 | el.innerHTML = left > 0 | ||
? `🚧 Only <strong>${left}</strong> articles to go until 200!` | ? `🚧 Only <strong>${left}</strong> articles to go until 200!` | ||
: `🎯 We've reached | : `🎯 We've reached 500 articles! Celebrate good times, c'mon!`; | ||
} | } | ||
}); | }); | ||
}); | }); |