Append "Дисциплина к успеху" motto to WhatsApp reminder text
Split reminder data into short button label and full WhatsApp text so the motto only appears in the message, not in the button caption. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
9de414fefe
commit
2c978f48bd
@ -476,10 +476,11 @@
|
||||
hours: "круглосуточно, подсветка после 20:00" }
|
||||
];
|
||||
|
||||
const REMINDER_MOTTO = "💪 Дисциплина к успеху";
|
||||
const REMINDERS = {
|
||||
weekdaySteps: { text: "Пройти 5 000 шагов сегодня 👟" },
|
||||
weekendSteps: { text: "Пройти 10 000 шагов сегодня 👟" },
|
||||
instagram: { text: "Опубликовать одну историю в Instagram (@zhanara2964) 📷" }
|
||||
weekdaySteps: { label: "Пройти 5 000 шагов сегодня", text: "Пройти 5 000 шагов сегодня 👟\n" + REMINDER_MOTTO },
|
||||
weekendSteps: { label: "Пройти 10 000 шагов сегодня", text: "Пройти 10 000 шагов сегодня 👟\n" + REMINDER_MOTTO },
|
||||
instagram: { label: "История в Instagram", text: "Опубликовать одну историю в Instagram (@zhanara2964) 📷\n" + REMINDER_MOTTO }
|
||||
};
|
||||
|
||||
const WHATSAPP_NUMBER = "77477854246";
|
||||
@ -645,7 +646,7 @@
|
||||
const isWeekend = dow === 0 || dow === 6;
|
||||
const steps = isWeekend ? REMINDERS.weekendSteps : REMINDERS.weekdaySteps;
|
||||
stepsBtn.href = waLink(steps.text);
|
||||
stepsLabel.textContent = steps.text;
|
||||
stepsLabel.textContent = steps.label;
|
||||
igBtn.href = waLink(REMINDERS.instagram.text);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user