This commit is contained in:
Ian Renton
2025-12-31 10:14:52 +00:00
parent 06d582ae2d
commit 3f117a47d6
12 changed files with 52 additions and 28 deletions

View File

@@ -224,6 +224,10 @@ div#map {
filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}
/* Make buttons overlaid on the map have a non-transparent fill so you can see the text better */
.btn-outline-primary {
--bs-btn-bg: var(--bs-body-bg) !important;
}
/* BANDS PANEL */

View File

@@ -1,3 +1,8 @@
//
// GEOGRAPHIC UTILITY FUNCTIONS
// Great Circle calculation, Maidenhead grid calcs, etc.
//
// Calculate great circle bearing between two lat/lon points.
function calcBearing(lat1, lon1, lat2, lon2) {
lat1 *= Math.PI / 180;

View File

@@ -1,3 +1,8 @@
//
// LOCAL STORAGE FUNCTIONS
// Generic functions for saving the state of HTML inputs to local storage, and restoring them
//
let useLocalStorage = true;
// Save settings to local storage. Suppressed if "use local storage" is false.

View File

@@ -1,3 +1,8 @@
//
// USER INTERFACE FUNCTIONS (AMATEUR RADIO)
// Functions providing colour schemes for ham radio bands, SIG icons etc.
//
const BAND_COLOR_SCHEMES = {
"PSK Reporter": {
"2200m": "#ff4500",

View File

@@ -1,3 +1,8 @@
//
// GENERAL UTILITY FUNCTIONS
// String manipulation etc.
//
// Utility function to escape HTML characters from a string.
function escapeHtml(str) {
if (typeof str !== 'string') {