|
169 | 169 |
|
170 | 170 | outputTitleHash.setAttribute('id', 'hash-tag-title'); |
171 | 171 | outputTitleHash.setAttribute('tabindex', '0'); |
| 172 | + outputTable.setAttribute('aria-label', 'Таблица данных о клиентах'); |
172 | 173 | outTblHeadThId.setAttribute('id', 'table-th-id'); |
173 | 174 | outTblHeadThId.setAttribute('tabindex', '0'); |
| 175 | + outTblHeadThId.setAttribute('scope', 'col'); |
174 | 176 | outTblHeadThFIO.setAttribute('id', 'table-th-fio'); |
175 | 177 | outTblHeadThFIO.setAttribute('tabindex', '0'); |
| 178 | + outTblHeadThFIO.setAttribute('scope', 'col'); |
176 | 179 | outTblHeadThCreationDT.setAttribute('id', 'table-th-dt'); |
177 | 180 | outTblHeadThCreationDT.setAttribute('tabindex', '0'); |
| 181 | + outTblHeadThCreationDT.setAttribute('scope', 'col'); |
178 | 182 | outTblHeadThChanges.setAttribute('id', 'table-th-change'); |
179 | 183 | outTblHeadThChanges.setAttribute('tabindex', '0'); |
| 184 | + outTblHeadThChanges.setAttribute('scope', 'col'); |
180 | 185 | outTblHeadThContacts.setAttribute('id', 'table-th-contact'); |
181 | 186 | outTblHeadThContacts.setAttribute('tabindex', '0'); |
| 187 | + outTblHeadThContacts.setAttribute('scope', 'col'); |
182 | 188 | outTblHeadThActions.setAttribute('id', 'table-th-action'); |
183 | 189 | outTblHeadThActions.setAttribute('tabindex', '0'); |
| 190 | + outTblHeadThActions.setAttribute('scope', 'col'); |
184 | 191 |
|
185 | 192 | outputTitleHash.textContent = '#'; |
186 | 193 | outputTitle.textContent = 'Клиенты'; |
|
748 | 755 |
|
749 | 756 | let isDropdownToggleAllowed = true; // возможность/разрешение на показ выпадающего списка |
750 | 757 |
|
| 758 | + // ! может вынести в отдельную функцию.. после if.. просто вызов функции() которая всё делает?? |
| 759 | + |
751 | 760 | // показ/скрытие выпадающего списка вариантов/контактов (открытым может быть только один, переключение) |
752 | 761 | addModalContactDropBtn.addEventListener('click', (event) => { |
753 | 762 | if (!isDropdownToggleAllowed) return; // проверка возможности/разрешения на показ списка |
|
0 commit comments