Skip to content

Commit aae46b9

Browse files
committed
format console output
1 parent 727499c commit aae46b9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

assets/js/main.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ function handleMousedown(ev) {
111111
}
112112

113113
console.log(
114-
`%c${button.name}: Mousedown - Mousedown Δ: ${delta} ms`,
114+
`%c${button.name.padEnd(8)} | Down - Down Δ | ${delta
115+
.toFixed(1)
116+
.padStart(7)} ms`,
115117
"color: black; background-color: white"
116118
);
117119
}
@@ -132,7 +134,9 @@ function handleMouseup(ev) {
132134
}
133135

134136
console.log(
135-
`%c${button.name}: Mousedown - Mouseup Δ: ${delta} ms`,
137+
`%c${button.name.padEnd(8)} | Down - Up Δ | ${delta
138+
.toFixed(1)
139+
.padStart(7)} ms`,
136140
"color: white; background-color: black"
137141
);
138142

0 commit comments

Comments
 (0)