Widget: DCTList: Difference between revisions

From LINKS Community Center
Jump to: navigation, search
Eschmidt (talk | contribs)
No edit summary
Eschmidt (talk | contribs)
No edit summary
Line 100: Line 100:
             margin: 1.5em 0 1em 0;
             margin: 1.5em 0 1em 0;
         }
         }
        .filter-wrapper .filter-container { display: none; }
        .filter-wrapper.open .filter-container { display: block; }


         .filter-wrapper button {
         .filter-wrapper button {
Line 658: Line 661:
             document.querySelectorAll('.filter-wrapper .filter-toggle').forEach(el => {
             document.querySelectorAll('.filter-wrapper .filter-toggle').forEach(el => {
                 const wrapper = el.closest('.filter-wrapper');
                 const wrapper = el.closest('.filter-wrapper');
                 el.addEventListener('click', event => {
                 el.addEventListener('click', event => void wrapper.classList.toggle('open'));
                    wrapper.classList.toggle('open');
                });
             });
             });
         });
         });

Revision as of 15:12, 13 September 2022

Development verstion of the DCT List.
Not ready for production!