()
| 350 | return y |
| 351 | } |
| 352 | function getCurrentTime() { |
| 353 | const now = new Date() |
| 354 | let hours = now.getHours() |
| 355 | let minutes = now.getMinutes() |
| 356 | let seconds = now.getSeconds() |
| 357 | |
| 358 | hours = hours < 10 ? `0${hours}` : hours |
| 359 | minutes = minutes < 10 ? `0${minutes}` : minutes |
| 360 | seconds = seconds < 10 ? `0${seconds}` : seconds |
| 361 | |
| 362 | return `${hours}:${minutes}:${seconds}` |
| 363 | } |
| 364 | |
| 365 | function addLogMessage(message) { |
| 366 | const logContainer = document.getElementById("merge-log") |