| 177 | } |
| 178 | |
| 179 | function ensureGroup() { |
| 180 | if (!S.currentGroup) { |
| 181 | const g = document.createElement('div'); |
| 182 | g.className = 'step-group open'; |
| 183 | g.innerHTML = ` |
| 184 | <div class="step-group-header"> |
| 185 | <span class="step-chevron"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="M9 18l6-6-6-6"/></svg></span> |
| 186 | <span class="step-count">steps</span> |
| 187 | </div> |
| 188 | <div class="step-list"></div> |
| 189 | `; |
| 190 | $msgs.appendChild(g); |
| 191 | S.currentGroup = g; |
| 192 | S.currentGroupCount = 0; |
| 193 | } |
| 194 | return S.currentGroup.querySelector('.step-list'); |
| 195 | } |
| 196 | |
| 197 | // ---- Welcome ---- |
| 198 | function getWelcome() { return $('welcome'); } |