Compare commits
No commits in common. "0abc014e2c1760e0f98e9957f0d7ead8588eb91e" and "1ed3394d4ed95f775cbe949d6f7acbd7dbf8a14d" have entirely different histories.
0abc014e2c
...
1ed3394d4e
9
app.js
9
app.js
@ -406,7 +406,6 @@ 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
|
||||
@ -476,7 +475,11 @@ class Stats {
|
||||
}
|
||||
|
||||
get time() {
|
||||
return this.timeFormat.format(new Date() - this._time)
|
||||
return new Date() - this._time
|
||||
}
|
||||
|
||||
clock() {
|
||||
timeCell.innerText = this.timeFormat.format(this.time)
|
||||
}
|
||||
|
||||
lockDown(nbClearedLines, tSpin) {
|
||||
@ -604,7 +607,7 @@ function resume(event) {
|
||||
}
|
||||
|
||||
function clock() {
|
||||
timeCell.innerText = stats.time
|
||||
stats.clock()
|
||||
}
|
||||
|
||||
function generate(piece=nextQueue.shift()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user