Load GSAP and CustomEase first
The script reads window.gsap and window.CustomEase. Load both before code.js.
One button per location
Each <button data-rgl-site data-lat data-lon> is a location: its text is the name, data-lat / data-lon are decimal degrees (south and west negative). The first one starts in focus. You need at least two.
Spread them out
Lines only draw between locations at least 25° apart, and labels on the same side of the globe push each other aside. Ten to fifteen locations across several continents look best; a cluster in one city reads as one blob.
Retheme with variables
--rgl-land colours the land dots and the line fired when you switch, --rgl-ink the markers, routes, grid and leaders. The script re-reads both when data-theme or the class on <html> changes. --rgl-chip is the glass behind labels and the pill.
Tune the globe
data-au-drift sets the idle spin, data-au-routes how many lines draw at once, data-au-density how many points are sampled (more = finer coastlines, more drawing), and data-au-dot the size of each land dot.