Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 29 additions & 3 deletions src/app.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,33 @@
* {
box-sizing: border-box;
font-family: arial;
}
body {
background: url(doge.png) transparent no-repeat;
margin: 0;
padding: 0;
}
#ENS {
margin: auto;
display: block;
border:1px solid rgb(30,41,59);
position: relative;
}

.footer {
min-height: 5em;
}
}
nav{
height: ;
width: 100%;
background-color: rgb(30,41,59);
z-index: 10;display: flex;justify-content: space-between;
}
.sdt-logo{
text-align: center;
margin-left: 2%;
padding-top: 1%;
}
.sdt-logo img {
height: 37px;
width: 107px;
margin-top: 0px;
}
34 changes: 17 additions & 17 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,35 @@
<head>
<title>Doge ENS</title>
<meta charset="utf-8">
<script type="application/javascript" src="script.js"></script>

<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
<script type="text/javascript" src="jquery.js"></script>
<link href="app.css" rel="stylesheet">
<script type="application/javascript" src="script.js"></script>
</head>
<body>
<div class="container mt-3" style="width: 450px;">
<h2 class="text-center">Doge ENS</h2>

<div style="width: 450px;" id="ENS">
<nav>
<div class="sdt-logo">
<img src="wsdt.png" alt="Logo Image">
</div>
<span style="color: white;margin-right: 3%;display: flex;justify-content: center;align-items: center;align-content: center;">Doge ENS</span>
</nav>
<div id="content">

<br/>

<div class="card card-sucess">

<div class="card-body text-center">
<h6 class="card-subtitle mb-2 text-muted" id="domain">Domain</h6>
<p class="card-text" id="doge-address"></p>
<p class="card-text" id="address-warning"></p>
<div>
<h6 id="domain" style="text-align: center;font-size:13px;">Domain</h6>
<p id="doge-address" style="font-size: 13px;"></p>
<p id="tpqr"></p>
<p id="address-warning"></p>
</div>

</div>

</div>

<div id="footer">
<br/><br/>
<br/><br/>
</div>
<img src="doge.png" height="124" width="100" style="position: absolute;bottom: 0;left: 0;z-index: -1;">

</div>
</body>
</html>
</html>
13 changes: 8 additions & 5 deletions src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,23 @@ async function fetchData() {
return value['data'].includes("dogecoin");
});
let address = item[0]['data'].split(':')[1].replace('"', '');

var GenerateQRCode, htmlEncode;
htmlEncode = function(value) {
return $('<div/>').text(value).html();
};
if (res['Status'] === 0) {
let root_element_address = document.getElementById('doge-address');

let address_info = document.createElement('p');
if (res['AD'] === false) {
// add warning because DNSSEC is not enabled on the domain
let element_address_warning = document.getElementById('address-warning');
let text_address_warn_dnssec = document.createTextNode('DNSSEC is not enabled on this domain address can have been modified, please double check before sending fund on it');
element_address_warning.appendChild(text_address_warn_dnssec);
element_address_warning.innerHTML = "<p style='font-size:10px;padding:10px;'><i class='fa fa-info-circle' style='color:red;'></i> DNSSEC is not enabled on this domain address can have been modified, please double check before sending fund on it</p>";
}
let text_address_info = document.createTextNode('Address found for this website\n ' + address);
root_element_address.innerHTML = '<center>Address found for this website ' + '<br/>' + address + '</center>';
document.getElementById("tpqr").innerHTML = "<div style=''><center><img id='st' height='100' width='100'></center><center><span style='font-size:12px;'>Scan this QR Code to send dogecoin.</span></center></div>";
document.getElementById("st").src = 'https://chart.googleapis.com/chart?cht=qr&chl=' + htmlEncode('dogecoin:'+address) + '&chs=500x500&chld=L|0';
address_info.appendChild(text_address_info);
root_element_address.appendChild(text_address_info);

} else {
document.getElementById('doge-address').innerHTML = "This website don't have a doge address linked";
Expand Down
Binary file added src/wsdt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.