diff --git a/index.html b/index.html
index d0f9a87..9700ec0 100644
--- a/index.html
+++ b/index.html
@@ -855,6 +855,8 @@
document.getElementById('modal-video').innerHTML =
'
' +
'

' +
+ '
' +
+ '
' +
'
';
document.getElementById('modal-desc').textContent = ex.desc;
document.getElementById('video-modal').classList.add('active');
@@ -893,7 +895,10 @@
const ex = exercises.find(e => e.id === id);
document.getElementById('main-video-player').innerHTML =
- '
';
+ '' +
+ '

' +
+ '
' +
+ '
';
document.getElementById('current-exercise-name').textContent = ex.name;
document.getElementById('current-exercise-desc').innerHTML = '🎯 ' + ex.focus + ' • ⏱️ ' + ex.time + ' • ' + ex.reps + '
' + ex.desc;
@@ -901,6 +906,22 @@
event.currentTarget.classList.add('active');
}
+ function playAudio(id) {
+ const ex = exercises.find(e => e.id === id);
+ const text = ex.name + '. ' + ex.desc + '. Повторы: ' + ex.reps + '. Время: ' + ex.time;
+
+ if ('speechSynthesis' in window) {
+ window.speechSynthesis.cancel();
+ const utterance = new SpeechSynthesisUtterance(text);
+ utterance.lang = 'ru-RU';
+ utterance.rate = 0.9;
+ utterance.pitch = 1;
+ window.speechSynthesis.speak(utterance);
+ } else {
+ alert('Ваш браузер не поддерживает синтез речи');
+ }
+ }
+
function markTodayDone() {
const todayStr = new Date().toDateString();
if (!progressData.completedDays.includes(todayStr)) {