How shruti202x/creativesites works
CreativeSites is a small data-driven gallery for browsing creative websites and their preview images. On startup, its JavaScript fetches the site catalog, selects the first entry, and updates the page; users can navigate images, choose another site at random, and toggle site information using buttons, keyboard shortcuts, or swipes. The source excerpt shows the controller and its DOM interactions, but not the HTML, catalog contents, or styling, so those components and relationships are represented only where the available evidence supports them.
Main entry points: script.js Gallery controller · index.html Gallery page · db.json Site catalog
Components 4
Gallery
- Gallery controller
script.js - Gallery page
index.html
Gallery content
- Site catalog
db.json
Other components
- Visitor
Connections 3
- Visitor → Gallery page: uses controls
- Gallery controller → Site catalog: loads
script.js - Gallery controller → Gallery page: updates display
script.js