(obj, divRef)
| 454 | } |
| 455 | |
| 456 | function 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 | |
| 475 | function displayDomainPortCountData(obj, divRef) { |
| 476 | var elem = document.getElementById("httpPortListBody"); |
nothing calls this directly
no test coverage detected