Difference between revisions of "Widget:GuidelinesList"
From LINKS Community Center
Line 476: | Line 476: | ||
// groupedSources.push({ title: 'More platforms', sources: sourcesCopy }); | // groupedSources.push({ title: 'More platforms', sources: sourcesCopy }); | ||
− | let dataSourceFilterHtml = ''; | + | // let dataSourceFilterHtml = ''; |
− | groupedSources.forEach(group => { | + | // groupedSources.forEach(group => { |
− | + | // dataSourceFilterHtml += '<div class="filter-group-header">' + group.title + '</div>'; | |
− | + | // dataSourceFilterHtml += group.sources.reduce((acc, curr, idx) => { | |
− | + | // const identifier = escapeAttr(curr.name); | |
− | + | // return acc + | |
− | + | // '<div ' + (idx === 0 ? ' class="filter-group-start">' : '>') + | |
− | + | // '<input type="checkbox" id="filter-' + identifier + '" value="' + curr.name + '">' + | |
− | + | // '<label for="filter-' + identifier + '"><img src="' + curr.image + '"> ' + curr.name + '</label></div>' | |
− | + | // }, ''); | |
− | }); | + | // }); |
− | document.getElementById('data-source-filter').innerHTML = dataSourceFilterHtml; | + | // document.getElementById('data-source-filter').innerHTML = dataSourceFilterHtml; |
Revision as of 12:49, 18 July 2023
Current version of the List of Guidelines.
Currently in use – do not modify!