1(function ($, Drupal, once) { 2 Drupal.behaviors.reset = { 3 attach: function (context, settings) { 4 var facetsWidgets = document.querySelectorAll('.js-facets-widget.item-list__checkbox'); 5 if (facetsWidgets.length > 0) { 6 facetsWidgets.forEach(function(widget) { 7 var collapse = widget.closest('.accordion-collapse'); 8 var checkboxChecked = widget.querySelectorAll('input:checked').length > 0; 9 if (checkboxChecked) { 10 collapse.classList.add('show'); 11 } else { 12 collapse.classList.remove('show'); 13 } 14 }); 15 } 16 17 } 18 19 }; 20 Drupal.behaviors.agendaDays = { 21 attach: function (context) { 22 once('agenda-days', '[data-agenda-action]', context).forEach(function (button) { 23 button.addEventListener('click', function () { 24 var expand = button.dataset.agendaAction === 'expand'; 25 var wrapper = button.closest('.agenda__content') || document; 26 wrapper.querySelectorAll('.agenda-day__body').forEach(function (body) { 27 bootstrap.Collapse.getOrCreateInstance(body, { toggle: false })[expand ? 'show' : 'hide'](); 28 }); 29 }); 30 }); 31 } 32 }; 33} 34)(jQuery, Drupal, once); 35
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.