Skip to content

Instantly share code, notes, and snippets.

@sebworks
Created October 17, 2019 21:08
Show Gist options
  • Save sebworks/95a9855267f87d66dfc953ec27024638 to your computer and use it in GitHub Desktop.
Save sebworks/95a9855267f87d66dfc953ec27024638 to your computer and use it in GitHub Desktop.
fix
<script type="text/javascript">
var c=0;
var t;
var timer_is_on=0;
function timedCount()
{
if (c<50)
{
document.getElementById('txt').value="###############";
}
else if (c==50)
{
document.getElementById('txt').value="DAT";
}
else if (c>50)
{
document.getElementById('txt').value="###############";
window.clearTimeout(t);
}
c=c+1;
t=setTimeout("timedCount()",25);
}
function doTimer()
{
if (!timer_is_on)
{
timer_is_on=1;
timedCount();
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment