Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
(Created page with "→Any JavaScript here will be loaded for all users on every page load.: console.log('Hello World');") |
|||
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. */ | ||
var leighCurrentDate = function() { | |||
var date1 = new Date("09/22/2021"); | |||
var date2 = new Date(); | |||
var Difference_In_Time = date2.getTime() - date1.getTime(); | |||
var Difference_In_Days = Difference_In_Time / (1000 * 3600 * 24); | |||
document.write("Y2S3C" + Math.floor(Difference_In_Days)); | |||
} |
Revision as of 21:39, 16 December 2021
/* Any JavaScript here will be loaded for all users on every page load. */ var leighCurrentDate = function() { var date1 = new Date("09/22/2021"); var date2 = new Date(); var Difference_In_Time = date2.getTime() - date1.getTime(); var Difference_In_Days = Difference_In_Time / (1000 * 3600 * 24); document.write("Y2S3C" + Math.floor(Difference_In_Days)); }