PageSourceSearch

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

js jhrl.com collected 2026-10-06 13:19:25 UTC 2,125 bytes, 37 lines download raw bytes

1riot.tag2('riot-solr-sorts', '<div if="{opts.exposed && opts.sort_param.length > 1}"> <select name="sorts" onchange="{sortItems}" class="rs-sorts"> <option each="{si, i in opts.sort_param}" __selected="{isSelected(btoa(JSON.stringify(si)), i)}" data-field="{si.field}" data-handler="{si.handler}" data-direction="{si.direction}" riot-value="{btoa(JSON.stringify(si))}"> Sort by: {si.label} </option> </select> </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-sorts,[data-is="riot-solr-sorts"]{ display: block; } riot-solr-sorts,[data-is="riot-solr-sorts"]{ margin-bottom: 10px; display: block; } @media only screen and (min-width: 31.3125em) and (max-width: 64em) { riot-solr-sorts,[data-is="riot-solr-sorts"]{ width: 150px; display: block; position: absolute; top: 10px; left: 15px; } }', '', function(opts) {
2    this.mixin('RiotSolrConnection');
3    this.mixin('RiotSolrItemsContainer');
4    (function(tag) {
5
6      tag.one('update', function() {
7        if(tag.opts.default) {
8          tag.active = tag.opts.default;
9        }
10      });
11
12      tag.isSelected = function(val, ind) {
13        if(!tag.active && ind === 0) {
14          return true;
15        }
16        else if(tag.active === val) {
17          return true;
18        }
19        return false;
20      };
21
22      tag.sortItems = function(e) {
23        var sortInfo = (tag.opts.exposed && opts.sort_param.length > 1) ? JSON.parse(atob(tag.sorts.value)) : opts.sort_param[0];
24        tag.active = tag.sorts.value;
25        tag.items = tag.getRiotSolrItems();
26        tag.items = RiotSolrItemSortHandlers[sortInfo.handler].callback(tag.items, sortInfo.field, sortInfo.direction);
27        tag.RiotSolrManager.observable.trigger('RiotSolrItemsSorted', {
28          'items' : tag.items,
29          'sort' : sortInfo
30        });
31      }
32
33      tag.on('RiotSolrItemsUpdated', function () {
34        tag.sortItems();
35      });
36    })(this);
37});

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.