gctGenerator/site/.vuepress/public/april.js

8 lines
181 B
JavaScript
Raw Permalink Normal View History

2021-04-01 05:51:59 +09:00
window.addEventListener('DOMContentLoaded', () => {
const now = new Date();
2021-04-01 07:01:21 +09:00
if (now.getMonth() === 3 && now.getDate() === 1) {
2021-04-01 05:51:59 +09:00
document.body.classList.add('fool');
}
});