Skip to content

Instantly share code, notes, and snippets.

@MightyAlex200
Created October 30, 2017 20:46
Show Gist options
  • Save MightyAlex200/3a77333e5912c694b7194c6454ed3959 to your computer and use it in GitHub Desktop.
Save MightyAlex200/3a77333e5912c694b7194c6454ed3959 to your computer and use it in GitHub Desktop.
smiling face thing
<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;">
&#8226;&#9181;&#8226;
<p>
</div>
<script>
let faceElement = document.getElementById("face");
function blink() {
faceElement.innerHTML = "-&#9181;-";
setTimeout(() => faceElement.innerHTML = "&#8226;&#9181;&#8226;", 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