Skip to content

Instantly share code, notes, and snippets.

@watilde
Created June 27, 2021 06:44
Show Gist options
  • Save watilde/c659f3654169ca11982fc7f828efef51 to your computer and use it in GitHub Desktop.
Save watilde/c659f3654169ca11982fc7f828efef51 to your computer and use it in GitHub Desktop.
<!-- @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