sass-site/source/assets/js/components/impl-status.ts
Jonny Gerig Meyer 77c4c3892d
Add eslint
2023-01-09 15:15:35 -05:00

17 lines
402 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');
});
});
});