Put a gallery of items on a webpage.
Make a list of items
Make a list of images of minerals:
Deploy the items as a web gallery
Deploy the mineral images as a web gallery. Click the link in the CloudObject output to visit the gallery:
- Gallery contents do not have to be images. You can make galleries of anything, including graphics, 3D graphics, text and formulas.
To add hyperlinks to the images, the code that makes the list of images must be recast from MineralData, with a list argument to MineralData applied to each element of the list individually. These two expressions produce the same result, but the second can be modified to add hyperlinks:
Now you can use Hyperlink to link each image to the corresponding Wikipedia page. Click an image to go the page:
Deploy the hyperlinked images as a web gallery. Click an image in the gallery to go to the mineral’s Wikipedia page:
In addition to hyperlinks, add tooltips that show the name of the mineral. Hover over a mineral in the web gallery to see its name: