Widget: DCTList: Difference between revisions

From LINKS Community Center
Jump to: navigation, search
Eschmidt (talk | contribs)
No edit summary
Eschmidt (talk | contribs)
No edit summary
Line 3: Line 3:
     <link href="https://unpkg.com/tabulator-tables@5.2.7/dist/css/tabulator.min.css" rel="stylesheet">
     <link href="https://unpkg.com/tabulator-tables@5.2.7/dist/css/tabulator.min.css" rel="stylesheet">
     <script type="text/javascript" src="https://unpkg.com/tabulator-tables@5.2.7/dist/js/tabulator.min.js"></script>
     <script type="text/javascript" src="https://unpkg.com/tabulator-tables@5.2.7/dist/js/tabulator.min.js"></script>
     <script>
     <script>
         // Returns a mapping from ['File:Img1.png', 'File:Img2.png'] to [{ title: 'File:Img1.png', url: 'http...'}, { title: 'File...', url: 'http...'}]
         // Returns a mapping from ['File:Img1.png', 'File:Img2.png'] to [{ title: 'File:Img1.png', url: 'http...'}, { title: 'File...', url: 'http...'}]
Line 27: Line 28:
             imageData.forEach(img => sources[sources.findIndex(source => source.image === img.title)].image = img.url);
             imageData.forEach(img => sources[sources.findIndex(source => source.image === img.title)].image = img.url);


             // console.log('Sources:', sources);
             console.log('Sources:', sources);
             return sources;
             return sources;
         }
         }

Revision as of 11:48, 7 June 2022

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