reintroduce bitty and add progressive enhancement and tabs

This commit is contained in:
2026-05-28 06:41:59 +03:00
parent d2ea0bbd51
commit 160629fca7
6 changed files with 65 additions and 16 deletions

View File

@@ -0,0 +1,17 @@
export const b = {
init: 'enhance',
}
export function enhance(_, __, el) {
console.log(el);
if (el.classList.contains('js-only')) {
el.classList.remove('js-only');
}
if (el.disabled) {
el.disabled = false;
if (el.title.search('JavaScript') !== -1) {
el.title = '';
}
}
}