Jump to content

MediaWiki:Common.js: Difference between revisions

Line 19: Line 19:
     .then(data => {
     .then(data => {
       const current = data.query.statistics.articles;
       const current = data.query.statistics.articles;
       const goal = 200;
       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 200 articles! Celebrate good times, c'mon!`;
           : `🎯 We've reached 500 articles! Celebrate good times, c'mon!`;
       }
       }
     });
     });
});
});