-
-
Save zhuqling/800dd2dbf147a6029e76 to your computer and use it in GitHub Desktop.
Dot progress // source http://jsbin.com/povohu
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Dot progress</title> | |
</head> | |
<body> | |
<span id="loading-dots"></span> | |
<script id="jsbin-javascript"> | |
var x = 0; | |
setInterval(function() { | |
var dots = ""; | |
x++; | |
for (var y = 0; y < x % 4; y++) { | |
dots += "."; | |
} | |
document.getElementById("loading-dots").innerHTML = dots; | |
}, 500); | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">var x = 0; | |
setInterval(function() { | |
var dots = ""; | |
x++; | |
for (var y = 0; y < x % 4; y++) { | |
dots += "."; | |
} | |
document.getElementById("loading-dots").innerHTML = dots; | |
}, 500);</script></body> | |
</html> |
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
var x = 0; | |
setInterval(function() { | |
var dots = ""; | |
x++; | |
for (var y = 0; y < x % 4; y++) { | |
dots += "."; | |
} | |
document.getElementById("loading-dots").innerHTML = dots; | |
}, 500); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment