sass-site/source/assets/js/components/impl-status.ts
Jonny Gerig Meyer 2e97aaf8d8
lint
2023-03-08 16:14:25 -05:00

21 lines
430 B
TypeScript

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