0
0

footer, subheader and github button #10

Merged
thetek42 merged 14 commits from dev into main 2021-05-07 17:41:30 +02:00
Showing only changes of commit bbca8553ac - Show all commits

View File

@ -71,7 +71,7 @@ function dnswatch_search() {
dns_name: i['name'],
dns_address: i['address'],
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'])
})
@ -155,6 +155,12 @@ function get_status_icon(status) {
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