How can you display Typing Speed using Javascript or the jQuery library?

后端 未结 4 1493
-上瘾入骨i
-上瘾入骨i 2021-02-09 04:26

I would like to add a typing speed indicator just below the textarea we use on our contact form. It is just for fun and to give the user some interactivity with the page while t

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-09 04:59

    Typing speed is generally computed in words per minute minus a penalty for typos. To do this it seems like you'd need an inline spell-checker at the very least, plus some heavy lifting for languages and encoding schemes. (And then it starts to get complicated; when does the clock start, for instance? What do you do about people who are entering code? How about copy-and-pasting?)

提交回复
热议问题