Web development · The DOM and events
Sold-out items and open menu tabs each have a look of their own: the look lives in CSS, and the script only flips a class.