(duration)
| 493 | } |
| 494 | |
| 495 | function recordingMessageCountdown(duration){ |
| 496 | |
| 497 | var secondsLeft = Math.ceil(duration); |
| 498 | |
| 499 | var countdownInterval = setInterval(function(){ |
| 500 | secondsLeft--; |
| 501 | recordingMessageDiv.innerHTML = |
| 502 | "Video recording underway. The video will be saved to your downloads folder in <span id=\"secondsLeft\">"+secondsLeft+"</span> seconds.<br><br>This feature can be a bit buggy on Mobile -- if it doesn't work, please try on Desktop instead."; |
| 503 | |
| 504 | if(secondsLeft <= 0){ |
| 505 | console.log("clear countdown interval"); |
| 506 | clearInterval(countdownInterval); |
| 507 | } |
| 508 | },1000); |
| 509 | |
| 510 | } |
| 511 | |
| 512 | function randomizeInputs(){ |
| 513 | speedInput.value = Math.ceil(Math.pow(Math.random(),2)*100); |
no outgoing calls
no test coverage detected