mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-02-04 01:04:33 +00:00
JS faff #88
This commit is contained in:
@@ -63,10 +63,10 @@
|
||||
<p>This software is dedicated to the memory of Tom G1PJB, SK, a friend and colleague who sadly passed away around the time I started writing it in Autumn 2025. I was looking forward to showing it to you when it was done.</p>
|
||||
</div>
|
||||
|
||||
<script src="/js/ham-utils/utils.js?v=5"></script>
|
||||
<script src="/js/ham-utils/storage.js?v=5"></script>
|
||||
<script src="/js/ham-utils/ui.js?v=5"></script>
|
||||
<script src="/js/ham-utils/geo.js?v=5"></script>
|
||||
<script src="/js/tools/utils.js?v=5"></script>
|
||||
<script src="/js/tools/storage.js?v=5"></script>
|
||||
<script src="/js/tools/ui-ham.js?v=5"></script>
|
||||
<script src="/js/tools/geo.js?v=5"></script>
|
||||
<script src="/js/common.js?v=5"></script>
|
||||
<script>$(document).ready(function() { $("#nav-link-about").addClass("active"); }); <!-- highlight active page in nav --></script>
|
||||
|
||||
|
||||
@@ -69,10 +69,10 @@
|
||||
|
||||
</div>
|
||||
|
||||
<script src="/js/ham-utils/utils.js?v=5"></script>
|
||||
<script src="/js/ham-utils/storage.js?v=5"></script>
|
||||
<script src="/js/ham-utils/ui.js?v=5"></script>
|
||||
<script src="/js/ham-utils/geo.js?v=5"></script>
|
||||
<script src="/js/tools/utils.js?v=5"></script>
|
||||
<script src="/js/tools/storage.js?v=5"></script>
|
||||
<script src="/js/tools/ui-ham.js?v=5"></script>
|
||||
<script src="/js/tools/geo.js?v=5"></script>
|
||||
<script src="/js/common.js?v=5"></script>
|
||||
<script src="/js/add-spot.js?v=5"></script>
|
||||
<script>$(document).ready(function() { $("#nav-link-add-spot").addClass("active"); }); <!-- highlight active page in nav --></script>
|
||||
|
||||
@@ -168,10 +168,10 @@
|
||||
|
||||
</div>
|
||||
|
||||
<script src="/js/ham-utils/utils.js?v=5"></script>
|
||||
<script src="/js/ham-utils/storage.js?v=5"></script>
|
||||
<script src="/js/ham-utils/ui.js?v=5"></script>
|
||||
<script src="/js/ham-utils/geo.js?v=5"></script>
|
||||
<script src="/js/tools/utils.js?v=5"></script>
|
||||
<script src="/js/tools/storage.js?v=5"></script>
|
||||
<script src="/js/tools/ui-ham.js?v=5"></script>
|
||||
<script src="/js/tools/geo.js?v=5"></script>
|
||||
<script src="/js/common.js?v=5"></script>
|
||||
<script src="/js/alerts.js?v=5"></script>
|
||||
<script>$(document).ready(function() { $("#nav-link-alerts").addClass("active"); }); <!-- highlight active page in nav --></script>
|
||||
|
||||
@@ -134,10 +134,10 @@
|
||||
|
||||
</div>
|
||||
|
||||
<script src="/js/ham-utils/utils.js?v=5"></script>
|
||||
<script src="/js/ham-utils/storage.js?v=5"></script>
|
||||
<script src="/js/ham-utils/ui.js?v=5"></script>
|
||||
<script src="/js/ham-utils/geo.js?v=5"></script>
|
||||
<script src="/js/tools/utils.js?v=5"></script>
|
||||
<script src="/js/tools/storage.js?v=5"></script>
|
||||
<script src="/js/tools/ui-ham.js?v=5"></script>
|
||||
<script src="/js/tools/geo.js?v=5"></script>
|
||||
<script src="/js/common.js?v=5"></script>
|
||||
<script src="/js/spotsbandsandmap.js?v=5"></script>
|
||||
<script src="/js/bands.js?v=5"></script>
|
||||
|
||||
@@ -152,10 +152,10 @@
|
||||
<script src="https://cdn.jsdelivr.net/npm/leaflet.geodesic"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/@joergdietrich/leaflet.terminator@1.1.0/L.Terminator.min.js"></script>
|
||||
|
||||
<script src="/js/ham-utils/utils.js?v=5"></script>
|
||||
<script src="/js/ham-utils/storage.js?v=5"></script>
|
||||
<script src="/js/ham-utils/ui.js?v=5"></script>
|
||||
<script src="/js/ham-utils/geo.js?v=5"></script>
|
||||
<script src="/js/tools/utils.js?v=5"></script>
|
||||
<script src="/js/tools/storage.js?v=5"></script>
|
||||
<script src="/js/tools/ui-ham.js?v=5"></script>
|
||||
<script src="/js/tools/geo.js?v=5"></script>
|
||||
<script src="/js/common.js?v=5"></script>
|
||||
<script src="/js/spotsbandsandmap.js?v=5"></script>
|
||||
<script src="/js/map.js?v=5"></script>
|
||||
|
||||
@@ -223,10 +223,10 @@
|
||||
|
||||
</div>
|
||||
|
||||
<script src="/js/ham-utils/utils.js?v=5"></script>
|
||||
<script src="/js/ham-utils/storage.js?v=5"></script>
|
||||
<script src="/js/ham-utils/ui.js?v=5"></script>
|
||||
<script src="/js/ham-utils/geo.js?v=5"></script>
|
||||
<script src="/js/tools/utils.js?v=5"></script>
|
||||
<script src="/js/tools/storage.js?v=5"></script>
|
||||
<script src="/js/tools/ui-ham.js?v=5"></script>
|
||||
<script src="/js/tools/geo.js?v=5"></script>
|
||||
<script src="/js/common.js?v=5"></script>
|
||||
<script src="/js/spotsbandsandmap.js?v=5"></script>
|
||||
<script src="/js/spots.js?v=5"></script>
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
|
||||
<div id="status-container" class="row row-cols-1 row-cols-md-4 g-4 mt-4"></div>
|
||||
|
||||
<script src="/js/ham-utils/utils.js?v=5"></script>
|
||||
<script src="/js/ham-utils/storage.js?v=5"></script>
|
||||
<script src="/js/ham-utils/ui.js?v=5"></script>
|
||||
<script src="/js/ham-utils/geo.js?v=5"></script>
|
||||
<script src="/js/tools/utils.js?v=5"></script>
|
||||
<script src="/js/tools/storage.js?v=5"></script>
|
||||
<script src="/js/tools/ui-ham.js?v=5"></script>
|
||||
<script src="/js/tools/geo.js?v=5"></script>
|
||||
<script src="/js/common.js?v=5"></script>
|
||||
<script src="/js/status.js?v=5"></script>
|
||||
<script>$(document).ready(function() { $("#nav-link-status").addClass("active"); }); <!-- highlight active page in nav --></script>
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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;
|
||||
@@ -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.
|
||||
@@ -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",
|
||||
@@ -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') {
|
||||
Reference in New Issue
Block a user