Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
adraffy committed Jan 22, 2024
1 parent bdf7e35 commit c5a6d34
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions test/resolver.html
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,9 @@
.breakdown .restricted:hover {
outline: 2px solid #00f;
}
.breakdown .confusing {
border: none;
}
.breakdown .error {
order: 1;
}
Expand Down Expand Up @@ -2977,7 +2980,7 @@ <h1><a href="https://ens.domains/">ENS</a> Resolver</h1>

function create_namehash_button(name) {
let node = namehash(name);
let btn = create('button', {innerHTML: '🆔️', className: 'metadata'});
let btn = create('button', {innerHTML: '🆔️'});
btn.dataset.reversed = true;
make_detailed(btn);
make_click_copy(btn, node);
Expand Down Expand Up @@ -3046,10 +3049,13 @@ <h1><a href="https://ens.domains/">ENS</a> Resolver</h1>
row.append(create('span', {innerText: `❌️ ${info.error.message}`, className: 'error'}));
} else if (compare_arrays(info.input, info.output)) { // mapped or nfc
row.classList.add('mapped');
row.append(create_tag('note', 'Unnormalized'));
row.append(create_tag('note', 'Normalizable'));
} else {
row.classList.add('valid');
upgrade_split_type(info);
if (info.confusing) {
row.append(create_tag('confusing', info.confusing));
}
if (info.type.startsWith('Restricted[')) {
let script = info.type.slice(11, -1);
row.append(create_link(`https://www.compart.com/en/unicode/scripts/${script}`, {innerHTML: `⚠️ ${script} (Restricted)`, className: ['tags', 'restricted']}));
Expand All @@ -3059,9 +3065,6 @@ <h1><a href="https://ens.domains/">ENS</a> Resolver</h1>
if (info.emoji) {
row.append(create_tag('emoji', 'Emoji'));
}
if (info.confusing) {
row.append(create_tag('confusing', info.confusing));
}
if (info.style) {
row.append(create_tag('good', info.style));
}
Expand Down

0 comments on commit c5a6d34

Please sign in to comment.