button {
padding: 4px 8px;
}
+
+ output:empty::after {
+ content: '—';
+ }
</style>
</head>
<button>Calculate</button>
- <output></output>
+ <label for="output">Interface ID</label>
+ <output name="output" id="output"></output>
</form>
</main>
}
const xorHash = `0x${[...xor].map(b => b.toString(16).padStart(2, '0')).join('')}`;
- console.log(xorHash);
+ e.target.elements['output'].textContent = xorHash;
});
</script>
</body>