$( document ).ready(function() {
let titles = {};
document.querySelectorAll('.col-xs-6').forEach(item => {
let title = item.querySelector('.sb_title').innerText;
if (titles[title]) {
titles[title].push(item);
} else {
titles[title] = [item];
}
});
for (let title in titles) {
if (titles[title].length > 1) {
titles[title].forEach((item, index) => {
if (index > 0) { // Skip the first occurrence
item.classList.add('dup');
}
});
}
}
});