1(function () { 2 'use strict'; 3 document.addEventListener('DOMContentLoaded', function () { 4 document.querySelectorAll('.rbhow-page').forEach(function (root) { 5 var pills = root.querySelectorAll('.rbhow__pill'); 6 if (!pills.length) return; 7 pills.forEach(function (pill) { 8 pill.addEventListener('click', function () { 9 var cat = pill.getAttribute('data-cat'); 10 pills.forEach(function (p) { p.classList.remove('rbhow__pill--active'); }); 11 pill.classList.add('rbhow__pill--active'); 12 root.querySelectorAll('.rbhow-page__item').forEach(function (item) { 13 if (cat === '*' || item.classList.contains('rbhow-cat-' + cat)) { 14 item.removeAttribute('data-hidden'); item.style.display = ''; 15 } else { 16 item.setAttribute('data-hidden', ''); item.style.display = 'none'; 17 } 18 }); 19 }); 20 }); 21 }); 22 }); 23})();
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.