Skip to content

Commit

Permalink
[pressffornoreason] change interval time
Browse files Browse the repository at this point in the history
  • Loading branch information
Chayapatr Archiwaranguprok committed Oct 11, 2019
1 parent 75a4d49 commit 4e7a74b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pressffornoreason/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ <h1> F </h1>
window.buttonMode = "f"
document.querySelector("#reset").disabled = !window.start
window.countdown = setInterval(() => {
window.time -= 0.01
window.time -= 0.05
document.querySelector("#timer").innerHTML = `time : ${window.time.toFixed(3)}`
if (window.time <= 0) {
window.start = false
Expand All @@ -164,7 +164,7 @@ <h1> F </h1>
if (isFinite(window.counter / (60 - window.time).toFixed(3)))
document.querySelector("#fps").innerHTML =
`F per sec : ${(window.counter/(60-window.time)).toFixed(3)}`
}, 10)
}, 50)
}
document.addEventListener('keydown', e => {
if (e.key.toLowerCase() === "f" || e.key=== " ") if(window.start) {
Expand Down

0 comments on commit 4e7a74b

Please sign in to comment.