From: Ardis Lu Date: Sat, 14 Jan 2023 06:51:33 +0000 (-0800) Subject: Update document title with input value X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=ea8303ba9dd791072db0f290e5eb4edea4a2f812;p=utf-8-visualizer Update document title with input value --- diff --git a/script.js b/script.js index feabc15..b823312 100644 --- a/script.js +++ b/script.js @@ -91,6 +91,7 @@ function handleChange(value) { // Update URL with the input but do not spam the history const url = new URL(`?q=${value}`, window.location.origin); window.history.replaceState({}, '', url); + document.title = `utf-8-visualizer: ${value}`; const output = calculateOutput(value); render(output);