mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-04-30 02:35:57 +00:00
Radio blackout (R) scale
This commit is contained in:
@@ -53,8 +53,9 @@ function loadSolarConditions() {
|
||||
'geomag_storm_scale': 'sw-geomag-storm-scale',
|
||||
'geomag_storm_desc': 'sw-geomag-storm-desc',
|
||||
'geomag_noise': 'sw-geomag-noise',
|
||||
'x_ray': 'sw-x-ray',
|
||||
'blackout_desc': 'sw-xray-desc',
|
||||
'xray': 'sw-xray',
|
||||
'radio_blackout_scale': 'sw-radio-blackout-scale',
|
||||
'xray_desc': 'sw-xray-desc',
|
||||
'proton_flux': 'sw-proton-flux',
|
||||
'solar_storm_scale': 'sw-solar-storm-scale',
|
||||
'proton_flux_desc': 'sw-proton-desc',
|
||||
@@ -87,7 +88,7 @@ function loadSolarConditions() {
|
||||
kIndex < 5 ? 'bg-success-subtle' : kIndex < 6 ? 'bg-warning-subtle' : 'bg-danger-subtle');
|
||||
}
|
||||
|
||||
const xRay = jsonData.x_ray;
|
||||
const xRay = jsonData.xray;
|
||||
if (xRay) {
|
||||
const letter = xRay[0].toUpperCase();
|
||||
const xRayClass = (letter === 'X') ? 'bg-danger-subtle'
|
||||
@@ -190,7 +191,7 @@ function renderKIndexForecast(data) {
|
||||
return timeStr;
|
||||
},
|
||||
},
|
||||
grid: {color: gridColor},
|
||||
grid: {color: gridColor, offset: false},
|
||||
};
|
||||
|
||||
// Draw a "now" line at the current time position
|
||||
|
||||
Reference in New Issue
Block a user