(json_results)
| 378 | } |
| 379 | |
| 380 | function displayDomainList(json_results) { |
| 381 | if (json_results.length >= LIMIT || PAGE > 1) { |
| 382 | document.getElementById("httpTableTitle").innerHTML = "<b>Port " + currentPort + " Results</b>" + add_paging_html("domain", displayDomainList); |
| 383 | document.getElementById("prevPage-domain").addEventListener("click", domain_page_back); |
| 384 | document.getElementById("nextPage-domain").addEventListener("click", domain_page_forward); |
| 385 | document.getElementById("pageLimit-domain").addEventListener("change", function () { update_limit("domain") }); |
| 386 | } else { |
| 387 | document.getElementById("httpTableTitle").innerHTML = "<b> Port " + currentPort + " Results</b>"; |
| 388 | } |
| 389 | |
| 390 | var old_tbody = document.getElementById("httpOutputBody"); |
| 391 | var new_tbody = document.createElement('tbody'); |
| 392 | for (let i = 0; i < json_results.length; i++) { |
| 393 | var row = new_tbody.insertRow(0); |
| 394 | var cell1 = row.insertCell(0); |
| 395 | var cell2 = row.insertCell(1); |
| 396 | cell1.innerHTML = create_anchor("/domain?search=" + json_results[i]['domain'], json_results[i]['domain']); |
| 397 | let zoneList = ""; |
| 398 | for (let entry in json_results[i]['zones']) { |
| 399 | zoneList += create_anchor("/zone?search=" + json_results[i]['zones'][entry], json_results[i]['zones'][entry]) + ", "; |
| 400 | } |
| 401 | zoneList = zoneList.substring(0, zoneList.length - 2); |
| 402 | cell2.innerHTML = zoneList; |
| 403 | cell2.style = "text-align:center"; |
| 404 | } |
| 405 | old_tbody.parentNode.replaceChild(new_tbody, old_tbody) |
| 406 | new_tbody.id = "httpOutputBody"; |
| 407 | } |
| 408 | |
| 409 | function getPortDomainList() { |
| 410 | clearErrorHandler(); |
nothing calls this directly
no test coverage detected