mirror of
https://github.com/danog/sass-site.git
synced 2024-12-15 10:57:24 +01:00
17 lines
402 B
TypeScript
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');
|
|
});
|
|
});
|
|
});
|