Created
June 27, 2021 06:44
-
-
Save watilde/c659f3654169ca11982fc7f828efef51 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- @watilde --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1"> | |
<style> | |
body{ | |
font-size: 125px; | |
text-align: center; | |
color: #fff; | |
font-family: '851テガキカクット', sans-serif; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="calender"></div> | |
<script> | |
const d = new Date(); | |
const year = d.getFullYear(); | |
const month = d.getMonth() + 1; | |
const date = d.getDate(); | |
const day = d.getDay(); | |
const dow = ['日', '月', '火', '水', '木', '金', '土'][day]; | |
const elm = document.getElementById('calender'); | |
elm.textContent = `${year}年${month}月${date}日(${dow})`; | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment