Widget: DCTList: Difference between revisions
From LINKS Community Center
Eschmidt (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 488: | Line 488: | ||
+ '" value="' + curr + '">' | + '" value="' + curr + '">' | ||
+ '<label for="bm-filter-' + identifier + '">' + curr | + '<label for="bm-filter-' + identifier + '">' + curr | ||
+ '</label></div>' | + '</label></div>' | ||
}, ''); | }, ''); | ||
Line 516: | Line 514: | ||
/** @type {DCT} */ | /** @type {DCT} */ | ||
const dct = cell.getData(); | const dct = cell.getData(); | ||
let out = '<a href="' + dct.url + '">' + dct.name + '</a>'; | let out = '<a href="' + dct.url + '">' + dct.name + '</a><br>'; | ||
if (dct.businessModel.includes('Freeware')) { | if (dct.businessModel.includes('Freeware')) { | ||
out += '< | out += '<small><span class="badge badge-success">Freeware</span></small>'; | ||
} | } | ||
if (dct.businessModel.includes('Free plan available')) { | if (dct.businessModel.includes('Free plan available')) { | ||
out += '< | out += '<small><span class="badge badge-success">Free plan</span></small>'; | ||
} | } | ||
if (dct.usedByDmo.toLowerCase() === 'yes') { | if (dct.usedByDmo.toLowerCase() === 'yes') { | ||
out += ' | out += '<small><span class="badge badge-danger">Used by practitioners</span></small>'; | ||
} | } | ||
if (dct.usedByDmo.toLowerCase() === 'yes with use case') { | if (dct.usedByDmo.toLowerCase() === 'yes with use case') { | ||
out += ' | out += '<small><span class="badge badge-danger">Used by practitioners</span></small>'; | ||
out += ' <small><span class="badge badge- | out += ' <small><span class="badge badge-warning">Use case</span></small>' | ||
} | } | ||
return out; | return out; | ||
Line 707: | Line 705: | ||
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" overflow="hidden" style="display:none;"> | <svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" overflow="hidden" style="display:none;"> | ||
<defs> | <defs> | ||
<symbol id="chevron-down" viewBox="0 0 96 96"> | <symbol id="chevron-down" viewBox="0 0 96 96"> | ||
<clipPath id="chev"> | <clipPath id="chev"> |
Revision as of 10:55, 21 September 2022
Development verstion of the DCT List.
Not ready for production!