✨ footer, subheader and github button #10
@ -71,7 +71,7 @@ function dnswatch_search() {
|
|||||||
dns_name: i['name'],
|
dns_name: i['name'],
|
||||||
dns_address: i['address'],
|
dns_address: i['address'],
|
||||||
desc_color: i['cause'] !== null ? 'blocked': '',
|
desc_color: i['cause'] !== null ? 'blocked': '',
|
||||||
desc_text: i['cause'] == 'cuii' ? 'reference' : '',
|
desc_text: get_blocked_text(i['cause']),
|
||||||
show_help: i['cause'] !== null && !causes.includes(i['cause'])
|
show_help: i['cause'] !== null && !causes.includes(i['cause'])
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -155,6 +155,12 @@ function get_status_icon(status) {
|
|||||||
return 'wifi-off'
|
return 'wifi-off'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function get_blocked_text(cause) {
|
||||||
|
if (cause == 'cuii') return 'blocked by cuii'
|
||||||
|
if (cause !== null) return `bocked: ${cause}`
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// add event triggers
|
// add event triggers
|
||||||
|
Reference in New Issue
Block a user