Widget: Homepage: Difference between revisions

From LINKS Community Center
Jump to: navigation, search
Eschmidt (talk | contribs)
No edit summary
Eschmidt (talk | contribs)
No edit summary
Line 121: Line 121:
                 encodeURIComponent(platformData.map(platform => platform.image).join('|'));
                 encodeURIComponent(platformData.map(platform => platform.image).join('|'));
             var res = await fetch(imageUrlQuery).then(response => response.json());
             var res = await fetch(imageUrlQuery).then(response => response.json());
             console.log(res.query.pages)
 
             Object.getOwnPropertyNames(res.query.pages).forEach(pageId => {
                var filename = res.query.pages[pageId].title;
                platformData[platformData.findIndex(platform => platform.image === filename)].image = filename;
            });
 
            console.log(platformData)
 
 
         }
         }



Revision as of 13:07, 2 June 2022

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