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

Function display_response_count

web_server/public/javascripts/zone_ui.js:473–498  ·  view source on GitHub ↗
(results, source)

Source from the content-addressed store, hash-verified

471}
472
473function display_response_count(results, source) {
474
475 if (source === "iblox_owners" && results.length > 0) {
476 document.getElementById("ownSection").style.display = "block";
477 display_infoblox_owners(results);
478 } else if (results.count > 0) {
479 if (layout[source]['target'] === "misc" || layout[source]['target'] === "sec") {
480 document.getElementById("secSection").style.display = "block";
481 } else if (layout[source]['target'] === "ht" || layout[source]['target'] === "dns") {
482 document.getElementById("dnsSection").style.display = "block";
483 } else if (layout[source]['target'] === "own") {
484 document.getElementById("ownSection").style.display = "block";
485 } else if (layout[source]['target'] === "scan") {
486 document.getElementById("scanSection").style.display = "block";
487 }
488
489 if (source === "network_graph") {
490 display_graph_link(results);
491 } else {
492 addCountBox(source, results);
493 }
494 if (source === "ct" || source === "censys_certs" || source === "scan_certs") {
495 display_cert_graph_link(results);
496 }
497 }
498}
499
500function fetch_request(source, zone, count) {
501 var url = new URI(api_map[source]);

Callers

nothing calls this directly

Calls 4

display_infoblox_ownersFunction · 0.85
display_graph_linkFunction · 0.85
display_cert_graph_linkFunction · 0.85
addCountBoxFunction · 0.70

Tested by

no test coverage detected