Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 89: | Line 89: | ||
filter: grayscale(1); | filter: grayscale(1); | ||
opacity: .25; | opacity: .25; | ||
} | |||
.sources-collapse { | |||
display: inline-block; | |||
opacity: .3; | |||
} | } | ||
#dct-tabulator .tabulator-row .tabulator-responsive-collapse { | #dct-tabulator .tabulator-row .tabulator-responsive-collapse { | ||
Line 388: | Line 392: | ||
let out = ''; | let out = ''; | ||
groupedSources.forEach((group, gIndex) => { | groupedSources.forEach((group, gIndex) => { | ||
if (gIndex === groupedSources.length - 1) { out += '<div class="sources-collapse">'} | if (gIndex === groupedSources.length - 1) { out += '<div class="sources-collapse">'; } | ||
out += group.sources.reduce((prev, curr) => { | out += group.sources.reduce((prev, curr) => { | ||
const idx = val.findIndex(src => src === curr.name); | const idx = val.findIndex(src => src === curr.name); | ||
Line 399: | Line 403: | ||
} | } | ||
}, ''); | }, ''); | ||
if (gIndex === groupedSources.length - 1) { out += '</div>'} | if (gIndex === groupedSources.length - 1) { | ||
out += '</div>'; | |||
} | |||
}); | }); | ||
return out; | return out; |
Revision as of 12:06, 12 July 2022
Development verstion of the DCT List.
Not ready for production!