Difference between revisions of "Widget:DCTList"

From LINKS Community Center
Jump to: navigation, search
Line 500: Line 500:
  
 
                 // Construct filter summary
 
                 // Construct filter summary
                 let summaryHtml = '';
+
                 let summaryHtml = '<table>';
 
                 if (filter.type.functions) {
 
                 if (filter.type.functions) {
                     summaryHtml += '<div><b>Only with these functions:</b> '
+
                     summaryHtml += '<tr><td><strong>Functions</strong></td><td>'
 
                         + (filter.type.functions.length > 0 ? filter.type.functions.join(', ') : 'none')
 
                         + (filter.type.functions.length > 0 ? filter.type.functions.join(', ') : 'none')
                         + '</div>';
+
                         + '</td></tr>';
 
                 }
 
                 }
 
                 if (filter.type.dataSources) {
 
                 if (filter.type.dataSources) {
                     summaryHtml += '<div><b>Only supporting these platforms:</b> '
+
                     summaryHtml += '<tr><td><strong>Platforms</strong></td><td>'
 
                         + (filter.type.dataSources.length > 0 ? filter.type.dataSources.join(', ') : 'none')
 
                         + (filter.type.dataSources.length > 0 ? filter.type.dataSources.join(', ') : 'none')
                         + '</div>';
+
                         + '</td></tr>';
 
                 }
 
                 }
 +
                summaryHtml += '</table>';
 
                 summary.innerHTML = summaryHtml;
 
                 summary.innerHTML = summaryHtml;
  

Revision as of 13:08, 7 September 2022

Development verstion of the DCT List.
Not ready for production!