()
| 431 | } |
| 432 | |
| 433 | function getCurrentLogDate() { |
| 434 | let splitted = location.pathname.split("/"); |
| 435 | let last = splitted[splitted.length - 1]; |
| 436 | if (last === "" || last === "log") return new Date(); |
| 437 | return new Date(last); |
| 438 | } |
| 439 | |
| 440 | function addDate(date, amount) { |
| 441 | let newDate = new Date(date); |