Compare commits

..

2 Commits

Author SHA1 Message Date
0abc014e2c input.blur() 2023-04-22 15:01:52 +02:00
b134b8deb8 clock 2023-04-22 15:00:51 +02:00

9
app.js
View File

@ -406,6 +406,7 @@ function changeKey(input) {
input.onkeydown = function (event) {
event.preventDefault()
input.value = KEY_NAMES[event.key] || event.key
input.blur()
}
input.onblur = function (event) {
if (input.value == "Touche ?") input.value = prevValue
@ -475,11 +476,7 @@ class Stats {
}
get time() {
return new Date() - this._time
}
clock() {
timeCell.innerText = this.timeFormat.format(this.time)
return this.timeFormat.format(new Date() - this._time)
}
lockDown(nbClearedLines, tSpin) {
@ -607,7 +604,7 @@ function resume(event) {
}
function clock() {
stats.clock()
timeCell.innerText = stats.time
}
function generate(piece=nextQueue.shift()) {