metadata for ysf

This commit is contained in:
Jakob Ketterl
2017-01-20 12:26:09 +00:00
parent 89740b1a93
commit ac6e001fd6
2 changed files with 14 additions and 2 deletions

View File

@ -1255,6 +1255,18 @@ function on_ws_recv(evt)
slotEl.innerHTML = html;
};
}
break;
case 'YSF':
var strings = [];
if (meta.source) strings.push("Source: " + meta.source);
if (meta.target) strings.push("Destination: " + meta.target);
if (meta.up) strings.push("Up: " + meta.up);
if (meta.down) strings.push("Down: " + meta.down);
var html = strings.join(' ');
update = function(el) {
el.innerHTML = html;
}
break;
}
metaPanels.forEach(update);