set prefixes using CSS
This commit is contained in:
parent
23bf1df72a
commit
6e416d0839
@ -990,6 +990,18 @@ img.openwebrx-mirror-img
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.openwebrx-ysf-mode:not(:empty):before {
|
||||||
|
content: "Mode: ";
|
||||||
|
}
|
||||||
|
|
||||||
|
.openwebrx-ysf-up:not(:empty):before {
|
||||||
|
content: "Up: ";
|
||||||
|
}
|
||||||
|
|
||||||
|
.openwebrx-ysf-down:not(:empty):before {
|
||||||
|
content: "Down: ";
|
||||||
|
}
|
||||||
|
|
||||||
.openwebrx-maps-pin {
|
.openwebrx-maps-pin {
|
||||||
background-image: url("../gfx/google_maps_pin.svg");
|
background-image: url("../gfx/google_maps_pin.svg");
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
@ -143,11 +143,7 @@ YsfMetaPanel.prototype.clear = function() {
|
|||||||
YsfMetaPanel.prototype.setMode = function(mode) {
|
YsfMetaPanel.prototype.setMode = function(mode) {
|
||||||
if (this.mode === mode) return;
|
if (this.mode === mode) return;
|
||||||
this.mode = mode;
|
this.mode = mode;
|
||||||
var text = '';
|
this.el.find('.openwebrx-ysf-mode').text(mode || '');
|
||||||
if (mode && mode != '') {
|
|
||||||
text = 'Mode: ' + mode;
|
|
||||||
}
|
|
||||||
this.el.find('.openwebrx-ysf-mode').text(text);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
YsfMetaPanel.prototype.setSource = function(source) {
|
YsfMetaPanel.prototype.setSource = function(source) {
|
||||||
@ -170,21 +166,13 @@ YsfMetaPanel.prototype.setLocation = function(lat, lon, callsign) {
|
|||||||
YsfMetaPanel.prototype.setUp = function(up) {
|
YsfMetaPanel.prototype.setUp = function(up) {
|
||||||
if (this.up === up) return;
|
if (this.up === up) return;
|
||||||
this.up = up;
|
this.up = up;
|
||||||
var text = '';
|
this.el.find('.openwebrx-ysf-up').text(up || '');
|
||||||
if (up && up != '') {
|
|
||||||
text = 'Up: ' + up;
|
|
||||||
}
|
|
||||||
this.el.find('.openwebrx-ysf-up').text(text);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
YsfMetaPanel.prototype.setDown = function(down) {
|
YsfMetaPanel.prototype.setDown = function(down) {
|
||||||
if (this.down === down) return;
|
if (this.down === down) return;
|
||||||
this.down = down;
|
this.down = down;
|
||||||
var text = '';
|
this.el.find('.openwebrx-ysf-down').text(down || '');
|
||||||
if (down && down != '') {
|
|
||||||
text = 'Down: ' + down;
|
|
||||||
}
|
|
||||||
this.el.find('.openwebrx-ysf-down').text(text);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MetaPanel.types = {
|
MetaPanel.types = {
|
||||||
|
Loading…
Reference in New Issue
Block a user