NOTICE
The lore articles on the wiki are currently being rewritten in some capacity. If you wish for the most updated information, or knowledge on a specific article, the best place to reach out is in #sim-lore-general on Discord.
MediaWiki:Common.js: Difference between revisions
From New Frontiers Wiki
(Created page with "→Any JavaScript here will be loaded for all users on every page load.: $ (function () { var currentDate = new Date() var cICYear = currentDate.getFullYear() + 800...") |
No edit summary |
||
Line 5: | Line 5: | ||
var cICMonth = currentDate.getMonth() + 1 | var cICMonth = currentDate.getMonth() + 1 | ||
var cICDay = currentDate.getDay() | var cICDay = currentDate.getDay() | ||
$('#currentICDate'). | $('#currentICDate').append(cICYear + '/' + cICMonth + '/' + cICDay) | ||
}); | |||
$ (function () { | |||
var currentDate = new Date() | |||
var cICYear = currentDate.getFullYear() + 800 | |||
$('#currentICYear').append(cICYear) | |||
}); | }); |
Latest revision as of 08:42, 25 September 2021
/* Any JavaScript here will be loaded for all users on every page load. */ $ (function () { var currentDate = new Date() var cICYear = currentDate.getFullYear() + 800 var cICMonth = currentDate.getMonth() + 1 var cICDay = currentDate.getDay() $('#currentICDate').append(cICYear + '/' + cICMonth + '/' + cICDay) }); $ (function () { var currentDate = new Date() var cICYear = currentDate.getFullYear() + 800 $('#currentICYear').append(cICYear) });