This commit is contained in:
Magnus Åhall 2026-02-23 07:04:57 +01:00
parent 36baaf0caf
commit ad638acaf3
7 changed files with 120 additions and 37 deletions

17
static/js/dns.mjs Normal file
View file

@ -0,0 +1,17 @@
export class Application {
constructor() {
this.addTopHandlers()
}
addTopHandlers() {
for (const top of document.querySelectorAll('.top .fqdn'))
top.addEventListener('click', event=>this.handlerTop(event))
}
handlerTop(event) {
const fqdn = event.target
const top = fqdn.closest('.top')
const records = top.querySelector('.records')
console.log(fqdn, top, records)
}
}