sass-site/source/assets/js/components/impl-status.ts
2023-06-19 17:55:26 -04:00

22 lines
457 B
TypeScript

$(() => {
$('.impl-status').each(function () {
const statusBar = $(this);
const expandLink = statusBar.find('a');
// eslint-disable-next-line eqeqeq
if (expandLink == null) {
return;
}
const details = statusBar.next();
if (!details.hasClass('sl-c-callout')) {
return;
}
details.hide();
expandLink.on('click', () => {
details.toggle();
expandLink.toggleClass('expanded');
});
});
});