Convert stray tabs to spaces
parent
be6c9b63a2
commit
3b5af8f739
26
app.js
26
app.js
|
@ -4,22 +4,22 @@ const hashString = 'Hello from IPFS Gateway Checker'
|
||||||
const $results = document.querySelector('#results')
|
const $results = document.querySelector('#results')
|
||||||
|
|
||||||
function addNode (gateway, online, title) {
|
function addNode (gateway, online, title) {
|
||||||
const para = document.createElement('div')
|
const para = document.createElement('div')
|
||||||
let node
|
let node
|
||||||
if (online) {
|
if (online) {
|
||||||
node = document.createElement('strong')
|
node = document.createElement('strong')
|
||||||
node.innerText = '✅ - Online - ' + gateway
|
node.innerText = '✅ - Online - ' + gateway
|
||||||
} else {
|
} else {
|
||||||
node = document.createElement('div')
|
node = document.createElement('div')
|
||||||
node.innerText = '❌ - Offline - ' + gateway
|
node.innerText = '❌ - Offline - ' + gateway
|
||||||
}
|
}
|
||||||
node.setAttribute('title', title)
|
node.setAttribute('title', title)
|
||||||
para.appendChild(node)
|
para.appendChild(node)
|
||||||
$results.appendChild(para)
|
$results.appendChild(para)
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateStats (total, checked) {
|
function updateStats (total, checked) {
|
||||||
document.getElementById('stats').innerText = checked + '/' + total + ' gateways checked'
|
document.getElementById('stats').innerText = checked + '/' + total + ' gateways checked'
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkGateways (gateways) {
|
function checkGateways (gateways) {
|
||||||
|
|
Loading…
Reference in New Issue