How kurtpantaleon/bp-website works
This is a static NBA merchandise storefront, with team pages and image assets for jerseys and basketball shoes. The clearest implemented flow is product data rendered into catalog sections, add-to-cart actions updating a cart display, and a separate product-detail script that stores selected items in browser local storage. The excerpts show only part of the site, so links from the HTML pages to these scripts are unverified; the checkout function in the cart script is a placeholder.
Main entry points: fuunc.js Catalog cart · function.js Detail controls · 1-dallas.html Team pages · 2-warriors.html Product detail pages
Components 10
Product browsing
- Team pages
1-dallas.html - Catalog rendering
fuunc.js - Product images
Images - Dropdown navigation
checkoutPage.js
Cart and checkout
- Catalog cart
fuunc.js - Checkout placeholder
fuunc.js
Product details
- Product detail pages
2-warriors.html - Detail controls
function.js - Browser local storage
Other components
- Shopper
Connections 11
- Shopper → Team pages: browses
- Team pages → Catalog rendering: loads
- Catalog rendering → Product images: references
- Shopper → Catalog cart: adds products
fuunc.js - Catalog cart → Catalog cart: updates display
fuunc.js - Catalog cart → Checkout placeholder: invokes
fuunc.js - Shopper → Product detail pages: views products
- Product detail pages → Detail controls: loads
- Detail controls → Browser local storage: reads and writes
function.js - Detail controls → Detail controls: updates count
function.js - Shopper → Dropdown navigation: hovers links
checkoutPage.js