Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
// Y2S3: 2021/9/22 | |||
var date1 = new Date(" | $(function () { | ||
var date1 = new Date("12/22/2021"); | |||
var date2 = new Date(); | var date2 = new Date(); | ||
var Difference_In_Time = date2.getTime() - date1.getTime(); | var Difference_In_Time = date2.getTime() - date1.getTime(); | ||
var Difference_In_Days = Difference_In_Time / (1000 * 3600 * 24); | var Difference_In_Days = Difference_In_Time / (1000 * 3600 * 24) +1; | ||
var dt = "Y2S4C" + Math.floor(Difference_In_Days); | |||
} | $('#leighco-date-current').html(dt); | ||
}()); |
Latest revision as of 07:59, 24 December 2021
/* Any JavaScript here will be loaded for all users on every page load. */ // Y2S3: 2021/9/22 $(function () { var date1 = new Date("12/22/2021"); var date2 = new Date(); var Difference_In_Time = date2.getTime() - date1.getTime(); var Difference_In_Days = Difference_In_Time / (1000 * 3600 * 24) +1; var dt = "Y2S4C" + Math.floor(Difference_In_Days); $('#leighco-date-current').html(dt); }());