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 109: Line 109:
             var platformResponse = await fetch(platformQuery).then(response => response.json());
             var platformResponse = await fetch(platformQuery).then(response => response.json());
             console.log(platformResponse)
             console.log(platformResponse)
             // var platformData = Object.getOwnPropertyNames(platformResponse.results).map(name => {
             var platformData = Object.getOwnPropertyNames(platformResponse.query.results).map(name => {
            //    return { name: name, image: platformResponse.results[name].printouts.IMAGE[0].fulltext }
                return { name: name, image: platformResponse.query.results[name].printouts.IMAGE[0].fulltext }
             // });
             });
             // console.log(platformData);
             console.log(platformData);
         }
         }



Revision as of 12:18, 2 June 2022

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