MediaWiki:ChapterCountdown.js

/* Next chapter release countdown clock */ // Takes the current month and year var monthNames = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; var month = monthNames[new Date.getMonth]; var year = new Date.getFullYear; // Generates the countdown var countdown = ' Only ' + month + ' 08 ' + year + ' 16:00:00 -0700 for the chapter\'s official release! '; // Appends it to the (to load faster and as a standard initial placement) $('body').append(countdown); // Moves it to different places accordingly if (mw.config.get('wgNamespaceNumber') === 1201) { // Above message box in threads $('.new-reply').prepend($('#chapter-countdown')); }