Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 21: | Line 21: | ||
font-size: 1.2em; | font-size: 1.2em; | ||
margin-bottom: 4em; | margin-bottom: 4em; | ||
display: grid; | display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax(14em, 1fr)); | grid-template-columns: repeat(auto-fit, minmax(14em, 1fr)); | ||
Line 96: | Line 94: | ||
const dcts = data[1]; | const dcts = data[1]; | ||
const filterHtml = dataSources.reduce((prev, curr) => { | |||
return prev + '<div><input type="checkbox" id="filter-' + curr.name + '" value="' + curr.name + '" checked >' + | |||
'<label for="filter-' + curr.name + '"><img src="' + curr.image + '"> ' + curr.name + '</label></div>' | |||
}, ''); | |||
document.getElementById('data-source-filter').innerHTML = filterHtml; | |||
} | |||
document.getElementById('data-source- | |||
console.log(data) | |||
const table = new Tabulator("#dct-tabulator", { | const table = new Tabulator("#dct-tabulator", { | ||
Line 143: | Line 136: | ||
<h1>Social Media and Crowdsourcing Technologies</h1> | <h1>Social Media and Crowdsourcing Technologies</h1> | ||
<h2>Filters</h2> | <h2>Filters</h2> | ||
<div id="data-source-filter"> | <div id="data-source-filter"></div> | ||
<div id="dct-tabulator"></div> | <div id="dct-tabulator"></div> | ||
</div> | </div> | ||
</includeonly> | </includeonly> |
Revision as of 17:41, 7 June 2022
Development verstion of the DCT List.
Not ready for production!