MediaWiki: Tweeki.js: Difference between revisions

From Ensiklopedia
No edit summary
No edit summary
Line 4: Line 4:
m = n.getMonth() + 1;
m = n.getMonth() + 1;
d = n.getDate();
d = n.getDate();
document.querySelector("#date").innerHTML = m + "/" + d + "/" + y;
document.querySelector("p.date").innerHTML = m + "/" + d + "/" + y;

Revision as of 15:39, 25 May 2023

/* Any JavaScript here will be loaded for users using the Tweeki skin */
n =  new Date();
y = n.getFullYear();
m = n.getMonth() + 1;
d = n.getDate();
document.querySelector("p.date").innerHTML = m + "/" + d + "/" + y;