Compare commits
2 Commits
1ed3394d4e
...
0abc014e2c
Author | SHA1 | Date | |
---|---|---|---|
0abc014e2c | |||
b134b8deb8 |
9
app.js
9
app.js
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user