Signed-off-by: ale <ale@manalejandro.com>
This commit is contained in:
parent
f5c72c32eb
commit
e2d783713d
@ -38,7 +38,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
loading()
|
||||
fetch('/api/block_count/' + content).then(async function (result) {
|
||||
var res = await result.text() || ''
|
||||
if (res.split('\n').length > 0) {
|
||||
if (res.length > 0) {
|
||||
document.getElementById('blockcount').innerText = res.split('\n').length
|
||||
document.getElementById('blockinstance').innerText = 'ing ' + content
|
||||
document.getElementById('blocktook').innerText = ''
|
||||
@ -173,7 +173,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
var li = document.createElement('li')
|
||||
li.innerHTML = r.domain + (r.blocks ? ' - ' + r.blocks + ' blocks' : '')
|
||||
+ (r.nodeinfo ? ' <a href="/api/detail_nodeinfo/' + r.domain + '" title="Nodeinfo for ' + r.domain + '" target="_blank">ⓘ</a>' : '')
|
||||
+ (r.last ? '<br />' + 'Last update: ' + (new Date(r.last)).toLocaleString() : '')
|
||||
+ (r.last ? '<br /><br />' + 'Last update: ' + (new Date(r.last)).toLocaleString() : '')
|
||||
+ (r.api?.title ? '<br /><br />' + r.api.title + ' - ' + r.api.uri + '<br />'
|
||||
+ (r.api.email ? 'Email: ' + r.api.email + '<br />' : '')
|
||||
+ 'Registration: ' + (r.api.registrations ? 'open' : 'closed') + ' - Version: ' + r.api.version + '<br />'
|
||||
|
Loading…
Reference in New Issue
Block a user