diff --git a/mockup.html b/mockup.html index 35a091f..e93a5d9 100644 --- a/mockup.html +++ b/mockup.html @@ -3790,11 +3790,14 @@ function elenaIntent(intent) { // question — показываем текстовое поле без загрузки if (intent === 'question') { + var step1El = document.getElementById('el-step1'); document.querySelectorAll('#el-step1 .int-card').forEach(function(c){ c.style.opacity='.45'; c.style.pointerEvents='none'; }); var qBox = document.createElement('div'); qBox.className = 'msg'; qBox.innerHTML = '
Елена
Конечно — спрашивайте 💛 Опишите ситуацию, я отвечу по нормам ГК/ТК/ЗоЗПП. Или включите микрофон 🎙
'; - document.getElementById('el-step1').appendChild(qBox); + // Если el-step1 скрыт (трансфер из mini-chat) — добавляем в chatwrap + var target = (step1El && step1El.style.display !== 'none') ? step1El : (document.querySelector('.chatwrap') || step1El); + if (target) target.appendChild(qBox); return; }