Skip to content
jQuery(function($) {
$('body').on('asp_results_show', function(e, data) {
if (!data || !data.results) return;
const keywords = data.results.map(r => r.title.toLowerCase());
$('.imp-tooltip-content').css({
'outline': '',
'transform': '',
'transition': 'all 0.3s ease'
});
$('.imp-object').each(function () {
const tooltip = $(this).attr('data-tooltip-content') || '';
const lowerTooltip = tooltip.toLowerCase();
if (keywords.some(k => lowerTooltip.includes(k))) {
$(this).css({
'outline': '3px solid red',
'transform': 'scale(1.2)'
});
}
});
});
});