Test of ability to use ChatGPT to code a IIIF Gallery

I did a little experiment with Chat GPT, asking it to write code for me to develop an IIIF-enabled image gallery.

Here’s as far as I got:

Link to page under development

The “generate searchable link” part does not work yet and just returns as many errors as there are manifest links.

Use the manifest links below to populate the gallery on the left. Click a thumbnail to open the image in the viewer pane on the right.

https://collections.leventhalmap.org/search/commonwealth:t722qd86g/manifest,
https://collections.leventhalmap.org/search/commonwealth:8623r0577/manifest,
https://collections.leventhalmap.org/search/commonwealth:d217xv241/manifest,
https://www.davidrumsey.com/luna/servlet/iiif/m/RUMSEY~8~1~368087~90135375/manifest,
https://www.davidrumsey.com/luna/servlet/iiif/m/RUMSEY~8~1~281766~90054435/manifest,
https://iiif.vam.ac.uk/collections/O70207/manifest.json,
https://www.loc.gov/item/2006629341/manifest.json,