polishing up the imaging
This commit is contained in:
parent
2053a6b16b
commit
c7d969c96e
BIN
htdocs/gfx/openwebrx-directcall.png
Normal file
BIN
htdocs/gfx/openwebrx-directcall.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.3 KiB |
BIN
htdocs/gfx/openwebrx-groupcall.png
Normal file
BIN
htdocs/gfx/openwebrx-groupcall.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.9 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.4 KiB |
@ -968,11 +968,15 @@ img.openwebrx-mirror-img
|
|||||||
}
|
}
|
||||||
|
|
||||||
.openwebrx-meta-slot.active .openwebrx-meta-user-image {
|
.openwebrx-meta-slot.active .openwebrx-meta-user-image {
|
||||||
background-image: url("gfx/openwebrx-user.png");
|
background-image: url("gfx/openwebrx-directcall.png");
|
||||||
width:133px;
|
width:133px;
|
||||||
height:133px;
|
height:133px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.openwebrx-meta-slot.active .openwebrx-meta-user-image.group {
|
||||||
|
background-image: url("gfx/openwebrx-groupcall.png");
|
||||||
|
}
|
||||||
|
|
||||||
.openwebrx-meta-slot {
|
.openwebrx-meta-slot {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
@ -1318,10 +1318,14 @@ function update_metadata(meta) {
|
|||||||
var id = "";
|
var id = "";
|
||||||
var name = "";
|
var name = "";
|
||||||
var target = "";
|
var target = "";
|
||||||
|
var group = false;
|
||||||
if (meta.type && meta.type != "data") {
|
if (meta.type && meta.type != "data") {
|
||||||
id = (meta.additional && meta.additional.callsign) || meta.source || "";
|
id = (meta.additional && meta.additional.callsign) || meta.source || "";
|
||||||
name = (meta.additional && meta.additional.fname) || "";
|
name = (meta.additional && meta.additional.fname) || "";
|
||||||
if (meta.type == "group") target = "Talkgroup: ";
|
if (meta.type == "group") {
|
||||||
|
target = "Talkgroup: ";
|
||||||
|
group = true;
|
||||||
|
}
|
||||||
if (meta.type == "direct") target = "Direct: ";
|
if (meta.type == "direct") target = "Direct: ";
|
||||||
target += meta.target || "";
|
target += meta.target || "";
|
||||||
$(el).addClass("active");
|
$(el).addClass("active");
|
||||||
@ -1331,7 +1335,7 @@ function update_metadata(meta) {
|
|||||||
$(el).find(".openwebrx-dmr-id").text(id);
|
$(el).find(".openwebrx-dmr-id").text(id);
|
||||||
$(el).find(".openwebrx-dmr-name").text(name);
|
$(el).find(".openwebrx-dmr-name").text(name);
|
||||||
$(el).find(".openwebrx-dmr-target").text(target);
|
$(el).find(".openwebrx-dmr-target").text(target);
|
||||||
|
$(el).find(".openwebrx-meta-user-image")[group ? "addClass" : "removeClass"]("group");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'YSF':
|
case 'YSF':
|
||||||
|
Loading…
Reference in New Issue
Block a user