Widget: DCTList: Difference between revisions
From LINKS Community Center
Cschwentker (talk | contribs) No edit summary |
Eschmidt (talk | contribs) No edit summary |
||
Line 535: | Line 535: | ||
// TODO: Fetch from server? | // TODO: Fetch from server? | ||
const FREE_KEY = 'Free', FREE_PLAN_KEY = 'Free & Paid'; | const FREE_KEY = 'Free', FREE_PLAN_KEY = 'Free & Paid'; | ||
const | const pricing = [FREE_KEY, FREE_PLAN_KEY, 'Paid']; | ||
let | let pricingFilterHtml = pricing.reduce((acc, curr) => { | ||
const identifier = escapeAttr(curr); | const identifier = escapeAttr(curr); | ||
return acc | return acc | ||
Line 544: | Line 544: | ||
+ '</label></div>' | + '</label></div>' | ||
}, ''); | }, ''); | ||
document.getElementById('business-model-filter').innerHTML = | document.getElementById('business-model-filter').innerHTML = pricingFilterHtml; | ||
const dmUse = ['Yes', 'Yes with Use Case', 'Unknown']; | const dmUse = ['Yes', 'Yes with Use Case', 'Unknown']; | ||
Line 924: | Line 924: | ||
</div> | </div> | ||
<div class="filter-wrapper"> | <div class="filter-wrapper"> | ||
<h4 class="filter-toggle">Pricing | <h4 class="filter-toggle">Pricing <div class="plus icon"></div></h4> | ||
<div class="filter-container"> | <div class="filter-container"> | ||
<div class="filter-button-wrapper"> | <div class="filter-button-wrapper"> |
Revision as of 11:00, 5 December 2022
Development verstion of the DCT List.
Not ready for production!