mirror of
https://github.com/danog/sass-site.git
synced 2024-12-11 17:09:52 +01:00
22 lines
457 B
TypeScript
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');
|
|
});
|
|
});
|
|
});
|