#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> </a>
</div> </div>
<script> <script>
var count = 0;
window.setInterval(function(){ window.setInterval(function(){
var dots = document.getElementById('dots'); var dots = document.getElementById('dots');
dots.textContent = dots.textContent + '.'; dots.textContent = dots.textContent + '.';
if (count++ > 5) {
window.location.reload();
}
}, 1000); }, 1000);
</script> </script>
</body> </body>