diff --git a/web/CatWarMod.js b/web/CatWarMod.js index a95b324..8e63573 100644 --- a/web/CatWarMod.js +++ b/web/CatWarMod.js @@ -2018,6 +2018,7 @@ function activityCalc(catId) { }); } + // Keeps the goal calculator's Russian hour label grammatically correct. // Keeps the goal calculator's Russian hour label grammatically correct. function updateHourWord() { const hours = sets[catId].hours; @@ -2025,6 +2026,7 @@ function activityCalc(catId) { } // Converts an action duration descriptor into minutes for goal calculations. + // Converts an action duration descriptor into minutes for calculations. function actLength(d) { const minus = sets[catId].minus || 0; if (d <= 14) return 150 - minus; @@ -2033,6 +2035,7 @@ function activityCalc(catId) { } // Estimates remaining training time from current progress and daily capacity. + // Estimates remaining training time from progress and daily capacity. function left(currentActivity, goal, hoursPerDay) { const secsPerDay = convertTime('h s', hoursPerDay); if (actLength(currentActivity) * 4 + 1 > secsPerDay) { @@ -2070,6 +2073,7 @@ function activityCalc(catId) { }; } + // Recalculates and renders the visible remaining-time estimate. // Recalculates and renders the visible remaining-time estimate. function updateToact() { if (progress.stage === actStages.length - 1) { @@ -2748,6 +2752,7 @@ function getSavedLsById(lsId) { } /* // Synchronizes the calculator with the currently selected training page. + // Initializes the training-time calculator and its form interactions. function changeTimePage() { const catTimeNow = timestampToCatTime(Date.now()); $(isDesctop ? '#branch' : '#site_table').append(`