\n'
- if (response['data']['reference']['found']) { // only if reference confirms
+ //// reference dns
+ response['data']['reference'].forEach(i => {
+ // status
+ table += '
\n';
+ table += '
\n';
+ table += `\n`;
+ table += '
\n';
+ // provider
+ table += '
\n';
+ table += `\n`;
+ table += '
\n'
+ // name and address
+ table += `
${ i["name"] }${ i["address"] }
\n`;
+ // reference info
+ table += '
reference
\n';
+ // help button
+ table += '
\n';
+ table += '\n';
+ table += '
\n';
+ table += '
\n'
+ });
+
+ if (response['data']['found']) { // only if reference confirms
table += '
\n'
- if (response['data']['reference']['found']) { // only if reference confirms
+ //// reference dns
+ response['data']['reference'].forEach(i => {
+ // status
+ table += '
\n';
+ table += '
\n';
+ table += `\n`;
+ table += '
\n';
+ // provider
+ table += '
\n';
+ table += `\n`;
+ table += '
\n'
+ // name and address
+ table += `
${ i["name"] }${ i["address"] }
\n`;
+ // reference info
+ table += '
reference
\n';
+ // help button
+ table += '
\n';
+ table += '\n';
+ table += '
\n';
+ table += '
\n'
+ });
+
+ if (response['data']['found']) { // only if reference confirms
table += '
Try "gnu.org", "wikipedia.com", "s.to" or your own website!
loading...
invalid domain.
\ No newline at end of file
+
dns-watch.org
Try "gnu.org", "wikipedia.org", "s.to" or your own website!
loading...
invalid domain.
\ No newline at end of file
diff --git a/ui/raw/index.js b/ui/raw/index.js
index 26cf36d..c4d709c 100644
--- a/ui/raw/index.js
+++ b/ui/raw/index.js
@@ -26,46 +26,47 @@ function dnswatch_search() {
request.onload = function() {
if (request.status >= 200 && request.status < 400) {
var response = JSON.parse(this.response);
- //console.log(response);
// TODO: CLEAN UP THIS MESS OF TABLE GENERATION CODE
if (response['type'] == 'success') { // success
var table = '
\n';
- //// reference dns
- // status
- table += '
\n'
- if (response['data']['reference']['found']) { // only if reference confirms
+ //// reference dns
+ response['data']['reference'].forEach(i => {
+ // status
+ table += '
\n';
+ table += '
\n';
+ table += `\n`;
+ table += '
\n';
+ // provider
+ table += '
\n';
+ table += `\n`;
+ table += '
\n'
+ // name and address
+ table += `
${ i["name"] }${ i["address"] }
\n`;
+ // reference info
+ table += '
reference
\n';
+ // help button
+ table += '
\n';
+ table += '\n';
+ table += '
\n';
+ table += '
\n'
+ });
+
+ if (response['data']['found']) { // only if reference confirms
table += '