MCPcopy Create free account
hub / github.com/adobe/Marinus / displayDomainPortCountData

Function displayDomainPortCountData

web_server/public/javascripts/meta.js:475–492  ·  view source on GitHub ↗
(obj, divRef)

Source from the content-addressed store, hash-verified

473}
474
475function displayDomainPortCountData(obj, divRef) {
476 var elem = document.getElementById("httpPortListBody");
477 var parts = divRef.split(":");
478 var port = parts[1];
479 var row = elem.insertRow(0);
480 var cell1 = row.insertCell(0);
481 cell1.style = "text-align:center; padding: 10px;";
482 var cell2 = row.insertCell(1);
483 cell2.style = "text-align:center; padding: 10px;";
484 cell1.innerHTML = "Port " + port;
485 if (Object.hasOwn(obj, "count")) {
486 cell2.appendChild(create_button(obj.count, 'dp' + port, 'variant'));
487 } else if (Object.hasOwn(obj, "message")) {
488 cell2.innerHTML = "Error: " + obj.message;
489 } else {
490 cell2.innerHTML = "Error parsing response";
491 }
492}
493
494function getSrvPortIPList() {
495 let port = this.id.substring(4);

Callers

nothing calls this directly

Calls 1

create_buttonFunction · 0.85

Tested by

no test coverage detected