Created
October 30, 2017 20:46
-
-
Save MightyAlex200/3a77333e5912c694b7194c6454ed3959 to your computer and use it in GitHub Desktop.
smiling face thing
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
<html> | |
<head> | |
<title>Smile</title> | |
</head> | |
<body style="margin: 0px; background: white;"> | |
<div style="margin: 0px; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center"> | |
<p id="face" style="font-size: 11em; margin: 0px; color: black;"> | |
•⏝• | |
<p> | |
</div> | |
<script> | |
let faceElement = document.getElementById("face"); | |
function blink() { | |
faceElement.innerHTML = "-⏝-"; | |
setTimeout(() => faceElement.innerHTML = "•⏝•", 40); | |
setTimeout(blink, Math.random()*10000) | |
} | |
blink(); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment