// Storage for the spot data that the server gives us. var spots = [] // List of people the user has worked. Each entry has the format callsign-band-mode. These can be added to the list by // ticking the checkbox on a row of the table, and cleared from the Display menu. Where a row would be added to the // table and the callsign-band-mode is in this list, it is shown struck through as already worked. This is persisted // to localStorage. let worked = [] // Dynamically add CSS code for the band toggle buttons to be in the appropriate colour. // Some band names contain decimal points which are not allowed in CSS classes, so we text-replace them to "p". function addBandToggleColourCSS(band_options) { var $style = $('