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

View file

@ -1,12 +1,34 @@
html {
box-sizing: border-box;
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
*,
*:before,
*:after {
box-sizing: inherit;
}
[onClick] {
cursor: pointer;
cursor: pointer;
}
body {
font-family: sans-serif;
}
.records-tree {
.top {
font-weight: bold;
margin-left: 16px;
}
&>.top {
margin-left: 0px;
}
.record {
display: none;
color: #444;
}
}

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)
}
}