From 65fbdeb0d09a61ec2b29292e1a14bfa9bf1c5941 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Wed, 30 Apr 2025 17:38:01 +0200 Subject: feat: add placeholder To clarify which input format is expected. --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script.js') diff --git a/script.js b/script.js index 9ca453c..ab77827 100644 --- a/script.js +++ b/script.js @@ -29,7 +29,7 @@ function route() { if (!latLon) { document.title = 'Share a location'; content.append(createEl('h1', {}, [document.title])); - const input = createEl('input'); + const input = createEl('input', { placeholder: '55.7, 12.5' }); const button = createEl('button', {}, ['Share']); const inputGroup = createEl('div', { class: 'input-group' }, [input, button]); const errorDiv = createEl('div', { class: 'error' }); -- cgit v1.2.3