StocksNew/vendor/symfony/var-dumper/Resources/js/htmlDescriptor.js
Sampanna Rimal 53c0140f58 first commit
2024-08-27 17:48:06 +05:45

11 lines
354 B
JavaScript

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;
});
});