xcislav Posted April 17, 2014 Share Posted April 17, 2014 <input onkeyup="s?e=Date.now():s=Date.now()"onblur="c=this.value.length;this.value+=c/(e-s)"><script>s=0</script> <script>s=0</script> Once this executes - it's completely needless. But without s=0 there are no s, e variables. With = OK. How is it logically possible to reduce keeping it short? Quote Link to comment https://forums.phpfreaks.com/topic/287844-possibility-of-reducing-tags/ Share on other sites More sharing options...
KubeR Posted April 17, 2014 Share Posted April 17, 2014 (edited) Make a place for all the arrays. So instead of having the arrays all over the code,they will be organized in one place. To make it even shorter,don't use tab and put all in one line. e.g. <script>var a,b,c,d,e=0,f,g,h,i,j,k,l,m,n,o,p,q,r,s=0;</script> Edited April 17, 2014 by KubeR Quote Link to comment https://forums.phpfreaks.com/topic/287844-possibility-of-reducing-tags/#findComment-1476505 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.