Convert stray tabs to spaces

merge-requests/2/merge
Jamie Wilkinson 2019-03-01 18:21:35 -05:00
parent be6c9b63a2
commit 3b5af8f739
1 changed files with 13 additions and 13 deletions

26
app.js
View File

@ -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) {