I need a script that counts the number of words read per minute.
The user enters the number of words of the text in a field. In another adds the time it takes to read it, it expressed in minutes.
By clicking on a button, the result must be released
The basic example is this, but how can I implement it in hype3?:
var word = $('#parole').val(); //the user write the number var parSec = word * 60; //the number written by users is multiplied by 60 var time = $('#tempo').val() ; // users write the time expressed in minutes var secTime = time*60 //how to convert the time in second? var PAM = parSec / secTime ; // It is divided by the number written in the form, and then multiplied by 60 (Parsec) with the time expressed in minutes (time) document.getElementById("demo").innerHTML = PAM; //releases the results
Can you help me?
Thanks for your help and cooperation.