mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-02-06 07:24:19 +01:00
7 lines
257 B
JavaScript
7 lines
257 B
JavaScript
|
|
function FrequencyDisplay(element) {
|
||
|
|
this.element = $(element);
|
||
|
|
}
|
||
|
|
|
||
|
|
FrequencyDisplay.prototype.setFrequency = function(freq) {
|
||
|
|
this.element.html((freq / 1e6).toLocaleString(undefined, {maximumFractionDigits: 4, minimumFractionDigits: 3}) + " MHz");
|
||
|
|
}
|