sass-site/source/assets/js/components/impl-status.ts

17 lines
402 B
TypeScript
Raw Normal View History

2023-01-09 20:10:02 +01:00
$(function () {
$('.impl-status').each(function () {
2023-01-09 21:15:35 +01:00
const statusBar = $(this);
const expandLink = statusBar.find('a');
2023-01-06 22:40:29 +01:00
if (expandLink == null) return;
2023-01-09 21:15:35 +01:00
const details = statusBar.next();
2023-01-09 20:10:02 +01:00
if (!details.hasClass('sl-c-callout')) return;
2023-01-06 22:40:29 +01:00
details.hide();
2023-01-09 20:48:04 +01:00
expandLink.on('click', function () {
2023-01-06 22:40:29 +01:00
details.toggle();
2023-01-09 20:10:02 +01:00
expandLink.toggleClass('expanded');
2023-01-06 22:40:29 +01:00
});
});
});