()
| 631 | } |
| 632 | |
| 633 | function getCurrentLogDate() { |
| 634 | let splitted = location.pathname.split("/"); |
| 635 | let last = splitted[splitted.length - 1]; |
| 636 | if (last === "" || last === "log") return new Date(); |
| 637 | return new Date(last); |
| 638 | } |
| 639 | |
| 640 | function addDate(date, amount) { |
| 641 | let newDate = new Date(date); |