#13 refresh page if more than five dots

This commit is contained in:
Alok Saldanha
2019-11-28 15:54:42 -05:00
parent 9532375eb0
commit 876263c046
+4
View File
@@ -44,9 +44,13 @@
</a>
</div>
<script>
var count = 0;
window.setInterval(function(){
var dots = document.getElementById('dots');
dots.textContent = dots.textContent + '.';
if (count++ > 5) {
window.location.reload();
}
}, 1000);
</script>
</body>