Last active
October 25, 2018 13:12
-
-
Save oluwasayo/e98138ff0a04029eed5812a90adf9a6b to your computer and use it in GitHub Desktop.
A useless webpage showing a big bold number 1 or 2 for a day
This file contains 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
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui"> | |
<style> | |
body { | |
background-color: black; | |
overflow: hidden; | |
} | |
div { | |
width: 100%; | |
height: 100%; | |
line-height: 100vh; | |
font-weight: 600; | |
font-size: 80vw; | |
text-align: center; | |
color: red; | |
user-select: none; | |
overflow: inherit; | |
animation: glow 8s ease-in-out 4s infinite; | |
} | |
@keyframes glow { | |
50% { text-shadow: 0 0 10vw red; } | |
} | |
</style> | |
<script type="text/javascript"> | |
const trigger = () => { | |
const days = Math.floor(new Date().getTime() / (1000 * 60 * 60 * 24)); | |
const num = (days % 2) + 1; | |
document.querySelector("div").textContent = num; | |
setTimeout(trigger, 1000 * 60 * 10); | |
} | |
window.addEventListener("load", trigger); | |
</script> | |
</head> | |
<body> | |
<div></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment