PageSourceSearch

https://www.jhrl.com/sites/all/modules/bluetent/riot_solr/tags/rio…/build/riot_solr_facet_checkbox.js?tlse4v

js jhrl.com collected 2026-10-06 13:19:24 UTC 7,367 bytes, 69 lines download raw bytes

1riot.tag2('riot-solr-facet-checkbox', '<div data-facetid="{instance.id}"> <div class="label-container"> <h5 if="{!dropdown.enabled && opts.label}">{opts.label}</h5> <i if="{opts.flag_options.info_box.show_info_box && opts.flag_options.info_box.info_box_text}" id="{instance.id}" class="amenity-info-icon"></i> <div if="{opts.flag_options.info_box.show_info_box && opts.flag_options.info_box.info_box_text}" id="amenity-detail-{instance.id}" class="amenity-detail-popup"> <p> {opts.flag_options.info_box.info_box_text} </p> </div> </div> <div class="facet-dropdown-label" if="{dropdown.enabled}"> <span>{opts.label}</span><span if="{dropdown.show_selections}">{\': \' + selectionLabel}</span> </div> <ul> <li each="{items}" class="{\'active\': active}"> <input __checked="{active}" id="RiotSolrFacetCheckbox-{facet}" type="checkbox" data-facetvalue="{facet}" value="{facet}" onchange="{FacetClickHandler}"> <label for="RiotSolrFacetCheckbox-{facet}">{facet} <span class="facet-count">({count})</span></label> </li> </ul> </div>', '@-webkit-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @-moz-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @-o-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } riot-solr-facet-checkbox,[riot-tag="riot-solr-facet-checkbox"],[data-is="riot-solr-facet-checkbox"]{ display: block; } riot-solr-facet-checkbox.has-info-box > div,[riot-tag="riot-solr-facet-checkbox"].has-info-box > div,[data-is="riot-solr-facet-checkbox"].has-info-box > div{ position: relative; } riot-solr-facet-checkbox.has-info-box > div h5,[riot-tag="riot-solr-facet-checkbox"].has-info-box > div h5,[data-is="riot-solr-facet-checkbox"].has-info-box > div h5{ float: left; } riot-solr-facet-checkbox.has-info-box > div ul,[riot-tag="riot-solr-facet-checkbox"].has-info-box > div ul,[data-is="riot-solr-facet-checkbox"].has-info-box > div ul{ clear: left; } riot-solr-facet-checkbox.has-info-box .amenity-detail-popup,[riot-tag="riot-solr-facet-checkbox"].has-info-box .amenity-detail-popup,[data-is="riot-solr-facet-checkbox"].has-info-box .amenity-detail-popup{ visibility: hidden; opacity: 0; position: absolute; top: 35px; max-width: "only screen and (min-width:30.0625em)"; left: 0; z-index: 999; font-size: 14px; font-weight: bold; min-width: none; max-height: none; width: 100%; height: auto; background: white; color: black; padding: 0.5em 1em; box-shadow: 1px 1px 1px 1px #afafaf; border: 3px solid rgba(17, 17, 17, 0.15); transition: visibility 0s, opacity 0.5s ease-in-out; } @media only screen and (min-width: 48em) { riot-solr-facet-checkbox.has-info-box .amenity-detail-popup,[riot-tag="riot-solr-facet-checkbox"].has-info-box .amenity-detail-popup,[data-is="riot-solr-facet-checkbox"].has-info-box .amenity-detail-popup{ max-width: "only screen and (min-width:48em)"; } } riot-solr-facet-checkbox.has-info-box .amenity-detail-popup.open,[riot-tag="riot-solr-facet-checkbox"].has-info-box .amenity-detail-popup.open,[data-is="riot-solr-facet-checkbox"].has-info-box .amenity-detail-popup.open,riot-solr-facet-checkbox.has-info-box .amenity-detail-popup:hover,[riot-tag="riot-solr-facet-checkbox"].has-info-box .amenity-detail-popup:hover,[data-is="riot-solr-facet-checkbox"].has-info-box .amenity-detail-popup:hover{ visibility: visible; opacity: 1; } riot-solr-facet-checkbox.has-info-box .amenity-detail-popup.searchable-category,[riot-tag="riot-solr-facet-checkbox"].has-info-box .amenity-detail-popup.searchable-category,[data-is="riot-solr-facet-checkbox"].has-info-box .amenity-detail-popup.searchable-category{ top: 25px; } @media only screen and (min-width: 64.0625em) { riot-solr-facet-checkbox.has-info-box .amenity-detail-popup.searchable-category,[riot-tag="riot-solr-facet-checkbox"].has-info-box .amenity-detail-popup.searchable-category,[data-is="riot-solr-facet-checkbox"].has-info-box .amenity-detail-popup.searchable-category{ left: 15px; } } riot-solr-facet-checkbox.has-info-box .label-container,[riot-tag="riot-solr-facet-checkbox"].has-info-box .label-container,[data-is="riot-solr-facet-checkbox"].has-info-box .label-container{ position: relative; width: 85%; padding-right: 15px; left: 0; display: flex; justify-content: flex-start; align-items: center; } riot-solr-facet-checkbox.has-info-box .label-container h5,[riot-tag="riot-solr-facet-checkbox"].has-info-box .label-container h5,[data-is="riot-solr-facet-checkbox"].has-info-box .label-container h5{ min-width: fit-content; }
1 riot-solr-facet-checkbox.has-info-box .label-container .amenity-info-icon,[riot-tag="riot-solr-facet-checkbox"].has-info-box .label-container .amenity-info-icon,[data-is="riot-solr-facet-checkbox"].has-info-box .label-container .amenity-info-icon{ float: left; margin-right: 20px; } riot-solr-facet-checkbox.has-info-box .label-container .amenity-info-icon:before,[riot-tag="riot-solr-facet-checkbox"].has-info-box .label-container .amenity-info-icon:before,[data-is="riot-solr-facet-checkbox"].has-info-box .label-container .amenity-info-icon:before{ content: ""; height: 18px; width: 25px; display: inline-block; position: relative; right: -6px; top: 2px; background: url("sites/all/modules/bluetent/riot_solr/images/tool-tip.svg") no-repeat scroll left center; background-size: 17px; } riot-solr-facet-checkbox .hidden,[riot-tag="riot-solr-facet-checkbox"] .hidden,[data-is="riot-solr-facet-checkbox"] .hidden{ display: none; }', 'class="{(opts.flag_options.info_box.show_info_box && opts.flag_options.info_box.info_box_text) ? \'has-info-box\' : \'\'}" data-facetid="{instance.id}"', function(opts) {
2    (function (tag, $) {
3      tag.mixin('RiotSolrFacetProvider');
4
5      tag.dropdown = {
6        enabled: false,
7        show_selections: false
8      };
9
10      function attachDropdownListeners() {
11
12        $('ul', tag.root).addClass('hidden');
13
14        $(tag.root).once().click(function (e) {
15          if ($.contains($('ul', tag.root)[0], e.target)) {
16            return;
17          }
18          $('ul', tag.root).toggleClass('hidden');
19        });
20
21        $(document).click(function (e) {
22          if ($.contains(tag.root, e.target)) {
23            return;
24          }
25          $('ul', tag.root).addClass('hidden');
26        });
27      }
28
29      function attachLabelListeners() {
30        tag.selectionLabel = '';
31        tag.on('RiotSolrFacetListUpdate', function (e) {
32          var activeItems = tag.items.filter(function (item) {
33            return item.active;
34          });
35
36          switch (activeItems.length) {
37            case 0:
38              tag.update({ selectionLabel: 'All' });
39              break;
40            case 1:
41              tag.update({ selectionLabel: activeItems[0].facet });
42              break;
43            default:
44              tag.update({ selectionLabel: activeItems.length + ' selected' });
45              break;
46          }
47        });
48      }
49
50      tag.on('mount', function () {
51        if (!tag.opts.flag_options) {
52          return;
53        }
54
55        if (!tag.opts.flag_options.dropdown) {
56          return;
57        }
58
59        tag.update({ dropdown: tag.opts.flag_options.dropdown });
60
61        if (tag.dropdown.enabled) {
62          attachDropdownListeners();
63          if (tag.dropdown.show_selections) {
64            attachLabelListeners();
65          }
66        }
67      });
68    }(this, jQuery));
69});

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.