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

Function displayPortCountData

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

Source from the content-addressed store, hash-verified

454}
455
456function displayPortCountData(obj, divRef) {
457 var elem = document.getElementById("portListBody");
458 var parts = divRef.split(":");
459 var port = parts[1];
460 var row = elem.insertRow(0);
461 var cell1 = row.insertCell(0);
462 cell1.style = "text-align:center; padding: 10px;";
463 var cell2 = row.insertCell(1);
464 cell2.style = "text-align:center; padding: 10px;";
465 cell1.innerHTML = "Port " + port;
466 if (Object.hasOwn(obj, "count")) {
467 cell2.appendChild(create_button(obj.count, 'p' + port, 'variant'));
468 } else if (Object.hasOwn(obj, "message")) {
469 cell2.innerHTML = "Error: " + obj.message;
470 } else {
471 cell2.innerHTML = "Error parsing response";
472 }
473}
474
475function displayDomainPortCountData(obj, divRef) {
476 var elem = document.getElementById("httpPortListBody");

Callers

nothing calls this directly

Calls 1

create_buttonFunction · 0.85

Tested by

no test coverage detected