kopia lustrzana https://github.com/miguelvaca/vk3cpu
Added band wavelength to tooltip. Also changed 5.0 to 5.3 MHz
rodzic
f640778118
commit
5b7902a5be
10
magloop.html
10
magloop.html
|
@ -196,7 +196,7 @@
|
|||
|
||||
function updateFrequencies() {
|
||||
const hamFrequencies = [
|
||||
0.1365, 0.475, 1.8, 3.5, 5.0, 7.0, 10.1, 14.0, 18.068, 21.0, 24.89, 28.0, 29.7, 35.0, 40.0, 45.0, 50.0, 52.0, 54.0
|
||||
0.1365, 0.475, 1.8, 3.5, 5.3, 7.0, 10.1, 14.0, 18.068, 21.0, 24.89, 28.0, 29.7, 35.0, 40.0, 45.0, 50.0, 52.0, 54.0
|
||||
];
|
||||
|
||||
frequencies = [];
|
||||
|
@ -1677,8 +1677,12 @@
|
|||
position: 'nearest',
|
||||
callbacks: {
|
||||
title: function(tooltipItem, data) {
|
||||
var label = '' + tooltipItem[0].xLabel.toFixed(3).toString();
|
||||
label += ' MHz ';
|
||||
var lut = {0.1365:'2200', 0.475:'600', 1.8:'160', 3.5:'80', 5.3:'60', 7.0:'40', 10.1:'30', 14.0:'20', 18.068:'18', 21.0:'15', 24.89:'12', 28.0:'10', 29.7:'10', 35.0:'', 40.0:'', 45.0:'', 50.0:'6', 52.0:'6', 54.0:'6'};
|
||||
var label = '' + tooltipItem[0].xLabel.toPrecision(3).toString() + ' MHz';
|
||||
if(lut[tooltipItem[0].xLabel]) {
|
||||
label += ' (';
|
||||
label += lut[tooltipItem[0].xLabel] + ' m)';
|
||||
}
|
||||
return label;
|
||||
},
|
||||
label: function(tooltipItem, data) {
|
||||
|
|
Ładowanie…
Reference in New Issue