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

Function getWhoisList

web_server/public/javascripts/whois.js:113–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111}
112
113function getWhoisList() {
114 clearErrorHandler();
115 var id = this.id.split("_link")[0];
116 var url;
117 if (DnssecValues.indexOf(id) !== -1) {
118 url = "/api/v1.0/whois_db?dnssec=" + id;
119 document.getElementById("tableTitle").innerHTML = "<h3>" + id + " Results</h3>";
120 } else if (DnsServerList.indexOf(id) !== -1) {
121 url = "/api/v1.0/whois_db?name_server=" + id;
122 document.getElementById("tableTitle").innerHTML = "<h3>" + id + " Results</h3>";
123 } else {
124 var email_id;
125 for (var key in DnsEmails) {
126 if (DnsEmails[key] === id) {
127 email_id = DnsEmails[key];
128 }
129 }
130 url = "/api/v1.0/whois_db?email=" + email_id;
131 document.getElementById("tableTitle").innerHTML = "<h3>" + id + " Results</h3>";
132 }
133
134 make_get_request(url, displayWhoisList);
135}
136
137function assignWhoisEventListeners() {
138 for (let i = 0; i < DnsServerList.length; i++) {

Callers

nothing calls this directly

Calls 2

clearErrorHandlerFunction · 0.85
make_get_requestFunction · 0.85

Tested by

no test coverage detected