1(function ($, Drupal, once) { 2 3 /** 4 * Toggle class indicating which facet item is active. 5 * @type {{attach: attach}} 6 */ 7 Drupal.behaviors.activeFacet = { 8 attach: function (context, settings) { 9 10 // Toggle active and inactive states depending on selected item. 11 $(once('activeFacet', '.facets-widget-links li')).click(function () { 12 $('.facets-widget-links li').not(this).removeClass('facet-item--is-active').addClass('facet-item--inactive'); 13 $(this).addClass('facet-item--is-active').removeClass('facet-item--inactive'); 14 }); 15 } 16 }; 17 18}(jQuery, Drupal, once));
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.