1(function ($) { 2 Drupal.behaviors.riotSolrFacetGroupTooltip = { 3 attach: function(context, settings) { 4 const infoIcons = $('.amenity-info-icon', context); 5 6 if(infoIcons.length) { 7 infoIcons.each(function() { 8 const currentIcon = $(this); 9 const categoryId = currentIcon[0].id; 10 11 const popupElementId = 'amenity-detail-' + categoryId; 12 13 $(this).hover(function() { 14 $("div[id='" + popupElementId + "']", context).addClass('open'); 15 }, function() { 16 $("div[id='" + popupElementId + "']", context).removeClass('open'); 17 }); 18 }); 19 } 20 }, 21 }; 22})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.