suyuan/vendor/symfony/var-dumper/Resources/js/htmlDescriptor.js

11 lines
354 B
JavaScript
Raw Permalink Normal View History

2023-11-21 11:51:27 +08:00
document.addEventListener('DOMContentLoaded', function() {
let prev = null;
Array.from(document.getElementsByTagName('article')).reverse().forEach(function (article) {
const dedupId = article.dataset.dedupId;
if (dedupId === prev) {
article.getElementsByTagName('header')[0].classList.add('hidden');
}
prev = dedupId;
});
});