Finally get rid of <script> tags
Posted: Wed Apr 16, 2014 11:00 am
I'm shortening the code (onload Ø):
Ø
☑
The working example is bloated with script tags. The code before that included:
I was advised to exchange places s and e. And now I don't know: what's simply "t" before ternary "?" And <script>t=0;</script> must also stay in that case 
Code: Select all
<input onload="t=0;" onkeypress="t?e=new Date():s=new Date();t=1" onblur="d=e.getTime()-s.getTime();c=this.value.length;this.value+=c/d">Code: Select all
<input onkeypress="t?e=new Date():s=new Date();t=1" onblur="d=e.getTime()-s.getTime();c=this.value.length;this.value+=c/d"><script>t=0;</script>The working example is bloated with script tags. The code before that included:
Code: Select all
t==0s=new Date():e=new Date()